From 98e96d1a827b48fb9a20429a81e4b30cd3769f01 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Fri, 11 Oct 2019 11:56:52 +0800 Subject: [PATCH] Generated from 2128273966bce4b74889c8d94b5f3b2cb6592bd8 (#6007) fixed spellcheck --- .../preview/eventhub/mgmt/eventhub/models.go | 21 +++++++ .../2018-01-01-preview/eventhub/models.go | 58 +++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/profiles/preview/preview/eventhub/mgmt/eventhub/models.go b/profiles/preview/preview/eventhub/mgmt/eventhub/models.go index 752727ce092e..f4cc4662efc8 100644 --- a/profiles/preview/preview/eventhub/mgmt/eventhub/models.go +++ b/profiles/preview/preview/eventhub/mgmt/eventhub/models.go @@ -43,6 +43,18 @@ const ( Reject IPAction = original.Reject ) +type IdentityType = original.IdentityType + +const ( + SystemAssigned IdentityType = original.SystemAssigned +) + +type KeySource = original.KeySource + +const ( + MicrosoftKeyVault KeySource = original.MicrosoftKeyVault +) + type NetworkRuleIPAction = original.NetworkRuleIPAction const ( @@ -85,12 +97,15 @@ type EHNamespaceListResult = original.EHNamespaceListResult type EHNamespaceListResultIterator = original.EHNamespaceListResultIterator type EHNamespaceListResultPage = original.EHNamespaceListResultPage type EHNamespaceProperties = original.EHNamespaceProperties +type Encryption = original.Encryption type ErrorResponse = original.ErrorResponse type IPFilterRule = original.IPFilterRule type IPFilterRuleListResult = original.IPFilterRuleListResult type IPFilterRuleListResultIterator = original.IPFilterRuleListResultIterator type IPFilterRuleListResultPage = original.IPFilterRuleListResultPage type IPFilterRuleProperties = original.IPFilterRuleProperties +type Identity = original.Identity +type KeyVaultProperties = original.KeyVaultProperties type NWRuleSetIPRules = original.NWRuleSetIPRules type NWRuleSetVirtualNetworkRules = original.NWRuleSetVirtualNetworkRules type NamespacesClient = original.NamespacesClient @@ -180,6 +195,12 @@ func PossibleDefaultActionValues() []DefaultAction { func PossibleIPActionValues() []IPAction { return original.PossibleIPActionValues() } +func PossibleIdentityTypeValues() []IdentityType { + return original.PossibleIdentityTypeValues() +} +func PossibleKeySourceValues() []KeySource { + return original.PossibleKeySourceValues() +} func PossibleNetworkRuleIPActionValues() []NetworkRuleIPAction { return original.PossibleNetworkRuleIPActionValues() } diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go index 8a3ad3c6d17c..c0e01c5e8f76 100644 --- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go +++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go @@ -46,6 +46,19 @@ func PossibleDefaultActionValues() []DefaultAction { return []DefaultAction{Allow, Deny} } +// IdentityType enumerates the values for identity type. +type IdentityType string + +const ( + // SystemAssigned ... + SystemAssigned IdentityType = "SystemAssigned" +) + +// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type. +func PossibleIdentityTypeValues() []IdentityType { + return []IdentityType{SystemAssigned} +} + // IPAction enumerates the values for ip action. type IPAction string @@ -61,6 +74,19 @@ func PossibleIPActionValues() []IPAction { return []IPAction{Accept, Reject} } +// KeySource enumerates the values for key source. +type KeySource string + +const ( + // MicrosoftKeyVault ... + MicrosoftKeyVault KeySource = "Microsoft.KeyVault" +) + +// PossibleKeySourceValues returns an array of possible values for the KeySource const type. +func PossibleKeySourceValues() []KeySource { + return []KeySource{MicrosoftKeyVault} +} + // NetworkRuleIPAction enumerates the values for network rule ip action. type NetworkRuleIPAction string @@ -778,6 +804,8 @@ type EHNamespaceProperties struct { UpdatedAt *date.Time `json:"updatedAt,omitempty"` // ServiceBusEndpoint - READ-ONLY; Endpoint you can use to perform Service Bus operations. ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty"` + // ClusterArmID - Cluster ARM ID of the Namespace. + ClusterArmID *string `json:"clusterArmId,omitempty"` // MetricID - READ-ONLY; Identifier for Azure Insights metrics. MetricID *string `json:"metricId,omitempty"` // IsAutoInflateEnabled - Value that indicates whether AutoInflate is enabled for eventhub namespace. @@ -788,6 +816,18 @@ type EHNamespaceProperties struct { KafkaEnabled *bool `json:"kafkaEnabled,omitempty"` // ZoneRedundant - Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` + // Identity - Properties of BYOK Identity description + Identity *Identity `json:"identity,omitempty"` + // Encryption - Properties of BYOK Encryption description + Encryption *Encryption `json:"encryption,omitempty"` +} + +// Encryption properties to configure Encryption +type Encryption struct { + // KeyVaultProperties - Properties of KeyVault + KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` + // KeySource - Enumerates the possible value of keySource for Encryption. Possible values include: 'MicrosoftKeyVault' + KeySource KeySource `json:"keySource,omitempty"` } // ErrorResponse error response that indicates the service is not able to process the incoming request. The @@ -799,6 +839,16 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// Identity properties to configure Identity for Bring your Own Keys +type Identity struct { + // PrincipalID - ObjectId from the KeyVault + PrincipalID *string `json:"principalId,omitempty"` + // TenantID - TenantId from the KeyVault + TenantID *string `json:"tenantId,omitempty"` + // Type - Enumerates the possible value Identity type, which currently supports only 'SystemAssigned'. Possible values include: 'SystemAssigned' + Type IdentityType `json:"type,omitempty"` +} + // IPFilterRule single item in a List or Get IpFilterRules operation type IPFilterRule struct { autorest.Response `json:"-"` @@ -1028,6 +1078,14 @@ type IPFilterRuleProperties struct { FilterName *string `json:"filterName,omitempty"` } +// KeyVaultProperties properties to configure keyVault Properties +type KeyVaultProperties struct { + // KeyName - Name of the Key from KeyVault + KeyName *string `json:"keyName,omitempty"` + // KeyVaultURI - Uri of KeyVault + KeyVaultURI *string `json:"keyVaultUri,omitempty"` +} + // NamespacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type NamespacesCreateOrUpdateFuture struct {