diff --git a/profiles/latest/containerregistry/mgmt/containerregistry/models.go b/profiles/latest/containerregistry/mgmt/containerregistry/models.go index 494f0e6f9768..12565e22f2f6 100644 --- a/profiles/latest/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/latest/containerregistry/mgmt/containerregistry/models.go @@ -29,11 +29,17 @@ const ( DefaultBaseURI = original.DefaultBaseURI ) +type Action = original.Action + +const ( + Allow Action = original.Allow +) + type DefaultAction = original.DefaultAction const ( - Allow DefaultAction = original.Allow - Deny DefaultAction = original.Deny + DefaultActionAllow DefaultAction = original.DefaultActionAllow + DefaultActionDeny DefaultAction = original.DefaultActionDeny ) type ImportMode = original.ImportMode @@ -125,6 +131,7 @@ type EventListResultIterator = original.EventListResultIterator type EventListResultPage = original.EventListResultPage type EventRequestMessage = original.EventRequestMessage type EventResponseMessage = original.EventResponseMessage +type IPRule = original.IPRule type ImportImageParameters = original.ImportImageParameters type ImportSource = original.ImportSource type ImportSourceCredentials = original.ImportSourceCredentials @@ -253,6 +260,9 @@ func NewWebhooksClientWithBaseURI(baseURI string, subscriptionID string) Webhook func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } +func PossibleActionValues() []Action { + return original.PossibleActionValues() +} func PossibleDefaultActionValues() []DefaultAction { return original.PossibleDefaultActionValues() } diff --git a/profiles/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/containerregistry/mgmt/containerregistry/models.go index a36460b2ae3c..45238c817a6c 100644 --- a/profiles/preview/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/preview/containerregistry/mgmt/containerregistry/models.go @@ -29,6 +29,12 @@ const ( DefaultBaseURI = original.DefaultBaseURI ) +type Action = original.Action + +const ( + Allow Action = original.Allow +) + type Architecture = original.Architecture const ( @@ -54,8 +60,8 @@ const ( type DefaultAction = original.DefaultAction const ( - Allow DefaultAction = original.Allow - Deny DefaultAction = original.Deny + DefaultActionAllow DefaultAction = original.DefaultActionAllow + DefaultActionDeny DefaultAction = original.DefaultActionDeny ) type ImportMode = original.ImportMode @@ -266,6 +272,7 @@ type EventResponseMessage = original.EventResponseMessage type FileTaskRunRequest = original.FileTaskRunRequest type FileTaskStep = original.FileTaskStep type FileTaskStepUpdateParameters = original.FileTaskStepUpdateParameters +type IPRule = original.IPRule type ImageDescriptor = original.ImageDescriptor type ImageUpdateTrigger = original.ImageUpdateTrigger type ImportImageParameters = original.ImportImageParameters @@ -459,6 +466,9 @@ func NewWebhooksClientWithBaseURI(baseURI string, subscriptionID string) Webhook func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } +func PossibleActionValues() []Action { + return original.PossibleActionValues() +} func PossibleArchitectureValues() []Architecture { return original.PossibleArchitectureValues() } diff --git a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go index cfa3f736a445..6be0c12d2888 100644 --- a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go @@ -29,6 +29,12 @@ const ( DefaultBaseURI = original.DefaultBaseURI ) +type Action = original.Action + +const ( + Allow Action = original.Allow +) + type BaseImageDependencyType = original.BaseImageDependencyType const ( @@ -74,8 +80,8 @@ const ( type DefaultAction = original.DefaultAction const ( - Allow DefaultAction = original.Allow - Deny DefaultAction = original.Deny + DefaultActionAllow DefaultAction = original.DefaultActionAllow + DefaultActionDeny DefaultAction = original.DefaultActionDeny ) type ImportMode = original.ImportMode @@ -256,6 +262,7 @@ type EventListResultPage = original.EventListResultPage type EventRequestMessage = original.EventRequestMessage type EventResponseMessage = original.EventResponseMessage type GitCommitTrigger = original.GitCommitTrigger +type IPRule = original.IPRule type ImageDescriptor = original.ImageDescriptor type ImageUpdateTrigger = original.ImageUpdateTrigger type ImportImageParameters = original.ImportImageParameters @@ -437,6 +444,9 @@ func NewWebhooksClientWithBaseURI(baseURI string, subscriptionID string) Webhook func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } +func PossibleActionValues() []Action { + return original.PossibleActionValues() +} func PossibleBaseImageDependencyTypeValues() []BaseImageDependencyType { return original.PossibleBaseImageDependencyTypeValues() } diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go index 974e59ed1e62..0378118afd26 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go @@ -31,19 +31,32 @@ import ( // The package's fully qualified name. const fqdn = "github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2017-10-01/containerregistry" +// Action enumerates the values for action. +type Action string + +const ( + // Allow ... + Allow Action = "Allow" +) + +// PossibleActionValues returns an array of possible values for the Action const type. +func PossibleActionValues() []Action { + return []Action{Allow} +} + // DefaultAction enumerates the values for default action. type DefaultAction string const ( - // Allow ... - Allow DefaultAction = "Allow" - // Deny ... - Deny DefaultAction = "Deny" + // DefaultActionAllow ... + DefaultActionAllow DefaultAction = "Allow" + // DefaultActionDeny ... + DefaultActionDeny DefaultAction = "Deny" ) // PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. func PossibleDefaultActionValues() []DefaultAction { - return []DefaultAction{Allow, Deny} + return []DefaultAction{DefaultActionAllow, DefaultActionDeny} } // ImportMode enumerates the values for import mode. @@ -526,12 +539,22 @@ type ImportSourceCredentials struct { Password *string `json:"password,omitempty"` } +// IPRule IP rule with specific IP or IP range in CIDR format. +type IPRule struct { + // Action - The action of IP ACL rule. Possible values include: 'Allow' + Action Action `json:"action,omitempty"` + // IPAddressOrRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + IPAddressOrRange *string `json:"value,omitempty"` +} + // NetworkRuleSet the network rule set for a container registry. type NetworkRuleSet struct { - // DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny' + // DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'DefaultActionAllow', 'DefaultActionDeny' DefaultAction DefaultAction `json:"defaultAction,omitempty"` // VirtualNetworkRules - The virtual network rules. VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + // IPRules - The IP ACL rules. + IPRules *[]IPRule `json:"ipRules,omitempty"` } // OperationDefinition the definition of a container registry operation. @@ -1844,10 +1867,12 @@ type TrustPolicy struct { Status PolicyStatus `json:"status,omitempty"` } -// VirtualNetworkRule the virtual network rule for a container registry. +// VirtualNetworkRule virtual network rule. type VirtualNetworkRule struct { - // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. - ID *string `json:"id,omitempty"` + // Action - The action of virtual network rule. Possible values include: 'Allow' + Action Action `json:"action,omitempty"` + // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + VirtualNetworkResourceID *string `json:"id,omitempty"` } // Webhook an object that represents a webhook for a container registry. diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go index 7ce86e25b9b3..0cbd5b728a31 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go @@ -31,6 +31,19 @@ import ( // The package's fully qualified name. const fqdn = "github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2018-09-01/containerregistry" +// Action enumerates the values for action. +type Action string + +const ( + // Allow ... + Allow Action = "Allow" +) + +// PossibleActionValues returns an array of possible values for the Action const type. +func PossibleActionValues() []Action { + return []Action{Allow} +} + // Architecture enumerates the values for architecture. type Architecture string @@ -82,15 +95,15 @@ func PossibleBaseImageTriggerTypeValues() []BaseImageTriggerType { type DefaultAction string const ( - // Allow ... - Allow DefaultAction = "Allow" - // Deny ... - Deny DefaultAction = "Deny" + // DefaultActionAllow ... + DefaultActionAllow DefaultAction = "Allow" + // DefaultActionDeny ... + DefaultActionDeny DefaultAction = "Deny" ) // PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. func PossibleDefaultActionValues() []DefaultAction { - return []DefaultAction{Allow, Deny} + return []DefaultAction{DefaultActionAllow, DefaultActionDeny} } // ImportMode enumerates the values for import mode. @@ -1587,12 +1600,22 @@ type ImportSourceCredentials struct { Password *string `json:"password,omitempty"` } +// IPRule IP rule with specific IP or IP range in CIDR format. +type IPRule struct { + // Action - The action of IP ACL rule. Possible values include: 'Allow' + Action Action `json:"action,omitempty"` + // IPAddressOrRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + IPAddressOrRange *string `json:"value,omitempty"` +} + // NetworkRuleSet the network rule set for a container registry. type NetworkRuleSet struct { - // DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny' + // DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'DefaultActionAllow', 'DefaultActionDeny' DefaultAction DefaultAction `json:"defaultAction,omitempty"` // VirtualNetworkRules - The virtual network rules. VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + // IPRules - The IP ACL rules. + IPRules *[]IPRule `json:"ipRules,omitempty"` } // OperationDefinition the definition of a container registry operation. @@ -4375,10 +4398,12 @@ type TrustPolicy struct { Status PolicyStatus `json:"status,omitempty"` } -// VirtualNetworkRule the virtual network rule for a container registry. +// VirtualNetworkRule virtual network rule. type VirtualNetworkRule struct { - // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. - ID *string `json:"id,omitempty"` + // Action - The action of virtual network rule. Possible values include: 'Allow' + Action Action `json:"action,omitempty"` + // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + VirtualNetworkResourceID *string `json:"id,omitempty"` } // Webhook an object that represents a webhook for a container registry. 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 0f834c836301..15d1417b6b92 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go @@ -31,6 +31,19 @@ import ( // The package's fully qualified name. const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2018-02-01/containerregistry" +// Action enumerates the values for action. +type Action string + +const ( + // Allow ... + Allow Action = "Allow" +) + +// PossibleActionValues returns an array of possible values for the Action const type. +func PossibleActionValues() []Action { + return []Action{Allow} +} + // BaseImageDependencyType enumerates the values for base image dependency type. type BaseImageDependencyType string @@ -124,15 +137,15 @@ func PossibleBuildTypeValues() []BuildType { type DefaultAction string const ( - // Allow ... - Allow DefaultAction = "Allow" - // Deny ... - Deny DefaultAction = "Deny" + // DefaultActionAllow ... + DefaultActionAllow DefaultAction = "Allow" + // DefaultActionDeny ... + DefaultActionDeny DefaultAction = "Deny" ) // PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. func PossibleDefaultActionValues() []DefaultAction { - return []DefaultAction{Allow, Deny} + return []DefaultAction{DefaultActionAllow, DefaultActionDeny} } // ImportMode enumerates the values for import mode. @@ -2374,12 +2387,22 @@ type ImportSourceCredentials struct { Password *string `json:"password,omitempty"` } +// IPRule IP rule with specific IP or IP range in CIDR format. +type IPRule struct { + // Action - The action of IP ACL rule. Possible values include: 'Allow' + Action Action `json:"action,omitempty"` + // IPAddressOrRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + IPAddressOrRange *string `json:"value,omitempty"` +} + // NetworkRuleSet the network rule set for a container registry. type NetworkRuleSet struct { - // DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny' + // DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'DefaultActionAllow', 'DefaultActionDeny' DefaultAction DefaultAction `json:"defaultAction,omitempty"` // VirtualNetworkRules - The virtual network rules. VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + // IPRules - The IP ACL rules. + IPRules *[]IPRule `json:"ipRules,omitempty"` } // OperationDefinition the definition of a container registry operation. @@ -3945,10 +3968,12 @@ type TrustPolicy struct { Status PolicyStatus `json:"status,omitempty"` } -// VirtualNetworkRule the virtual network rule for a container registry. +// VirtualNetworkRule virtual network rule. type VirtualNetworkRule struct { - // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. - ID *string `json:"id,omitempty"` + // Action - The action of virtual network rule. Possible values include: 'Allow' + Action Action `json:"action,omitempty"` + // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + VirtualNetworkResourceID *string `json:"id,omitempty"` } // Webhook an object that represents a webhook for a container registry.