From 67af8a62e5995f77ed46d9a18d649ad49e45c368 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 26 Aug 2021 01:08:33 +0000 Subject: [PATCH] CodeGen from PR 15797 in Azure/azure-rest-api-specs Merge 52a6bf848d9dc6f8bd96c0aa6abf95b600061f04 into c99fbb96d7993daec8135a40681d9d807e3f5751 --- .../src/Generated/IotHubClient.cs | 2 +- .../Models/CertificateBodyDescription.cs | 13 ++++- .../Generated/Models/CertificateProperties.cs | 4 +- .../src/Generated/Models/IotHubProperties.cs | 55 ++++++++++++++++++- .../src/Generated/SdkInfo_iotHubClient.cs | 25 +++------ 5 files changed, 76 insertions(+), 23 deletions(-) diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubClient.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubClient.cs index 08defd8c022b..1852c0261936 100644 --- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubClient.cs +++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubClient.cs @@ -358,7 +358,7 @@ private void Initialize() PrivateLinkResources = new PrivateLinkResourcesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2021-03-31"; + ApiVersion = "2021-07-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/CertificateBodyDescription.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/CertificateBodyDescription.cs index 32feb9d34d5b..7cbacac0cc9b 100644 --- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/CertificateBodyDescription.cs +++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/CertificateBodyDescription.cs @@ -31,9 +31,13 @@ public CertificateBodyDescription() /// /// base-64 representation of the X509 leaf /// certificate .cer file or just .pem file content. - public CertificateBodyDescription(string certificate = default(string)) + /// True indicates that the certificate will + /// be created in verified state and proof of possession will not be + /// required. + public CertificateBodyDescription(string certificate = default(string), bool? isVerified = default(bool?)) { Certificate = certificate; + IsVerified = isVerified; CustomInit(); } @@ -49,5 +53,12 @@ public CertificateBodyDescription() [JsonProperty(PropertyName = "certificate")] public string Certificate { get; set; } + /// + /// Gets or sets true indicates that the certificate will be created in + /// verified state and proof of possession will not be required. + /// + [JsonProperty(PropertyName = "isVerified")] + public bool? IsVerified { get; set; } + } } diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/CertificateProperties.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/CertificateProperties.cs index f88b70ccf7c1..c170e63f1292 100644 --- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/CertificateProperties.cs +++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/CertificateProperties.cs @@ -79,10 +79,10 @@ public CertificateProperties() public string Thumbprint { get; private set; } /// - /// Gets determines whether certificate has been verified. + /// Gets or sets determines whether certificate has been verified. /// [JsonProperty(PropertyName = "isVerified")] - public bool? IsVerified { get; private set; } + public bool? IsVerified { get; set; } /// /// Gets the certificate's create date and time. diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubProperties.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubProperties.cs index 2b73c00c41e4..4e1b6b5184e2 100644 --- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubProperties.cs +++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubProperties.cs @@ -33,6 +33,18 @@ public IotHubProperties() /// /// The shared access policies you /// can use to secure a connection to the IoT hub. + /// If true, SAS tokens with Iot hub + /// scoped SAS keys cannot be used for authentication. + /// If true, all device(including Edge + /// devices but excluding modules) scoped SAS keys cannot be used for + /// authentication. + /// If true, all module scoped SAS keys + /// cannot be used for authentication. + /// If true, egress from + /// IotHub will be restricted to only the allowed FQDNs that are + /// configured via allowedFqdnList. + /// List of allowed FQDNs(Fully Qualified + /// Domain Name) for egress from Iot Hub. /// Whether requests from Public /// Network are allowed. Possible values include: 'Enabled', /// 'Disabled' @@ -66,9 +78,14 @@ public IotHubProperties() /// 'DeviceManagement' /// Primary and secondary location for iot /// hub - public IotHubProperties(IList authorizationPolicies = default(IList), string publicNetworkAccess = default(string), IList ipFilterRules = default(IList), NetworkRuleSetProperties networkRuleSets = default(NetworkRuleSetProperties), string minTlsVersion = default(string), IList privateEndpointConnections = default(IList), string provisioningState = default(string), string state = default(string), string hostName = default(string), IDictionary eventHubEndpoints = default(IDictionary), RoutingProperties routing = default(RoutingProperties), IDictionary storageEndpoints = default(IDictionary), IDictionary messagingEndpoints = default(IDictionary), bool? enableFileUploadNotifications = default(bool?), CloudToDeviceProperties cloudToDevice = default(CloudToDeviceProperties), string comments = default(string), string features = default(string), IList locations = default(IList)) + public IotHubProperties(IList authorizationPolicies = default(IList), bool? disableLocalAuth = default(bool?), bool? disableDeviceSAS = default(bool?), bool? disableModuleSAS = default(bool?), bool? restrictOutboundNetworkAccess = default(bool?), IList allowedFqdnList = default(IList), string publicNetworkAccess = default(string), IList ipFilterRules = default(IList), NetworkRuleSetProperties networkRuleSets = default(NetworkRuleSetProperties), string minTlsVersion = default(string), IList privateEndpointConnections = default(IList), string provisioningState = default(string), string state = default(string), string hostName = default(string), IDictionary eventHubEndpoints = default(IDictionary), RoutingProperties routing = default(RoutingProperties), IDictionary storageEndpoints = default(IDictionary), IDictionary messagingEndpoints = default(IDictionary), bool? enableFileUploadNotifications = default(bool?), CloudToDeviceProperties cloudToDevice = default(CloudToDeviceProperties), string comments = default(string), string features = default(string), IList locations = default(IList)) { AuthorizationPolicies = authorizationPolicies; + DisableLocalAuth = disableLocalAuth; + DisableDeviceSAS = disableDeviceSAS; + DisableModuleSAS = disableModuleSAS; + RestrictOutboundNetworkAccess = restrictOutboundNetworkAccess; + AllowedFqdnList = allowedFqdnList; PublicNetworkAccess = publicNetworkAccess; IpFilterRules = ipFilterRules; NetworkRuleSets = networkRuleSets; @@ -101,6 +118,42 @@ public IotHubProperties() [JsonProperty(PropertyName = "authorizationPolicies")] public IList AuthorizationPolicies { get; set; } + /// + /// Gets or sets if true, SAS tokens with Iot hub scoped SAS keys + /// cannot be used for authentication. + /// + [JsonProperty(PropertyName = "disableLocalAuth")] + public bool? DisableLocalAuth { get; set; } + + /// + /// Gets or sets if true, all device(including Edge devices but + /// excluding modules) scoped SAS keys cannot be used for + /// authentication. + /// + [JsonProperty(PropertyName = "disableDeviceSAS")] + public bool? DisableDeviceSAS { get; set; } + + /// + /// Gets or sets if true, all module scoped SAS keys cannot be used for + /// authentication. + /// + [JsonProperty(PropertyName = "disableModuleSAS")] + public bool? DisableModuleSAS { get; set; } + + /// + /// Gets or sets if true, egress from IotHub will be restricted to only + /// the allowed FQDNs that are configured via allowedFqdnList. + /// + [JsonProperty(PropertyName = "restrictOutboundNetworkAccess")] + public bool? RestrictOutboundNetworkAccess { get; set; } + + /// + /// Gets or sets list of allowed FQDNs(Fully Qualified Domain Name) for + /// egress from Iot Hub. + /// + [JsonProperty(PropertyName = "allowedFqdnList")] + public IList AllowedFqdnList { get; set; } + /// /// Gets or sets whether requests from Public Network are allowed. /// Possible values include: 'Enabled', 'Disabled' diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/SdkInfo_iotHubClient.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/SdkInfo_iotHubClient.cs index 61d6fd6d1143..62235b608874 100644 --- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/SdkInfo_iotHubClient.cs +++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/SdkInfo_iotHubClient.cs @@ -19,26 +19,15 @@ public static IEnumerable> ApiInfo_iotHubClient { return new Tuple[] { - new Tuple("Devices", "Certificates", "2021-03-31"), - new Tuple("Devices", "IotHub", "2021-03-31"), - new Tuple("Devices", "IotHubResource", "2021-03-31"), - new Tuple("Devices", "Operations", "2021-03-31"), - new Tuple("Devices", "PrivateEndpointConnections", "2021-03-31"), - new Tuple("Devices", "PrivateLinkResources", "2021-03-31"), - new Tuple("Devices", "ResourceProviderCommon", "2021-03-31"), + new Tuple("Devices", "Certificates", "2021-07-01"), + new Tuple("Devices", "IotHub", "2021-07-01"), + new Tuple("Devices", "IotHubResource", "2021-07-01"), + new Tuple("Devices", "Operations", "2021-07-01"), + new Tuple("Devices", "PrivateEndpointConnections", "2021-07-01"), + new Tuple("Devices", "PrivateLinkResources", "2021-07-01"), + new Tuple("Devices", "ResourceProviderCommon", "2021-07-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/iothub/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\code\\Azure\\asfn1\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "7d4caa5e1c9996a25300b0b23ef426667e4a7bde"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -