diff --git a/profiles/latest/containerregistry/mgmt/containerregistry/models.go b/profiles/latest/containerregistry/mgmt/containerregistry/models.go index 4c6f504d6f5e..60106542c92f 100644 --- a/profiles/latest/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/latest/containerregistry/mgmt/containerregistry/models.go @@ -132,6 +132,7 @@ type RegistriesImportImageFuture = original.RegistriesImportImageFuture type RegistriesUpdateFuture = original.RegistriesUpdateFuture type RegistriesUpdatePoliciesFuture = original.RegistriesUpdatePoliciesFuture type Registry = original.Registry +type RegistryIdentity = original.RegistryIdentity type RegistryListCredentialsResult = original.RegistryListCredentialsResult type RegistryListResult = original.RegistryListResult type RegistryListResultIterator = original.RegistryListResultIterator diff --git a/profiles/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/containerregistry/mgmt/containerregistry/models.go index 78b4f5d86eec..0b76b33b99b6 100644 --- a/profiles/preview/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/preview/containerregistry/mgmt/containerregistry/models.go @@ -276,6 +276,7 @@ type RegistriesScheduleRunFuture = original.RegistriesScheduleRunFuture type RegistriesUpdateFuture = original.RegistriesUpdateFuture type RegistriesUpdatePoliciesFuture = original.RegistriesUpdatePoliciesFuture type Registry = original.Registry +type RegistryIdentity = original.RegistryIdentity type RegistryListCredentialsResult = original.RegistryListCredentialsResult type RegistryListResult = original.RegistryListResult type RegistryListResultIterator = original.RegistryListResultIterator diff --git a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go index 4ea07de84b49..5fb9acf721be 100644 --- a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go @@ -271,6 +271,7 @@ type RegistriesQueueBuildFuture = original.RegistriesQueueBuildFuture type RegistriesUpdateFuture = original.RegistriesUpdateFuture type RegistriesUpdatePoliciesFuture = original.RegistriesUpdatePoliciesFuture type Registry = original.Registry +type RegistryIdentity = original.RegistryIdentity type RegistryListCredentialsResult = original.RegistryListCredentialsResult type RegistryListResult = original.RegistryListResult type RegistryListResultIterator = original.RegistryListResultIterator diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go index 19c6fb28d78c..65cbd1259895 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go @@ -822,6 +822,8 @@ type Registry struct { autorest.Response `json:"-"` // Sku - The SKU of the container registry. Sku *Sku `json:"sku,omitempty"` + // Identity - The Identity of the container registry. + Identity *RegistryIdentity `json:"identity,omitempty"` // RegistryProperties - The properties of the container registry. *RegistryProperties `json:"properties,omitempty"` // ID - The resource ID. @@ -842,6 +844,9 @@ func (r Registry) MarshalJSON() ([]byte, error) { if r.Sku != nil { objectMap["sku"] = r.Sku } + if r.Identity != nil { + objectMap["identity"] = r.Identity + } if r.RegistryProperties != nil { objectMap["properties"] = r.RegistryProperties } @@ -881,6 +886,15 @@ func (r *Registry) UnmarshalJSON(body []byte) error { } r.Sku = &sku } + case "identity": + if v != nil { + var identity RegistryIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + r.Identity = &identity + } case "properties": if v != nil { var registryProperties RegistryProperties @@ -941,6 +955,16 @@ func (r *Registry) UnmarshalJSON(body []byte) error { return nil } +// RegistryIdentity the Identity of the container registry. +type RegistryIdentity struct { + // Type - The type of identity used for the registry. + Type *string `json:"type,omitempty"` + // PrincipalID - The principal id of registry identity. + PrincipalID *string `json:"principalId,omitempty"` + // TenantID - The tenant id associated with the registry. + TenantID *string `json:"tenantId,omitempty"` +} + // RegistryListCredentialsResult the response from the ListCredentials operation. type RegistryListCredentialsResult struct { autorest.Response `json:"-"` @@ -1118,6 +1142,8 @@ type RegistryUpdateParameters struct { Tags map[string]*string `json:"tags"` // Sku - The SKU of the container registry. Sku *Sku `json:"sku,omitempty"` + // Identity - The Identity of the container registry. + Identity *RegistryIdentity `json:"identity,omitempty"` // RegistryPropertiesUpdateParameters - The properties that the container registry will be updated with. *RegistryPropertiesUpdateParameters `json:"properties,omitempty"` } @@ -1131,6 +1157,9 @@ func (rup RegistryUpdateParameters) MarshalJSON() ([]byte, error) { if rup.Sku != nil { objectMap["sku"] = rup.Sku } + if rup.Identity != nil { + objectMap["identity"] = rup.Identity + } if rup.RegistryPropertiesUpdateParameters != nil { objectMap["properties"] = rup.RegistryPropertiesUpdateParameters } @@ -1164,6 +1193,15 @@ func (rup *RegistryUpdateParameters) UnmarshalJSON(body []byte) error { } rup.Sku = &sku } + case "identity": + if v != nil { + var identity RegistryIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + rup.Identity = &identity + } case "properties": if v != nil { var registryPropertiesUpdateParameters RegistryPropertiesUpdateParameters diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go index 5ecbefe7e5eb..80bb494edd80 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go @@ -1913,6 +1913,8 @@ type Registry struct { autorest.Response `json:"-"` // Sku - The SKU of the container registry. Sku *Sku `json:"sku,omitempty"` + // Identity - The Identity of the container registry. + Identity *RegistryIdentity `json:"identity,omitempty"` // RegistryProperties - The properties of the container registry. *RegistryProperties `json:"properties,omitempty"` // ID - The resource ID. @@ -1933,6 +1935,9 @@ func (r Registry) MarshalJSON() ([]byte, error) { if r.Sku != nil { objectMap["sku"] = r.Sku } + if r.Identity != nil { + objectMap["identity"] = r.Identity + } if r.RegistryProperties != nil { objectMap["properties"] = r.RegistryProperties } @@ -1972,6 +1977,15 @@ func (r *Registry) UnmarshalJSON(body []byte) error { } r.Sku = &sku } + case "identity": + if v != nil { + var identity RegistryIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + r.Identity = &identity + } case "properties": if v != nil { var registryProperties RegistryProperties @@ -2032,6 +2046,16 @@ func (r *Registry) UnmarshalJSON(body []byte) error { return nil } +// RegistryIdentity the Identity of the container registry. +type RegistryIdentity struct { + // Type - The type of identity used for the registry. + Type *string `json:"type,omitempty"` + // PrincipalID - The principal id of registry identity. + PrincipalID *string `json:"principalId,omitempty"` + // TenantID - The tenant id associated with the registry. + TenantID *string `json:"tenantId,omitempty"` +} + // RegistryListCredentialsResult the response from the ListCredentials operation. type RegistryListCredentialsResult struct { autorest.Response `json:"-"` @@ -2209,6 +2233,8 @@ type RegistryUpdateParameters struct { Tags map[string]*string `json:"tags"` // Sku - The SKU of the container registry. Sku *Sku `json:"sku,omitempty"` + // Identity - The Identity of the container registry. + Identity *RegistryIdentity `json:"identity,omitempty"` // RegistryPropertiesUpdateParameters - The properties that the container registry will be updated with. *RegistryPropertiesUpdateParameters `json:"properties,omitempty"` } @@ -2222,6 +2248,9 @@ func (rup RegistryUpdateParameters) MarshalJSON() ([]byte, error) { if rup.Sku != nil { objectMap["sku"] = rup.Sku } + if rup.Identity != nil { + objectMap["identity"] = rup.Identity + } if rup.RegistryPropertiesUpdateParameters != nil { objectMap["properties"] = rup.RegistryPropertiesUpdateParameters } @@ -2255,6 +2284,15 @@ func (rup *RegistryUpdateParameters) UnmarshalJSON(body []byte) error { } rup.Sku = &sku } + case "identity": + if v != nil { + var identity RegistryIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + rup.Identity = &identity + } case "properties": if v != nil { var registryPropertiesUpdateParameters RegistryPropertiesUpdateParameters diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go index db1ce2fa926c..a56661b22df2 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go @@ -2696,6 +2696,8 @@ type Registry struct { autorest.Response `json:"-"` // Sku - The SKU of the container registry. Sku *Sku `json:"sku,omitempty"` + // Identity - The Identity of the container registry. + Identity *RegistryIdentity `json:"identity,omitempty"` // RegistryProperties - The properties of the container registry. *RegistryProperties `json:"properties,omitempty"` // ID - The resource ID. @@ -2716,6 +2718,9 @@ func (r Registry) MarshalJSON() ([]byte, error) { if r.Sku != nil { objectMap["sku"] = r.Sku } + if r.Identity != nil { + objectMap["identity"] = r.Identity + } if r.RegistryProperties != nil { objectMap["properties"] = r.RegistryProperties } @@ -2755,6 +2760,15 @@ func (r *Registry) UnmarshalJSON(body []byte) error { } r.Sku = &sku } + case "identity": + if v != nil { + var identity RegistryIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + r.Identity = &identity + } case "properties": if v != nil { var registryProperties RegistryProperties @@ -2815,6 +2829,16 @@ func (r *Registry) UnmarshalJSON(body []byte) error { return nil } +// RegistryIdentity the Identity of the container registry. +type RegistryIdentity struct { + // Type - The type of identity used for the registry. + Type *string `json:"type,omitempty"` + // PrincipalID - The principal id of registry identity. + PrincipalID *string `json:"principalId,omitempty"` + // TenantID - The tenant id associated with the registry. + TenantID *string `json:"tenantId,omitempty"` +} + // RegistryListCredentialsResult the response from the ListCredentials operation. type RegistryListCredentialsResult struct { autorest.Response `json:"-"` @@ -2992,6 +3016,8 @@ type RegistryUpdateParameters struct { Tags map[string]*string `json:"tags"` // Sku - The SKU of the container registry. Sku *Sku `json:"sku,omitempty"` + // Identity - The Identity of the container registry. + Identity *RegistryIdentity `json:"identity,omitempty"` // RegistryPropertiesUpdateParameters - The properties that the container registry will be updated with. *RegistryPropertiesUpdateParameters `json:"properties,omitempty"` } @@ -3005,6 +3031,9 @@ func (rup RegistryUpdateParameters) MarshalJSON() ([]byte, error) { if rup.Sku != nil { objectMap["sku"] = rup.Sku } + if rup.Identity != nil { + objectMap["identity"] = rup.Identity + } if rup.RegistryPropertiesUpdateParameters != nil { objectMap["properties"] = rup.RegistryPropertiesUpdateParameters } @@ -3038,6 +3067,15 @@ func (rup *RegistryUpdateParameters) UnmarshalJSON(body []byte) error { } rup.Sku = &sku } + case "identity": + if v != nil { + var identity RegistryIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + rup.Identity = &identity + } case "properties": if v != nil { var registryPropertiesUpdateParameters RegistryPropertiesUpdateParameters