diff --git a/management/azure_mgmt_web/lib/2015-04-01/build.json b/management/azure_mgmt_web/lib/2015-04-01/build.json new file mode 100644 index 0000000000..3c428610b4 --- /dev/null +++ b/management/azure_mgmt_web/lib/2015-04-01/build.json @@ -0,0 +1,226 @@ +{ + "autorest": [ + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest-core", + "version": "2.0.4168", + "engines": { + "node": ">=7.10.0" + }, + "dependencies": {}, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/async-io": "~1.0.22", + "@microsoft.azure/extension": "~1.2.12", + "@types/commonmark": "^0.27.0", + "@types/jsonpath": "^0.1.29", + "@types/node": "^8.0.28", + "@types/pify": "0.0.28", + "@types/source-map": "^0.5.0", + "@types/yargs": "^8.0.2", + "commonmark": "^0.27.0", + "file-url": "^2.0.2", + "get-uri": "^2.0.0", + "jsonpath": "^0.2.11", + "linq-es2015": "^2.4.25", + "mocha": "3.4.2", + "mocha-typescript": "1.1.5", + "pify": "^3.0.0", + "safe-eval": "^0.3.0", + "shx": "^0.2.2", + "source-map": "^0.5.6", + "source-map-support": "^0.4.15", + "strip-bom": "^3.0.0", + "typescript": "2.5.3", + "untildify": "^3.0.2", + "urijs": "^1.18.10", + "vscode-jsonrpc": "^3.3.1", + "yaml-ast-parser": "https://github.com/olydis/yaml-ast-parser/releases/download/0.0.34/yaml-ast-parser-0.0.34.tgz", + "yargs": "^8.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_shasum": "33813111fc9bfa488bd600fbba48bc53cc9182c7", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest-core@2.0.4168", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.0.21", + "dependencies": { + "dotnet-2.0.0": "^1.3.2" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.1.1", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.0.21", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.1.22", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "ca425289fa38a210d279729048a4a91673f09c67", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.1.22", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.ruby", + "version": "3.0.20", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/autorest.testserver": "^1.9.2", + "autorest": "^2.0.0", + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_shasum": "f5b24eb17914aad0e8d2da581642044a6088d905", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.ruby@3.0.20", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_where": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + } + ], + "autorest_bootstrap": {}, + "date": "2017-10-23T19:34:39Z" +} \ No newline at end of file diff --git a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web.rb b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web.rb index 82d00f1bdf..9351fd4586 100644 --- a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web.rb +++ b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web.rb @@ -25,25 +25,26 @@ module Azure::Web::Mgmt::V2015_04_01 autoload :WebSiteManagementClient, '2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb' module Models + autoload :DomainOwnershipIdentifierCollection, '2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb' + autoload :Contact, '2015-04-01/generated/azure_mgmt_web/models/contact.rb' autoload :DomainRecommendationSearchParameters, '2015-04-01/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb' - autoload :Address, '2015-04-01/generated/azure_mgmt_web/models/address.rb' - autoload :NameIdentifier, '2015-04-01/generated/azure_mgmt_web/models/name_identifier.rb' - autoload :HostName, '2015-04-01/generated/azure_mgmt_web/models/host_name.rb' - autoload :NameIdentifierCollection, '2015-04-01/generated/azure_mgmt_web/models/name_identifier_collection.rb' autoload :DomainPurchaseConsent, '2015-04-01/generated/azure_mgmt_web/models/domain_purchase_consent.rb' + autoload :NameIdentifier, '2015-04-01/generated/azure_mgmt_web/models/name_identifier.rb' autoload :DomainAvailablilityCheckResult, '2015-04-01/generated/azure_mgmt_web/models/domain_availablility_check_result.rb' - autoload :TopLevelDomainCollection, '2015-04-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb' + autoload :NameIdentifierCollection, '2015-04-01/generated/azure_mgmt_web/models/name_identifier_collection.rb' autoload :DomainControlCenterSsoRequest, '2015-04-01/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb' - autoload :Resource, '2015-04-01/generated/azure_mgmt_web/models/resource.rb' - autoload :DomainOwnershipIdentifierCollection, '2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb' autoload :ProxyOnlyResource, '2015-04-01/generated/azure_mgmt_web/models/proxy_only_resource.rb' - autoload :DomainCollection, '2015-04-01/generated/azure_mgmt_web/models/domain_collection.rb' + autoload :Address, '2015-04-01/generated/azure_mgmt_web/models/address.rb' + autoload :Resource, '2015-04-01/generated/azure_mgmt_web/models/resource.rb' + autoload :HostName, '2015-04-01/generated/azure_mgmt_web/models/host_name.rb' + autoload :TopLevelDomainCollection, '2015-04-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb' + autoload :TopLevelDomainAgreementOption, '2015-04-01/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb' autoload :TldLegalAgreement, '2015-04-01/generated/azure_mgmt_web/models/tld_legal_agreement.rb' - autoload :Contact, '2015-04-01/generated/azure_mgmt_web/models/contact.rb' + autoload :DomainCollection, '2015-04-01/generated/azure_mgmt_web/models/domain_collection.rb' autoload :TldLegalAgreementCollection, '2015-04-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb' - autoload :TopLevelDomainAgreementOption, '2015-04-01/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb' autoload :Domain, '2015-04-01/generated/azure_mgmt_web/models/domain.rb' autoload :DomainOwnershipIdentifier, '2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb' + autoload :DomainPatchResource, '2015-04-01/generated/azure_mgmt_web/models/domain_patch_resource.rb' autoload :TopLevelDomain, '2015-04-01/generated/azure_mgmt_web/models/top_level_domain.rb' autoload :DomainStatus, '2015-04-01/generated/azure_mgmt_web/models/domain_status.rb' autoload :ProvisioningState, '2015-04-01/generated/azure_mgmt_web/models/provisioning_state.rb' diff --git a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/domains.rb b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/domains.rb index 69fb7a0326..7296865145 100644 --- a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +++ b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/domains.rb @@ -748,6 +748,129 @@ def delete_async(resource_group_name, domain_name, force_hard_delete_domain = ni promise.execute end + # + # Creates or updates a domain. + # + # Creates or updates a domain. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param domain_name [String] Name of the domain. + # @param domain [DomainPatchResource] Domain registration information. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Domain] operation results. + # + def update(resource_group_name, domain_name, domain, custom_headers = nil) + response = update_async(resource_group_name, domain_name, domain, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates a domain. + # + # Creates or updates a domain. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param domain_name [String] Name of the domain. + # @param domain [DomainPatchResource] Domain registration information. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, domain_name, domain, custom_headers = nil) + update_async(resource_group_name, domain_name, domain, custom_headers).value! + end + + # + # Creates or updates a domain. + # + # Creates or updates a domain. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param domain_name [String] Name of the domain. + # @param domain [DomainPatchResource] Domain registration information. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, domain_name, domain, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'domain_name is nil' if domain_name.nil? + fail ArgumentError, 'domain is nil' if domain.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2015_04_01::Models::DomainPatchResource.mapper() + request_content = @client.serialize(request_mapper, domain) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 202 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2015_04_01::Models::Domain.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2015_04_01::Models::Domain.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Lists domain ownership identifiers. # diff --git a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/address.rb b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/address.rb index 38cf00115f..d10dbce830 100644 --- a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/address.rb +++ b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/address.rb @@ -12,22 +12,22 @@ class Address include MsRestAzure - # @return [String] Address 1. + # @return [String] First line of an Address. attr_accessor :address1 - # @return [String] Address 2. + # @return [String] The second line of the Address. Optional. attr_accessor :address2 - # @return [String] City. + # @return [String] The city for the address. attr_accessor :city - # @return [String] Country. + # @return [String] The country for the address. attr_accessor :country - # @return [String] Postal code. + # @return [String] The postal code for the address. attr_accessor :postal_code - # @return [String] State. + # @return [String] The state or province for the address. attr_accessor :state diff --git a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain.rb b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain.rb index 1f94f033ed..73358df78c 100644 --- a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain.rb +++ b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain.rb @@ -327,7 +327,6 @@ def self.mapper() }, auth_code: { required: false, - read_only: true, serialized_name: 'properties.authCode', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb index 43d8976787..5a1030fb79 100644 --- a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +++ b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb @@ -8,7 +8,7 @@ module Models # # Domain ownership Identifier. # - class DomainOwnershipIdentifier < Resource + class DomainOwnershipIdentifier < ProxyOnlyResource include MsRestAzure @@ -51,13 +51,6 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, read_only: true, @@ -66,20 +59,6 @@ def self.mapper() name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, ownership_id: { required: false, serialized_name: 'properties.ownershipId', diff --git a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain_patch_resource.rb b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain_patch_resource.rb new file mode 100644 index 0000000000..d3e7050c4e --- /dev/null +++ b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/models/domain_patch_resource.rb @@ -0,0 +1,320 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2015_04_01 + module Models + # + # ARM resource for a domain. + # + class DomainPatchResource < ProxyOnlyResource + + include MsRestAzure + + # @return [Contact] Administrative contact. + attr_accessor :contact_admin + + # @return [Contact] Billing contact. + attr_accessor :contact_billing + + # @return [Contact] Registrant contact. + attr_accessor :contact_registrant + + # @return [Contact] Technical contact. + attr_accessor :contact_tech + + # @return [DomainStatus] Domain registration status. Possible values + # include: 'Active', 'Awaiting', 'Cancelled', 'Confiscated', 'Disabled', + # 'Excluded', 'Expired', 'Failed', 'Held', 'Locked', 'Parked', 'Pending', + # 'Reserved', 'Reverted', 'Suspended', 'Transferred', 'Unknown', + # 'Unlocked', 'Unparked', 'Updated', 'JsonConverterFailed' + attr_accessor :registration_status + + # @return [ProvisioningState] Domain provisioning state. Possible values + # include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting' + attr_accessor :provisioning_state + + # @return [Array] Name servers. + attr_accessor :name_servers + + # @return [Boolean] true if domain privacy is enabled for + # this domain; otherwise, false. + attr_accessor :privacy + + # @return [DateTime] Domain creation timestamp. + attr_accessor :created_time + + # @return [DateTime] Domain expiration timestamp. + attr_accessor :expiration_time + + # @return [DateTime] Timestamp when the domain was renewed last time. + attr_accessor :last_renewed_time + + # @return [Boolean] true if the domain should be + # automatically renewed; otherwise, false. Default value: + # true . + attr_accessor :auto_renew + + # @return [Boolean] true if Azure can assign this domain to + # App Service apps; otherwise, false. This value will be + # true if domain registration status is active and + # it is hosted on name servers Azure has programmatic access to. + attr_accessor :ready_for_dns_record_management + + # @return [Array] All hostnames derived from the domain and + # assigned to Azure resources. + attr_accessor :managed_host_names + + # @return [DomainPurchaseConsent] Legal agreement consent. + attr_accessor :consent + + # @return [Array] Reasons why domain is not renewable. + attr_accessor :domain_not_renewable_reasons + + # @return [DnsType] Current DNS type. Possible values include: + # 'AzureDns', 'DefaultDomainRegistrarDns' + attr_accessor :dns_type + + # @return [String] Azure DNS Zone to use + attr_accessor :dns_zone_id + + # @return [DnsType] Target DNS type (would be used for migration). + # Possible values include: 'AzureDns', 'DefaultDomainRegistrarDns' + attr_accessor :target_dns_type + + # @return [String] + attr_accessor :auth_code + + + # + # Mapper for DomainPatchResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DomainPatchResource', + type: { + name: 'Composite', + class_name: 'DomainPatchResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + contact_admin: { + required: false, + serialized_name: 'properties.contactAdmin', + type: { + name: 'Composite', + class_name: 'Contact' + } + }, + contact_billing: { + required: false, + serialized_name: 'properties.contactBilling', + type: { + name: 'Composite', + class_name: 'Contact' + } + }, + contact_registrant: { + required: false, + serialized_name: 'properties.contactRegistrant', + type: { + name: 'Composite', + class_name: 'Contact' + } + }, + contact_tech: { + required: false, + serialized_name: 'properties.contactTech', + type: { + name: 'Composite', + class_name: 'Contact' + } + }, + registration_status: { + required: false, + read_only: true, + serialized_name: 'properties.registrationStatus', + type: { + name: 'Enum', + module: 'DomainStatus' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'Enum', + module: 'ProvisioningState' + } + }, + name_servers: { + required: false, + read_only: true, + serialized_name: 'properties.nameServers', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + privacy: { + required: false, + serialized_name: 'properties.privacy', + type: { + name: 'Boolean' + } + }, + created_time: { + required: false, + read_only: true, + serialized_name: 'properties.createdTime', + type: { + name: 'DateTime' + } + }, + expiration_time: { + required: false, + read_only: true, + serialized_name: 'properties.expirationTime', + type: { + name: 'DateTime' + } + }, + last_renewed_time: { + required: false, + read_only: true, + serialized_name: 'properties.lastRenewedTime', + type: { + name: 'DateTime' + } + }, + auto_renew: { + required: false, + serialized_name: 'properties.autoRenew', + default_value: true, + type: { + name: 'Boolean' + } + }, + ready_for_dns_record_management: { + required: false, + read_only: true, + serialized_name: 'properties.readyForDnsRecordManagement', + type: { + name: 'Boolean' + } + }, + managed_host_names: { + required: false, + read_only: true, + serialized_name: 'properties.managedHostNames', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'HostNameElementType', + type: { + name: 'Composite', + class_name: 'HostName' + } + } + } + }, + consent: { + required: false, + serialized_name: 'properties.consent', + type: { + name: 'Composite', + class_name: 'DomainPurchaseConsent' + } + }, + domain_not_renewable_reasons: { + required: false, + read_only: true, + serialized_name: 'properties.domainNotRenewableReasons', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'enumElementType', + type: { + name: 'String' + } + } + } + }, + dns_type: { + required: false, + serialized_name: 'properties.dnsType', + type: { + name: 'Enum', + module: 'DnsType' + } + }, + dns_zone_id: { + required: false, + serialized_name: 'properties.dnsZoneId', + type: { + name: 'String' + } + }, + target_dns_type: { + required: false, + serialized_name: 'properties.targetDnsType', + type: { + name: 'Enum', + module: 'DnsType' + } + }, + auth_code: { + required: false, + serialized_name: 'properties.authCode', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2015-08-01/build.json b/management/azure_mgmt_web/lib/2015-08-01/build.json new file mode 100644 index 0000000000..d1b7ddfd2b --- /dev/null +++ b/management/azure_mgmt_web/lib/2015-08-01/build.json @@ -0,0 +1,226 @@ +{ + "autorest": [ + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest-core", + "version": "2.0.4168", + "engines": { + "node": ">=7.10.0" + }, + "dependencies": {}, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/async-io": "~1.0.22", + "@microsoft.azure/extension": "~1.2.12", + "@types/commonmark": "^0.27.0", + "@types/jsonpath": "^0.1.29", + "@types/node": "^8.0.28", + "@types/pify": "0.0.28", + "@types/source-map": "^0.5.0", + "@types/yargs": "^8.0.2", + "commonmark": "^0.27.0", + "file-url": "^2.0.2", + "get-uri": "^2.0.0", + "jsonpath": "^0.2.11", + "linq-es2015": "^2.4.25", + "mocha": "3.4.2", + "mocha-typescript": "1.1.5", + "pify": "^3.0.0", + "safe-eval": "^0.3.0", + "shx": "^0.2.2", + "source-map": "^0.5.6", + "source-map-support": "^0.4.15", + "strip-bom": "^3.0.0", + "typescript": "2.5.3", + "untildify": "^3.0.2", + "urijs": "^1.18.10", + "vscode-jsonrpc": "^3.3.1", + "yaml-ast-parser": "https://github.com/olydis/yaml-ast-parser/releases/download/0.0.34/yaml-ast-parser-0.0.34.tgz", + "yargs": "^8.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_shasum": "33813111fc9bfa488bd600fbba48bc53cc9182c7", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest-core@2.0.4168", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.0.21", + "dependencies": { + "dotnet-2.0.0": "^1.3.2" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.1.1", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.0.21", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.1.22", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "ca425289fa38a210d279729048a4a91673f09c67", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.1.22", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.ruby", + "version": "3.0.20", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/autorest.testserver": "^1.9.2", + "autorest": "^2.0.0", + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_shasum": "f5b24eb17914aad0e8d2da581642044a6088d905", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.ruby@3.0.20", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_where": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + } + ], + "autorest_bootstrap": {}, + "date": "2017-10-23T19:34:28Z" +} \ No newline at end of file diff --git a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web.rb b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web.rb index 97df12ff09..4da9daca76 100644 --- a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web.rb +++ b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web.rb @@ -27,14 +27,16 @@ module Models autoload :AppServiceCertificateOrderCollection, '2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb' autoload :Resource, '2015-08-01/generated/azure_mgmt_web/models/resource.rb' autoload :AppServiceCertificate, '2015-08-01/generated/azure_mgmt_web/models/app_service_certificate.rb' - autoload :SiteSealRequest, '2015-08-01/generated/azure_mgmt_web/models/site_seal_request.rb' - autoload :CertificateDetails, '2015-08-01/generated/azure_mgmt_web/models/certificate_details.rb' - autoload :AppServiceCertificateCollection, '2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb' autoload :NameIdentifier, '2015-08-01/generated/azure_mgmt_web/models/name_identifier.rb' + autoload :CertificateDetails, '2015-08-01/generated/azure_mgmt_web/models/certificate_details.rb' autoload :SiteSeal, '2015-08-01/generated/azure_mgmt_web/models/site_seal.rb' + autoload :AppServiceCertificateCollection, '2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb' autoload :ProxyOnlyResource, '2015-08-01/generated/azure_mgmt_web/models/proxy_only_resource.rb' + autoload :SiteSealRequest, '2015-08-01/generated/azure_mgmt_web/models/site_seal_request.rb' autoload :AppServiceCertificateResource, '2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_resource.rb' autoload :AppServiceCertificateOrder, '2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_order.rb' + autoload :AppServiceCertificateOrderPatchResource, '2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb' + autoload :AppServiceCertificatePatchResource, '2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb' autoload :CertificateEmail, '2015-08-01/generated/azure_mgmt_web/models/certificate_email.rb' autoload :CertificateOrderAction, '2015-08-01/generated/azure_mgmt_web/models/certificate_order_action.rb' autoload :ReissueCertificateOrderRequest, '2015-08-01/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb' diff --git a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb index f51ea8fe08..4d4d488c50 100644 --- a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +++ b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb @@ -539,6 +539,135 @@ def delete_async(resource_group_name, certificate_order_name, custom_headers = n promise.execute end + # + # Create or update a certificate purchase order. + # + # Create or update a certificate purchase order. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param certificate_order_name [String] Name of the certificate order. + # @param certificate_distinguished_name + # [AppServiceCertificateOrderPatchResource] Distinguished name to to use for + # the certificate order. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AppServiceCertificateOrder] operation results. + # + def update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) + response = update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or update a certificate purchase order. + # + # Create or update a certificate purchase order. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param certificate_order_name [String] Name of the certificate order. + # @param certificate_distinguished_name + # [AppServiceCertificateOrderPatchResource] Distinguished name to to use for + # the certificate order. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) + update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! + end + + # + # Create or update a certificate purchase order. + # + # Create or update a certificate purchase order. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param certificate_order_name [String] Name of the certificate order. + # @param certificate_distinguished_name + # [AppServiceCertificateOrderPatchResource] Distinguished name to to use for + # the certificate order. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? + fail ArgumentError, 'certificate_distinguished_name is nil' if certificate_distinguished_name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2015_08_01::Models::AppServiceCertificateOrderPatchResource.mapper() + request_content = @client.serialize(request_mapper, certificate_distinguished_name) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 201 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2015_08_01::Models::AppServiceCertificateOrder.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2015_08_01::Models::AppServiceCertificateOrder.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # List all certificates associated with a certificate order. # @@ -888,6 +1017,136 @@ def delete_certificate_async(resource_group_name, certificate_order_name, name, promise.execute end + # + # Creates or updates a certificate and associates with key vault secret. + # + # Creates or updates a certificate and associates with key vault secret. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param certificate_order_name [String] Name of the certificate order. + # @param name [String] Name of the certificate. + # @param key_vault_certificate [AppServiceCertificatePatchResource] Key vault + # certificate resource Id. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AppServiceCertificateResource] operation results. + # + def update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) + response = update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates a certificate and associates with key vault secret. + # + # Creates or updates a certificate and associates with key vault secret. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param certificate_order_name [String] Name of the certificate order. + # @param name [String] Name of the certificate. + # @param key_vault_certificate [AppServiceCertificatePatchResource] Key vault + # certificate resource Id. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) + update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers).value! + end + + # + # Creates or updates a certificate and associates with key vault secret. + # + # Creates or updates a certificate and associates with key vault secret. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param certificate_order_name [String] Name of the certificate order. + # @param name [String] Name of the certificate. + # @param key_vault_certificate [AppServiceCertificatePatchResource] Key vault + # certificate resource Id. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'key_vault_certificate is nil' if key_vault_certificate.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2015_08_01::Models::AppServiceCertificatePatchResource.mapper() + request_content = @client.serialize(request_mapper, key_vault_certificate) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 201 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2015_08_01::Models::AppServiceCertificateResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2015_08_01::Models::AppServiceCertificateResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Reissue an existing certificate order. # diff --git a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb new file mode 100644 index 0000000000..329dcef008 --- /dev/null +++ b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb @@ -0,0 +1,309 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2015_08_01 + module Models + # + # ARM resource for a certificate order that is purchased through Azure. + # + class AppServiceCertificateOrderPatchResource < ProxyOnlyResource + + include MsRestAzure + + # @return [Hash{String => AppServiceCertificate}] State of the Key Vault + # secret. + attr_accessor :certificates + + # @return [String] Certificate distinguished name. + attr_accessor :distinguished_name + + # @return [String] Domain verification token. + attr_accessor :domain_verification_token + + # @return [Integer] Duration in years (must be between 1 and 3). Default + # value: 1 . + attr_accessor :validity_in_years + + # @return [Integer] Certificate key size. Default value: 2048 . + attr_accessor :key_size + + # @return [CertificateProductType] Certificate product type. Possible + # values include: 'StandardDomainValidatedSsl', + # 'StandardDomainValidatedWildCardSsl' + attr_accessor :product_type + + # @return [Boolean] true if the certificate should be + # automatically renewed when it expires; otherwise, false. + # Default value: true . + attr_accessor :auto_renew + + # @return [ProvisioningState] Status of certificate order. Possible + # values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', + # 'Deleting' + attr_accessor :provisioning_state + + # @return [CertificateOrderStatus] Current order status. Possible values + # include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', 'Denied', + # 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', + # 'NotSubmitted' + attr_accessor :status + + # @return [CertificateDetails] Signed certificate. + attr_accessor :signed_certificate + + # @return [String] Last CSR that was created for this order. + attr_accessor :csr + + # @return [CertificateDetails] Intermediate certificate. + attr_accessor :intermediate + + # @return [CertificateDetails] Root certificate. + attr_accessor :root + + # @return [String] Current serial number of the certificate. + attr_accessor :serial_number + + # @return [DateTime] Certificate last issuance time. + attr_accessor :last_certificate_issuance_time + + # @return [DateTime] Certificate expiration time. + attr_accessor :expiration_time + + # @return [Boolean] true if private key is external; + # otherwise, false. + attr_accessor :is_private_key_external + + # @return [Array] Reasons why App Service Certificate is not + # renewable at the current moment. + attr_accessor :app_service_certificate_not_renewable_reasons + + # @return [DateTime] Time stamp when the certificate would be auto + # renewed next + attr_accessor :next_auto_renewal_time_stamp + + + # + # Mapper for AppServiceCertificateOrderPatchResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AppServiceCertificateOrderPatchResource', + type: { + name: 'Composite', + class_name: 'AppServiceCertificateOrderPatchResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + certificates: { + required: false, + serialized_name: 'properties.certificates', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'AppServiceCertificateElementType', + type: { + name: 'Composite', + class_name: 'AppServiceCertificate' + } + } + } + }, + distinguished_name: { + required: false, + serialized_name: 'properties.distinguishedName', + type: { + name: 'String' + } + }, + domain_verification_token: { + required: false, + read_only: true, + serialized_name: 'properties.domainVerificationToken', + type: { + name: 'String' + } + }, + validity_in_years: { + required: false, + serialized_name: 'properties.validityInYears', + default_value: 1, + constraints: { + InclusiveMaximum: 3, + InclusiveMinimum: 1 + }, + type: { + name: 'Number' + } + }, + key_size: { + required: false, + serialized_name: 'properties.keySize', + default_value: 2048, + type: { + name: 'Number' + } + }, + product_type: { + required: false, + serialized_name: 'properties.productType', + type: { + name: 'Enum', + module: 'CertificateProductType' + } + }, + auto_renew: { + required: false, + serialized_name: 'properties.autoRenew', + default_value: true, + type: { + name: 'Boolean' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'Enum', + module: 'ProvisioningState' + } + }, + status: { + required: false, + read_only: true, + serialized_name: 'properties.status', + type: { + name: 'Enum', + module: 'CertificateOrderStatus' + } + }, + signed_certificate: { + required: false, + read_only: true, + serialized_name: 'properties.signedCertificate', + type: { + name: 'Composite', + class_name: 'CertificateDetails' + } + }, + csr: { + required: false, + serialized_name: 'properties.csr', + type: { + name: 'String' + } + }, + intermediate: { + required: false, + read_only: true, + serialized_name: 'properties.intermediate', + type: { + name: 'Composite', + class_name: 'CertificateDetails' + } + }, + root: { + required: false, + read_only: true, + serialized_name: 'properties.root', + type: { + name: 'Composite', + class_name: 'CertificateDetails' + } + }, + serial_number: { + required: false, + read_only: true, + serialized_name: 'properties.serialNumber', + type: { + name: 'String' + } + }, + last_certificate_issuance_time: { + required: false, + read_only: true, + serialized_name: 'properties.lastCertificateIssuanceTime', + type: { + name: 'DateTime' + } + }, + expiration_time: { + required: false, + read_only: true, + serialized_name: 'properties.expirationTime', + type: { + name: 'DateTime' + } + }, + is_private_key_external: { + required: false, + read_only: true, + serialized_name: 'properties.isPrivateKeyExternal', + type: { + name: 'Boolean' + } + }, + app_service_certificate_not_renewable_reasons: { + required: false, + read_only: true, + serialized_name: 'properties.appServiceCertificateNotRenewableReasons', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'enumElementType', + type: { + name: 'String' + } + } + } + }, + next_auto_renewal_time_stamp: { + required: false, + read_only: true, + serialized_name: 'properties.nextAutoRenewalTimeStamp', + type: { + name: 'DateTime' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb new file mode 100644 index 0000000000..499152e739 --- /dev/null +++ b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb @@ -0,0 +1,104 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2015_08_01 + module Models + # + # Key Vault container ARM resource for a certificate that is purchased + # through Azure. + # + class AppServiceCertificatePatchResource < ProxyOnlyResource + + include MsRestAzure + + # @return [String] Key Vault resource Id. + attr_accessor :key_vault_id + + # @return [String] Key Vault secret name. + attr_accessor :key_vault_secret_name + + # @return [KeyVaultSecretStatus] Status of the Key Vault secret. Possible + # values include: 'Initialized', 'WaitingOnCertificateOrder', + # 'Succeeded', 'CertificateOrderFailed', + # 'OperationNotPermittedOnKeyVault', + # 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', + # 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', + # 'Unknown' + attr_accessor :provisioning_state + + + # + # Mapper for AppServiceCertificatePatchResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AppServiceCertificatePatchResource', + type: { + name: 'Composite', + class_name: 'AppServiceCertificatePatchResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + key_vault_id: { + required: false, + serialized_name: 'properties.keyVaultId', + type: { + name: 'String' + } + }, + key_vault_secret_name: { + required: false, + serialized_name: 'properties.keyVaultSecretName', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'Enum', + module: 'KeyVaultSecretStatus' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/certificate_details.rb b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/certificate_details.rb index 8656b2dd05..dfe20fad26 100644 --- a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/certificate_details.rb +++ b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/certificate_details.rb @@ -12,28 +12,28 @@ class CertificateDetails include MsRestAzure - # @return [Integer] Version. + # @return [Integer] Certificate Version. attr_accessor :version - # @return [String] Serial Number. + # @return [String] Certificate Serial Number. attr_accessor :serial_number - # @return [String] Thumbprint. + # @return [String] Certificate Thumbprint. attr_accessor :thumbprint - # @return [String] Subject. + # @return [String] Certificate Subject. attr_accessor :subject - # @return [DateTime] Valid from. + # @return [DateTime] Date Certificate is valid from. attr_accessor :not_before - # @return [DateTime] Valid to. + # @return [DateTime] Date Certificate is valid to. attr_accessor :not_after - # @return [String] Signature algorithm. + # @return [String] Certificate Signature algorithm. attr_accessor :signature_algorithm - # @return [String] Issuer. + # @return [String] Certificate Issuer. attr_accessor :issuer # @return [String] Raw certificate data. diff --git a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/site_seal_request.rb b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/site_seal_request.rb index 6331f41a97..75da85eb47 100644 --- a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/site_seal_request.rb +++ b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/models/site_seal_request.rb @@ -12,10 +12,11 @@ class SiteSealRequest include MsRestAzure - # @return [Boolean] Theme + # @return [Boolean] If true use the light color theme for + # site seal; otherwise, use the default color theme. attr_accessor :light_theme - # @return [String] Locale + # @return [String] Locale of site seal. attr_accessor :locale diff --git a/management/azure_mgmt_web/lib/2016-03-01/build.json b/management/azure_mgmt_web/lib/2016-03-01/build.json new file mode 100644 index 0000000000..f292a85bd5 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/build.json @@ -0,0 +1,226 @@ +{ + "autorest": [ + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest-core", + "version": "2.0.4168", + "engines": { + "node": ">=7.10.0" + }, + "dependencies": {}, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/async-io": "~1.0.22", + "@microsoft.azure/extension": "~1.2.12", + "@types/commonmark": "^0.27.0", + "@types/jsonpath": "^0.1.29", + "@types/node": "^8.0.28", + "@types/pify": "0.0.28", + "@types/source-map": "^0.5.0", + "@types/yargs": "^8.0.2", + "commonmark": "^0.27.0", + "file-url": "^2.0.2", + "get-uri": "^2.0.0", + "jsonpath": "^0.2.11", + "linq-es2015": "^2.4.25", + "mocha": "3.4.2", + "mocha-typescript": "1.1.5", + "pify": "^3.0.0", + "safe-eval": "^0.3.0", + "shx": "^0.2.2", + "source-map": "^0.5.6", + "source-map-support": "^0.4.15", + "strip-bom": "^3.0.0", + "typescript": "2.5.3", + "untildify": "^3.0.2", + "urijs": "^1.18.10", + "vscode-jsonrpc": "^3.3.1", + "yaml-ast-parser": "https://github.com/olydis/yaml-ast-parser/releases/download/0.0.34/yaml-ast-parser-0.0.34.tgz", + "yargs": "^8.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_shasum": "33813111fc9bfa488bd600fbba48bc53cc9182c7", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest-core@2.0.4168", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.0.21", + "dependencies": { + "dotnet-2.0.0": "^1.3.2" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.1.1", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.0.21", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.1.22", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "ca425289fa38a210d279729048a4a91673f09c67", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.1.22", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.ruby", + "version": "3.0.20", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/autorest.testserver": "^1.9.2", + "autorest": "^2.0.0", + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_shasum": "f5b24eb17914aad0e8d2da581642044a6088d905", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.ruby@3.0.20", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_where": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + } + ], + "autorest_bootstrap": {}, + "date": "2017-10-23T19:35:44Z" +} \ No newline at end of file diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web.rb index 7fd34cc7d4..5a2c218cf5 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web.rb @@ -27,36 +27,46 @@ module Azure::Web::Mgmt::V2016_03_01 autoload :WebSiteManagementClient, '2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb' module Models - autoload :RecommendationRule, '2016-03-01/generated/azure_mgmt_web/models/recommendation_rule.rb' - autoload :HostingEnvironmentProfile, '2016-03-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb' - autoload :Capability, '2016-03-01/generated/azure_mgmt_web/models/capability.rb' + autoload :NameValuePair, '2016-03-01/generated/azure_mgmt_web/models/name_value_pair.rb' + autoload :AppServiceEnvironment, '2016-03-01/generated/azure_mgmt_web/models/app_service_environment.rb' + autoload :VirtualIPMapping, '2016-03-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb' autoload :CertificateCollection, '2016-03-01/generated/azure_mgmt_web/models/certificate_collection.rb' - autoload :CsmMoveResourceEnvelope, '2016-03-01/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb' + autoload :StampCapacity, '2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb' + autoload :ProxyOnlyResource, '2016-03-01/generated/azure_mgmt_web/models/proxy_only_resource.rb' + autoload :NetworkAccessControlEntry, '2016-03-01/generated/azure_mgmt_web/models/network_access_control_entry.rb' autoload :DeletedSite, '2016-03-01/generated/azure_mgmt_web/models/deleted_site.rb' + autoload :HostingEnvironmentProfile, '2016-03-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb' autoload :CsmOperationDisplay, '2016-03-01/generated/azure_mgmt_web/models/csm_operation_display.rb' - autoload :GeoRegionCollection, '2016-03-01/generated/azure_mgmt_web/models/geo_region_collection.rb' + autoload :ValidateResponse, '2016-03-01/generated/azure_mgmt_web/models/validate_response.rb' autoload :MetricAvailability, '2016-03-01/generated/azure_mgmt_web/models/metric_availability.rb' - autoload :SkuCapacity, '2016-03-01/generated/azure_mgmt_web/models/sku_capacity.rb' + autoload :Capability, '2016-03-01/generated/azure_mgmt_web/models/capability.rb' autoload :ServiceSpecification, '2016-03-01/generated/azure_mgmt_web/models/service_specification.rb' - autoload :GlobalCsmSkuDescription, '2016-03-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb' + autoload :CsmMoveResourceEnvelope, '2016-03-01/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb' autoload :CsmOperationDescription, '2016-03-01/generated/azure_mgmt_web/models/csm_operation_description.rb' - autoload :ValidateResponse, '2016-03-01/generated/azure_mgmt_web/models/validate_response.rb' + autoload :ValidateResponseError, '2016-03-01/generated/azure_mgmt_web/models/validate_response_error.rb' autoload :Recommendation, '2016-03-01/generated/azure_mgmt_web/models/recommendation.rb' + autoload :HostingEnvironmentDeploymentInfo, '2016-03-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb' + autoload :VirtualNetworkProfile, '2016-03-01/generated/azure_mgmt_web/models/virtual_network_profile.rb' + autoload :DeploymentLocations, '2016-03-01/generated/azure_mgmt_web/models/deployment_locations.rb' + autoload :GeoRegionCollection, '2016-03-01/generated/azure_mgmt_web/models/geo_region_collection.rb' + autoload :DeletedWebAppCollection, '2016-03-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb' + autoload :SkuCapacity, '2016-03-01/generated/azure_mgmt_web/models/sku_capacity.rb' + autoload :MetricSpecification, '2016-03-01/generated/azure_mgmt_web/models/metric_specification.rb' + autoload :GlobalCsmSkuDescription, '2016-03-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb' + autoload :CsmOperationCollection, '2016-03-01/generated/azure_mgmt_web/models/csm_operation_collection.rb' + autoload :ValidateRequest, '2016-03-01/generated/azure_mgmt_web/models/validate_request.rb' + autoload :WorkerPool, '2016-03-01/generated/azure_mgmt_web/models/worker_pool.rb' autoload :PremierAddOnOfferCollection, '2016-03-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb' - autoload :Resource, '2016-03-01/generated/azure_mgmt_web/models/resource.rb' - autoload :ProxyOnlyResource, '2016-03-01/generated/azure_mgmt_web/models/proxy_only_resource.rb' autoload :Dimension, '2016-03-01/generated/azure_mgmt_web/models/dimension.rb' autoload :ResourceNameAvailability, '2016-03-01/generated/azure_mgmt_web/models/resource_name_availability.rb' - autoload :CsmOperationDescriptionProperties, '2016-03-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb' + autoload :RecommendationRule, '2016-03-01/generated/azure_mgmt_web/models/recommendation_rule.rb' autoload :ResourceNameAvailabilityRequest, '2016-03-01/generated/azure_mgmt_web/models/resource_name_availability_request.rb' - autoload :ValidateRequest, '2016-03-01/generated/azure_mgmt_web/models/validate_request.rb' - autoload :DeletedWebAppCollection, '2016-03-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb' + autoload :CsmOperationDescriptionProperties, '2016-03-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb' autoload :SkuInfos, '2016-03-01/generated/azure_mgmt_web/models/sku_infos.rb' - autoload :CsmOperationCollection, '2016-03-01/generated/azure_mgmt_web/models/csm_operation_collection.rb' - autoload :ValidateResponseError, '2016-03-01/generated/azure_mgmt_web/models/validate_response_error.rb' - autoload :MetricSpecification, '2016-03-01/generated/azure_mgmt_web/models/metric_specification.rb' + autoload :Resource, '2016-03-01/generated/azure_mgmt_web/models/resource.rb' autoload :SourceControlCollection, '2016-03-01/generated/azure_mgmt_web/models/source_control_collection.rb' autoload :Certificate, '2016-03-01/generated/azure_mgmt_web/models/certificate.rb' + autoload :CertificatePatchResource, '2016-03-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb' autoload :GeoRegion, '2016-03-01/generated/azure_mgmt_web/models/geo_region.rb' autoload :PremierAddOnOffer, '2016-03-01/generated/azure_mgmt_web/models/premier_add_on_offer.rb' autoload :SourceControl, '2016-03-01/generated/azure_mgmt_web/models/source_control.rb' @@ -68,6 +78,12 @@ module Models autoload :ResourceScopeType, '2016-03-01/generated/azure_mgmt_web/models/resource_scope_type.rb' autoload :NotificationLevel, '2016-03-01/generated/azure_mgmt_web/models/notification_level.rb' autoload :Channels, '2016-03-01/generated/azure_mgmt_web/models/channels.rb' + autoload :ProvisioningState, '2016-03-01/generated/azure_mgmt_web/models/provisioning_state.rb' + autoload :HostingEnvironmentStatus, '2016-03-01/generated/azure_mgmt_web/models/hosting_environment_status.rb' + autoload :InternalLoadBalancingMode, '2016-03-01/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb' + autoload :ComputeModeOptions, '2016-03-01/generated/azure_mgmt_web/models/compute_mode_options.rb' + autoload :WorkerSizeOptions, '2016-03-01/generated/azure_mgmt_web/models/worker_size_options.rb' + autoload :AccessControlEntryAction, '2016-03-01/generated/azure_mgmt_web/models/access_control_entry_action.rb' autoload :AppServicePlanRestrictions, '2016-03-01/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb' autoload :InAvailabilityReasonType, '2016-03-01/generated/azure_mgmt_web/models/in_availability_reason_type.rb' autoload :CheckNameResourceTypes, '2016-03-01/generated/azure_mgmt_web/models/check_name_resource_types.rb' diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb index 506214260e..55909808bc 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb @@ -519,8 +519,8 @@ def delete_async(resource_group_name, name, custom_headers = nil) # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the certificate. - # @param certificate_envelope [Certificate] Details of certificate, if it - # exists already. + # @param certificate_envelope [CertificatePatchResource] Details of + # certificate, if it exists already. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # @@ -539,8 +539,8 @@ def update(resource_group_name, name, certificate_envelope, custom_headers = nil # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the certificate. - # @param certificate_envelope [Certificate] Details of certificate, if it - # exists already. + # @param certificate_envelope [CertificatePatchResource] Details of + # certificate, if it exists already. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # @@ -558,8 +558,8 @@ def update_with_http_info(resource_group_name, name, certificate_envelope, custo # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the certificate. - # @param certificate_envelope [Certificate] Details of certificate, if it - # exists already. + # @param certificate_envelope [CertificatePatchResource] Details of + # certificate, if it exists already. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # @@ -582,7 +582,7 @@ def update_async(resource_group_name, name, certificate_envelope, custom_headers request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::Web::Mgmt::V2016_03_01::Models::Certificate.mapper() + request_mapper = Azure::Web::Mgmt::V2016_03_01::Models::CertificatePatchResource.mapper() request_content = @client.serialize(request_mapper, certificate_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/access_control_entry_action.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/access_control_entry_action.rb new file mode 100644 index 0000000000..b2d18a94d0 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/access_control_entry_action.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Defines values for AccessControlEntryAction + # + module AccessControlEntryAction + Permit = "Permit" + Deny = "Deny" + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/app_service_environment.rb similarity index 96% rename from management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment.rb rename to management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/app_service_environment.rb index 5e0f8a9d3b..d0463bb6a2 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/app_service_environment.rb @@ -3,7 +3,7 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. -module Azure::Web::Mgmt::V2016_09_01 +module Azure::Web::Mgmt::V2016_03_01 module Models # # Description of an App Service Environment. @@ -146,6 +146,9 @@ class AppServiceEnvironment # behavior of the App Service Environment. attr_accessor :cluster_settings + # @return [Array] User added ip ranges to whitelist on ASE db + attr_accessor :user_whitelisted_ip_ranges + # # Mapper for AppServiceEnvironment class as Ruby Hash. @@ -464,6 +467,20 @@ def self.mapper() } } } + }, + user_whitelisted_ip_ranges: { + required: false, + serialized_name: 'userWhitelistedIpRanges', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } } } } diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/certificate.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/certificate.rb index be297d9c51..9b94a0b9a5 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/certificate.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/certificate.rb @@ -48,7 +48,7 @@ class Certificate < Resource # @return [Boolean] Is the certificate valid?. attr_accessor :valid - # @return [String] Raw bytes of .cer file + # @return [Array] Raw bytes of .cer file attr_accessor :cer_blob # @return [String] Public key hash. @@ -76,9 +76,6 @@ class Certificate < Resource # @return [String] Region of the certificate. attr_accessor :geo_region - # @return [String] Resource name of the certificate. - attr_accessor :certificate_name - # @return [String] Resource ID of the associated App Service plan, # formatted as: # "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". @@ -254,7 +251,7 @@ def self.mapper() read_only: true, serialized_name: 'properties.cerBlob', type: { - name: 'String' + name: 'ByteArray' } }, public_key_hash: { @@ -305,14 +302,6 @@ def self.mapper() name: 'String' } }, - certificate_name: { - required: false, - read_only: true, - serialized_name: 'properties.name', - type: { - name: 'String' - } - }, server_farm_id: { required: false, serialized_name: 'properties.serverFarmId', diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb new file mode 100644 index 0000000000..0d694a8545 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb @@ -0,0 +1,297 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # ARM resource for a certificate. + # + class CertificatePatchResource < ProxyOnlyResource + + include MsRestAzure + + # @return [String] Friendly name of the certificate. + attr_accessor :friendly_name + + # @return [String] Subject name of the certificate. + attr_accessor :subject_name + + # @return [Array] Host names the certificate applies to. + attr_accessor :host_names + + # @return [Array] Pfx blob. + attr_accessor :pfx_blob + + # @return [String] App name. + attr_accessor :site_name + + # @return [String] Self link. + attr_accessor :self_link + + # @return [String] Certificate issuer. + attr_accessor :issuer + + # @return [DateTime] Certificate issue Date. + attr_accessor :issue_date + + # @return [DateTime] Certificate expriration date. + attr_accessor :expiration_date + + # @return [String] Certificate password. + attr_accessor :password + + # @return [String] Certificate thumbprint. + attr_accessor :thumbprint + + # @return [Boolean] Is the certificate valid?. + attr_accessor :valid + + # @return [Array] Raw bytes of .cer file + attr_accessor :cer_blob + + # @return [String] Public key hash. + attr_accessor :public_key_hash + + # @return [HostingEnvironmentProfile] Specification for the App Service + # Environment to use for the certificate. + attr_accessor :hosting_environment_profile + + # @return [String] Key Vault Csm resource Id. + attr_accessor :key_vault_id + + # @return [String] Key Vault secret name. + attr_accessor :key_vault_secret_name + + # @return [KeyVaultSecretStatus] Status of the Key Vault secret. Possible + # values include: 'Initialized', 'WaitingOnCertificateOrder', + # 'Succeeded', 'CertificateOrderFailed', + # 'OperationNotPermittedOnKeyVault', + # 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', + # 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', + # 'Unknown' + attr_accessor :key_vault_secret_status + + # @return [String] Region of the certificate. + attr_accessor :geo_region + + # @return [String] Resource ID of the associated App Service plan, + # formatted as: + # "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + attr_accessor :server_farm_id + + + # + # Mapper for CertificatePatchResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CertificatePatchResource', + type: { + name: 'Composite', + class_name: 'CertificatePatchResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + friendly_name: { + required: false, + read_only: true, + serialized_name: 'properties.friendlyName', + type: { + name: 'String' + } + }, + subject_name: { + required: false, + read_only: true, + serialized_name: 'properties.subjectName', + type: { + name: 'String' + } + }, + host_names: { + required: false, + serialized_name: 'properties.hostNames', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + pfx_blob: { + required: false, + serialized_name: 'properties.pfxBlob', + type: { + name: 'ByteArray' + } + }, + site_name: { + required: false, + read_only: true, + serialized_name: 'properties.siteName', + type: { + name: 'String' + } + }, + self_link: { + required: false, + read_only: true, + serialized_name: 'properties.selfLink', + type: { + name: 'String' + } + }, + issuer: { + required: false, + read_only: true, + serialized_name: 'properties.issuer', + type: { + name: 'String' + } + }, + issue_date: { + required: false, + read_only: true, + serialized_name: 'properties.issueDate', + type: { + name: 'DateTime' + } + }, + expiration_date: { + required: false, + read_only: true, + serialized_name: 'properties.expirationDate', + type: { + name: 'DateTime' + } + }, + password: { + required: false, + serialized_name: 'properties.password', + type: { + name: 'String' + } + }, + thumbprint: { + required: false, + read_only: true, + serialized_name: 'properties.thumbprint', + type: { + name: 'String' + } + }, + valid: { + required: false, + read_only: true, + serialized_name: 'properties.valid', + type: { + name: 'Boolean' + } + }, + cer_blob: { + required: false, + read_only: true, + serialized_name: 'properties.cerBlob', + type: { + name: 'ByteArray' + } + }, + public_key_hash: { + required: false, + read_only: true, + serialized_name: 'properties.publicKeyHash', + type: { + name: 'String' + } + }, + hosting_environment_profile: { + required: false, + read_only: true, + serialized_name: 'properties.hostingEnvironmentProfile', + type: { + name: 'Composite', + class_name: 'HostingEnvironmentProfile' + } + }, + key_vault_id: { + required: false, + serialized_name: 'properties.keyVaultId', + type: { + name: 'String' + } + }, + key_vault_secret_name: { + required: false, + serialized_name: 'properties.keyVaultSecretName', + type: { + name: 'String' + } + }, + key_vault_secret_status: { + required: false, + read_only: true, + serialized_name: 'properties.keyVaultSecretStatus', + type: { + name: 'Enum', + module: 'KeyVaultSecretStatus' + } + }, + geo_region: { + required: false, + read_only: true, + serialized_name: 'properties.geoRegion', + type: { + name: 'String' + } + }, + server_farm_id: { + required: false, + serialized_name: 'properties.serverFarmId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/compute_mode_options.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/compute_mode_options.rb new file mode 100644 index 0000000000..ad2ad2dc12 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/compute_mode_options.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Defines values for ComputeModeOptions + # + module ComputeModeOptions + Shared = "Shared" + Dedicated = "Dedicated" + Dynamic = "Dynamic" + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_description.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_description.rb index 4dd6fff132..d7b2a684cb 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_description.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_description.rb @@ -6,8 +6,8 @@ module Azure::Web::Mgmt::V2016_03_01 module Models # - # Model object. - # + # Description of an operation available for Microsoft.Web resource + # provider. # class CsmOperationDescription diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb index a9750a0008..ea5578a263 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb @@ -6,8 +6,7 @@ module Azure::Web::Mgmt::V2016_03_01 module Models # - # Model object. - # + # Properties available for a Microsoft.Web resource provider operation. # class CsmOperationDescriptionProperties diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_display.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_display.rb index 173f7ed235..c8a6a0068f 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_display.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_display.rb @@ -6,8 +6,7 @@ module Azure::Web::Mgmt::V2016_03_01 module Models # - # Model object. - # + # Meta data about operation used for display in portal. # class CsmOperationDisplay diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/deleted_site.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/deleted_site.rb index 25272a0d78..42c8ab40e0 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/deleted_site.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/deleted_site.rb @@ -27,6 +27,9 @@ class DeletedSite # @return [String] Name of the deleted site attr_accessor :name + # @return [String] Slot of the deleted site + attr_accessor :slot + # # Mapper for DeletedSite class as Ruby Hash. @@ -78,6 +81,14 @@ def self.mapper() type: { name: 'String' } + }, + slot: { + required: false, + read_only: true, + serialized_name: 'slot', + type: { + name: 'String' + } } } } diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/deployment_locations.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/deployment_locations.rb new file mode 100644 index 0000000000..a0aaae7a51 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/deployment_locations.rb @@ -0,0 +1,91 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # List of available locations (regions or App Service Environments) for + # deployment of App Service resources. + # + class DeploymentLocations + + include MsRestAzure + + # @return [Array] Available regions. + attr_accessor :locations + + # @return [Array] Available App Service + # Environments with full descriptions of the environments. + attr_accessor :hosting_environments + + # @return [Array] Available App Service + # Environments with basic information. + attr_accessor :hosting_environment_deployment_infos + + + # + # Mapper for DeploymentLocations class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DeploymentLocations', + type: { + name: 'Composite', + class_name: 'DeploymentLocations', + model_properties: { + locations: { + required: false, + serialized_name: 'locations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'GeoRegionElementType', + type: { + name: 'Composite', + class_name: 'GeoRegion' + } + } + } + }, + hosting_environments: { + required: false, + serialized_name: 'hostingEnvironments', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'AppServiceEnvironmentElementType', + type: { + name: 'Composite', + class_name: 'AppServiceEnvironment' + } + } + } + }, + hosting_environment_deployment_infos: { + required: false, + serialized_name: 'hostingEnvironmentDeploymentInfos', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'HostingEnvironmentDeploymentInfoElementType', + type: { + name: 'Composite', + class_name: 'HostingEnvironmentDeploymentInfo' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/dimension.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/dimension.rb index 963604da7e..7f337e22d9 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/dimension.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/dimension.rb @@ -6,8 +6,9 @@ module Azure::Web::Mgmt::V2016_03_01 module Models # - # Model object. - # + # Dimension of a resource metric. For e.g. instance specific HTTP requests + # for a web app, + # where instance name is dimension of the metric HTTP request # class Dimension diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb index 95e018b10e..ad20e715ae 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb @@ -18,6 +18,12 @@ class GlobalCsmSkuDescription # @return [String] Service Tier of the resource SKU. attr_accessor :tier + # @return [String] Size specifier of the resource SKU. + attr_accessor :size + + # @return [String] Family code of the resource SKU. + attr_accessor :family + # @return [SkuCapacity] Min, max, and default scale values of the SKU. attr_accessor :capacity @@ -55,6 +61,20 @@ def self.mapper() name: 'String' } }, + size: { + required: false, + serialized_name: 'size', + type: { + name: 'String' + } + }, + family: { + required: false, + serialized_name: 'family', + type: { + name: 'String' + } + }, capacity: { required: false, serialized_name: 'capacity', diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb new file mode 100644 index 0000000000..89bb1972a1 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Information needed to create resources on an App Service Environment. + # + class HostingEnvironmentDeploymentInfo + + include MsRestAzure + + # @return [String] Name of the App Service Environment. + attr_accessor :name + + # @return [String] Location of the App Service Environment. + attr_accessor :location + + + # + # Mapper for HostingEnvironmentDeploymentInfo class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'HostingEnvironmentDeploymentInfo', + type: { + name: 'Composite', + class_name: 'HostingEnvironmentDeploymentInfo', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/hosting_environment_status.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/hosting_environment_status.rb new file mode 100644 index 0000000000..588c4ecad6 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/hosting_environment_status.rb @@ -0,0 +1,18 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Defines values for HostingEnvironmentStatus + # + module HostingEnvironmentStatus + Preparing = "Preparing" + Ready = "Ready" + Scaling = "Scaling" + Deleting = "Deleting" + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb new file mode 100644 index 0000000000..9c3bca31f5 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Defines values for InternalLoadBalancingMode + # + module InternalLoadBalancingMode + None = "None" + Web = "Web" + Publishing = "Publishing" + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/metric_availability.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/metric_availability.rb index c880ee46d0..b368f74eac 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/metric_availability.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/metric_availability.rb @@ -6,8 +6,7 @@ module Azure::Web::Mgmt::V2016_03_01 module Models # - # Model object. - # + # Retention policy of a resource metric. # class MetricAvailability diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/metric_specification.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/metric_specification.rb index 76273f2291..8d13696af6 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/metric_specification.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/metric_specification.rb @@ -6,8 +6,7 @@ module Azure::Web::Mgmt::V2016_03_01 module Models # - # Model object. - # + # Definition of a single resource metric. # class MetricSpecification diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/name_value_pair.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/name_value_pair.rb new file mode 100644 index 0000000000..d5db8b41c0 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/name_value_pair.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Name value pair. + # + class NameValuePair + + include MsRestAzure + + # @return [String] Pair name. + attr_accessor :name + + # @return [String] Pair value. + attr_accessor :value + + + # + # Mapper for NameValuePair class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NameValuePair', + type: { + name: 'Composite', + class_name: 'NameValuePair', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/network_access_control_entry.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/network_access_control_entry.rb new file mode 100644 index 0000000000..86f9d25c65 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/network_access_control_entry.rb @@ -0,0 +1,76 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Network access control entry. + # + class NetworkAccessControlEntry + + include MsRestAzure + + # @return [AccessControlEntryAction] Action object. Possible values + # include: 'Permit', 'Deny' + attr_accessor :action + + # @return [String] Description. + attr_accessor :description + + # @return [Integer] Order of precedence. + attr_accessor :order + + # @return [String] Remote subnet. + attr_accessor :remote_subnet + + + # + # Mapper for NetworkAccessControlEntry class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NetworkAccessControlEntry', + type: { + name: 'Composite', + class_name: 'NetworkAccessControlEntry', + model_properties: { + action: { + required: false, + serialized_name: 'action', + type: { + name: 'Enum', + module: 'AccessControlEntryAction' + } + }, + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + order: { + required: false, + serialized_name: 'order', + type: { + name: 'Number' + } + }, + remote_subnet: { + required: false, + serialized_name: 'remoteSubnet', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/provisioning_state.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/provisioning_state.rb new file mode 100644 index 0000000000..5c98935bec --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/provisioning_state.rb @@ -0,0 +1,19 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Defines values for ProvisioningState + # + module ProvisioningState + Succeeded = "Succeeded" + Failed = "Failed" + Canceled = "Canceled" + InProgress = "InProgress" + Deleting = "Deleting" + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation.rb index cd43384d0b..b5d47c31c5 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation.rb @@ -16,8 +16,8 @@ class Recommendation # @return [DateTime] Timestamp when this instance was created. attr_accessor :creation_time - # @return [String] A GUID value that each recommendation object is - # associated with. + # @return A GUID value that each recommendation object is associated + # with. attr_accessor :recommendation_id # @return [String] Full ARM resource ID string that this recommendation diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/service_specification.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/service_specification.rb index 0e888512a0..d84ade8b2d 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/service_specification.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/service_specification.rb @@ -6,8 +6,8 @@ module Azure::Web::Mgmt::V2016_03_01 module Models # - # Model object. - # + # Resource metrics service provided by Microsoft.Insights resource + # provider. # class ServiceSpecification diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb new file mode 100644 index 0000000000..5035736fac --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb @@ -0,0 +1,145 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Stamp capacity information. + # + class StampCapacity + + include MsRestAzure + + # @return [String] Name of the stamp. + attr_accessor :name + + # @return [Integer] Available capacity (# of machines, bytes of storage + # etc...). + attr_accessor :available_capacity + + # @return [Integer] Total capacity (# of machines, bytes of storage + # etc...). + attr_accessor :total_capacity + + # @return [String] Name of the unit. + attr_accessor :unit + + # @return [ComputeModeOptions] Shared/dedicated workers. Possible values + # include: 'Shared', 'Dedicated', 'Dynamic' + attr_accessor :compute_mode + + # @return [WorkerSizeOptions] Size of the machines. Possible values + # include: 'Default', 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3' + attr_accessor :worker_size + + # @return [Integer] Size ID of machines: + # 0 - Small + # 1 - Medium + # 2 - Large + attr_accessor :worker_size_id + + # @return [Boolean] If true, it includes basic apps. + # Basic apps are not used for capacity allocation. + attr_accessor :exclude_from_capacity_allocation + + # @return [Boolean] true if capacity is applicable for all + # apps; otherwise, false. + attr_accessor :is_applicable_for_all_compute_modes + + # @return [String] Shared or Dedicated. + attr_accessor :site_mode + + + # + # Mapper for StampCapacity class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'StampCapacity', + type: { + name: 'Composite', + class_name: 'StampCapacity', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + available_capacity: { + required: false, + serialized_name: 'availableCapacity', + type: { + name: 'Number' + } + }, + total_capacity: { + required: false, + serialized_name: 'totalCapacity', + type: { + name: 'Number' + } + }, + unit: { + required: false, + serialized_name: 'unit', + type: { + name: 'String' + } + }, + compute_mode: { + required: false, + serialized_name: 'computeMode', + type: { + name: 'Enum', + module: 'ComputeModeOptions' + } + }, + worker_size: { + required: false, + serialized_name: 'workerSize', + type: { + name: 'Enum', + module: 'WorkerSizeOptions' + } + }, + worker_size_id: { + required: false, + serialized_name: 'workerSizeId', + type: { + name: 'Number' + } + }, + exclude_from_capacity_allocation: { + required: false, + serialized_name: 'excludeFromCapacityAllocation', + type: { + name: 'Boolean' + } + }, + is_applicable_for_all_compute_modes: { + required: false, + serialized_name: 'isApplicableForAllComputeModes', + type: { + name: 'Boolean' + } + }, + site_mode: { + required: false, + serialized_name: 'siteMode', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb index db8cd62b7d..d95c65d4d3 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb @@ -33,6 +33,10 @@ class ValidateRequest # workers; otherwise, false. attr_accessor :need_linux_workers + # @return [Boolean] true if App Service plan is for Spot + # instances; otherwise, false. + attr_accessor :is_spot + # @return [Integer] Target capacity of the App Service plan (number of # VM's). attr_accessor :capacity @@ -96,6 +100,13 @@ def self.mapper() name: 'Boolean' } }, + is_spot: { + required: false, + serialized_name: 'properties.isSpot', + type: { + name: 'Boolean' + } + }, capacity: { required: false, serialized_name: 'properties.capacity', diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb new file mode 100644 index 0000000000..1e4ffe5430 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb @@ -0,0 +1,74 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Virtual IP mapping. + # + class VirtualIPMapping + + include MsRestAzure + + # @return [String] Virtual IP address. + attr_accessor :virtual_ip + + # @return [Integer] Internal HTTP port. + attr_accessor :internal_http_port + + # @return [Integer] Internal HTTPS port. + attr_accessor :internal_https_port + + # @return [Boolean] Is virtual IP mapping in use. + attr_accessor :in_use + + + # + # Mapper for VirtualIPMapping class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'VirtualIPMapping', + type: { + name: 'Composite', + class_name: 'VirtualIPMapping', + model_properties: { + virtual_ip: { + required: false, + serialized_name: 'virtualIP', + type: { + name: 'String' + } + }, + internal_http_port: { + required: false, + serialized_name: 'internalHttpPort', + type: { + name: 'Number' + } + }, + internal_https_port: { + required: false, + serialized_name: 'internalHttpsPort', + type: { + name: 'Number' + } + }, + in_use: { + required: false, + serialized_name: 'inUse', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/virtual_network_profile.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/virtual_network_profile.rb new file mode 100644 index 0000000000..e68d148f47 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/virtual_network_profile.rb @@ -0,0 +1,76 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Specification for using a Virtual Network. + # + class VirtualNetworkProfile + + include MsRestAzure + + # @return [String] Resource id of the Virtual Network. + attr_accessor :id + + # @return [String] Name of the Virtual Network (read-only). + attr_accessor :name + + # @return [String] Resource type of the Virtual Network (read-only). + attr_accessor :type + + # @return [String] Subnet within the Virtual Network. + attr_accessor :subnet + + + # + # Mapper for VirtualNetworkProfile class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'VirtualNetworkProfile', + type: { + name: 'Composite', + class_name: 'VirtualNetworkProfile', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + subnet: { + required: false, + serialized_name: 'subnet', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/worker_pool.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/worker_pool.rb new file mode 100644 index 0000000000..3c253b180b --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/worker_pool.rb @@ -0,0 +1,95 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Worker pool of an App Service Environment. + # + class WorkerPool + + include MsRestAzure + + # @return [Integer] Worker size ID for referencing this worker pool. + attr_accessor :worker_size_id + + # @return [ComputeModeOptions] Shared or dedicated app hosting. Possible + # values include: 'Shared', 'Dedicated', 'Dynamic' + attr_accessor :compute_mode + + # @return [String] VM size of the worker pool instances. + attr_accessor :worker_size + + # @return [Integer] Number of instances in the worker pool. + attr_accessor :worker_count + + # @return [Array] Names of all instances in the worker pool (read + # only). + attr_accessor :instance_names + + + # + # Mapper for WorkerPool class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'WorkerPool', + type: { + name: 'Composite', + class_name: 'WorkerPool', + model_properties: { + worker_size_id: { + required: false, + serialized_name: 'workerSizeId', + type: { + name: 'Number' + } + }, + compute_mode: { + required: false, + serialized_name: 'computeMode', + type: { + name: 'Enum', + module: 'ComputeModeOptions' + } + }, + worker_size: { + required: false, + serialized_name: 'workerSize', + type: { + name: 'String' + } + }, + worker_count: { + required: false, + serialized_name: 'workerCount', + type: { + name: 'Number' + } + }, + instance_names: { + required: false, + read_only: true, + serialized_name: 'instanceNames', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/worker_size_options.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/worker_size_options.rb new file mode 100644 index 0000000000..27318d17f7 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/worker_size_options.rb @@ -0,0 +1,21 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_03_01 + module Models + # + # Defines values for WorkerSizeOptions + # + module WorkerSizeOptions + Default = "Default" + Small = "Small" + Medium = "Medium" + Large = "Large" + D1 = "D1" + D2 = "D2" + D3 = "D3" + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/provider.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/provider.rb index 377ecbd6dc..f3fd9a6dde 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/provider.rb @@ -98,6 +98,12 @@ def get_available_stacks_async(custom_headers = nil) promise.execute end + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions # # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -109,6 +115,12 @@ def list_operations(custom_headers = nil) first_page.get_all_items end + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions # # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -119,6 +131,12 @@ def list_operations_with_http_info(custom_headers = nil) list_operations_async(custom_headers).value! end + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions # # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. @@ -252,6 +270,12 @@ def get_available_stacks_on_prem_async(custom_headers = nil) promise.execute end + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -265,6 +289,12 @@ def list_operations_next(next_page_link, custom_headers = nil) response.body unless response.nil? end + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -277,6 +307,12 @@ def list_operations_next_with_http_info(next_page_link, custom_headers = nil) list_operations_next_async(next_page_link, custom_headers).value! end + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -333,6 +369,12 @@ def list_operations_next_async(next_page_link, custom_headers = nil) promise.execute end + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions + # + # Gets all available operations for the Microsoft.Web resource provider. Also + # exposes resource metric definitions # # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb index a6af529805..823eebec99 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb @@ -400,6 +400,98 @@ def list_source_controls_async(custom_headers = nil) promise.execute end + # + # Gets source control token + # + # Gets source control token + # + # @param source_control_type [String] Type of source control + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SourceControl] operation results. + # + def get_source_control(source_control_type, custom_headers = nil) + response = get_source_control_async(source_control_type, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets source control token + # + # Gets source control token + # + # @param source_control_type [String] Type of source control + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_source_control_with_http_info(source_control_type, custom_headers = nil) + get_source_control_async(source_control_type, custom_headers).value! + end + + # + # Gets source control token + # + # Gets source control token + # + # @param source_control_type [String] Type of source control + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_source_control_async(source_control_type, custom_headers = nil) + fail ArgumentError, 'source_control_type is nil' if source_control_type.nil? + fail ArgumentError, 'api_version is nil' if api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = accept_language unless accept_language.nil? + path_template = 'providers/Microsoft.Web/sourcecontrols/{sourceControlType}' + + request_url = @base_url || self.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'sourceControlType' => source_control_type}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = self.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::SourceControl.mapper() + result.body = self.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Updates source control token # @@ -623,6 +715,95 @@ def check_name_availability_async(name, type, is_fqdn = nil, custom_headers = ni promise.execute end + # + # Gets list of available geo regions plus ministamps + # + # Gets list of available geo regions plus ministamps + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DeploymentLocations] operation results. + # + def get_subscription_deployment_locations(custom_headers = nil) + response = get_subscription_deployment_locations_async(custom_headers).value! + response.body unless response.nil? + end + + # + # Gets list of available geo regions plus ministamps + # + # Gets list of available geo regions plus ministamps + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_subscription_deployment_locations_with_http_info(custom_headers = nil) + get_subscription_deployment_locations_async(custom_headers).value! + end + + # + # Gets list of available geo regions plus ministamps + # + # Gets list of available geo regions plus ministamps + # + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_subscription_deployment_locations_async(custom_headers = nil) + fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? + fail ArgumentError, 'api_version is nil' if api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = accept_language unless accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/deploymentLocations' + + request_url = @base_url || self.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = self.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DeploymentLocations.mapper() + result.body = self.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Get a list of available geographical regions. # @@ -906,7 +1087,8 @@ def list_skus_async(custom_headers = nil) end # - # Verifies if this VNET is compatible with an App Service Environment. + # Verifies if this VNET is compatible with an App Service Environment by + # analyzing the Network Security Group rules. # # Verifies if this VNET is compatible with an App Service Environment by # analyzing the Network Security Group rules. @@ -923,7 +1105,8 @@ def verify_hosting_environment_vnet(parameters, custom_headers = nil) end # - # Verifies if this VNET is compatible with an App Service Environment. + # Verifies if this VNET is compatible with an App Service Environment by + # analyzing the Network Security Group rules. # # Verifies if this VNET is compatible with an App Service Environment by # analyzing the Network Security Group rules. @@ -939,7 +1122,8 @@ def verify_hosting_environment_vnet_with_http_info(parameters, custom_headers = end # - # Verifies if this VNET is compatible with an App Service Environment. + # Verifies if this VNET is compatible with an App Service Environment by + # analyzing the Network Security Group rules. # # Verifies if this VNET is compatible with an App Service Environment by # analyzing the Network Security Group rules. diff --git a/management/azure_mgmt_web/lib/2016-08-01/build.json b/management/azure_mgmt_web/lib/2016-08-01/build.json new file mode 100644 index 0000000000..1da6fa4fbf --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-08-01/build.json @@ -0,0 +1,226 @@ +{ + "autorest": [ + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest-core", + "version": "2.0.4168", + "engines": { + "node": ">=7.10.0" + }, + "dependencies": {}, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/async-io": "~1.0.22", + "@microsoft.azure/extension": "~1.2.12", + "@types/commonmark": "^0.27.0", + "@types/jsonpath": "^0.1.29", + "@types/node": "^8.0.28", + "@types/pify": "0.0.28", + "@types/source-map": "^0.5.0", + "@types/yargs": "^8.0.2", + "commonmark": "^0.27.0", + "file-url": "^2.0.2", + "get-uri": "^2.0.0", + "jsonpath": "^0.2.11", + "linq-es2015": "^2.4.25", + "mocha": "3.4.2", + "mocha-typescript": "1.1.5", + "pify": "^3.0.0", + "safe-eval": "^0.3.0", + "shx": "^0.2.2", + "source-map": "^0.5.6", + "source-map-support": "^0.4.15", + "strip-bom": "^3.0.0", + "typescript": "2.5.3", + "untildify": "^3.0.2", + "urijs": "^1.18.10", + "vscode-jsonrpc": "^3.3.1", + "yaml-ast-parser": "https://github.com/olydis/yaml-ast-parser/releases/download/0.0.34/yaml-ast-parser-0.0.34.tgz", + "yargs": "^8.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_shasum": "33813111fc9bfa488bd600fbba48bc53cc9182c7", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest-core@2.0.4168", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.0.21", + "dependencies": { + "dotnet-2.0.0": "^1.3.2" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.1.1", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.0.21", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.1.22", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "ca425289fa38a210d279729048a4a91673f09c67", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.1.22", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.ruby", + "version": "3.0.20", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/autorest.testserver": "^1.9.2", + "autorest": "^2.0.0", + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_shasum": "f5b24eb17914aad0e8d2da581642044a6088d905", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.ruby@3.0.20", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_where": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + } + ], + "autorest_bootstrap": {}, + "date": "2017-10-23T19:35:31Z" +} \ No newline at end of file diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web.rb index e3b52946b8..883bf52b94 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web.rb @@ -25,83 +25,85 @@ module Azure::Web::Mgmt::V2016_08_01 module Models autoload :PerfMonSet, '2016-08-01/generated/azure_mgmt_web/models/perf_mon_set.rb' - autoload :ApiDefinitionInfo, '2016-08-01/generated/azure_mgmt_web/models/api_definition_info.rb' autoload :PerfMonResponse, '2016-08-01/generated/azure_mgmt_web/models/perf_mon_response.rb' - autoload :AzureTableStorageApplicationLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb' + autoload :FileSystemApplicationLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/file_system_application_logs_config.rb' autoload :PerfMonCounterCollection, '2016-08-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb' - autoload :ApplicationLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/application_logs_config.rb' - autoload :HttpLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/http_logs_config.rb' - autoload :SlotDifferenceCollection, '2016-08-01/generated/azure_mgmt_web/models/slot_difference_collection.rb' - autoload :RequestsBasedTrigger, '2016-08-01/generated/azure_mgmt_web/models/requests_based_trigger.rb' - autoload :SiteMachineKey, '2016-08-01/generated/azure_mgmt_web/models/site_machine_key.rb' - autoload :SlowRequestsBasedTrigger, '2016-08-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb' - autoload :SiteExtensionInfoCollection, '2016-08-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb' - autoload :AutoHealRules, '2016-08-01/generated/azure_mgmt_web/models/auto_heal_rules.rb' + autoload :AzureBlobStorageApplicationLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb' + autoload :MSDeployLogEntry, '2016-08-01/generated/azure_mgmt_web/models/msdeploy_log_entry.rb' + autoload :AutoHealCustomAction, '2016-08-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb' autoload :IdentifierCollection, '2016-08-01/generated/azure_mgmt_web/models/identifier_collection.rb' - autoload :DatabaseBackupSetting, '2016-08-01/generated/azure_mgmt_web/models/database_backup_setting.rb' + autoload :RequestsBasedTrigger, '2016-08-01/generated/azure_mgmt_web/models/requests_based_trigger.rb' autoload :IpSecurityRestriction, '2016-08-01/generated/azure_mgmt_web/models/ip_security_restriction.rb' - autoload :BackupItemCollection, '2016-08-01/generated/azure_mgmt_web/models/backup_item_collection.rb' - autoload :SiteCloneabilityCriterion, '2016-08-01/generated/azure_mgmt_web/models/site_cloneability_criterion.rb' + autoload :SlowRequestsBasedTrigger, '2016-08-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb' autoload :AutoHealTriggers, '2016-08-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb' + autoload :VirtualApplication, '2016-08-01/generated/azure_mgmt_web/models/virtual_application.rb' autoload :AzureBlobStorageHttpLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb' - autoload :ConnStringInfo, '2016-08-01/generated/azure_mgmt_web/models/conn_string_info.rb' - autoload :ConnStringValueTypePair, '2016-08-01/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb' - autoload :Resource, '2016-08-01/generated/azure_mgmt_web/models/resource.rb' - autoload :SnapshotCollection, '2016-08-01/generated/azure_mgmt_web/models/snapshot_collection.rb' + autoload :AutoHealActions, '2016-08-01/generated/azure_mgmt_web/models/auto_heal_actions.rb' + autoload :ResourceMetric, '2016-08-01/generated/azure_mgmt_web/models/resource_metric.rb' + autoload :ResourceMetricValue, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_value.rb' autoload :BackupSchedule, '2016-08-01/generated/azure_mgmt_web/models/backup_schedule.rb' + autoload :ResourceMetricProperty, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_property.rb' + autoload :CloningInfo, '2016-08-01/generated/azure_mgmt_web/models/cloning_info.rb' + autoload :StatusCodesBasedTrigger, '2016-08-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb' + autoload :ConnStringValueTypePair, '2016-08-01/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb' + autoload :AutoHealRules, '2016-08-01/generated/azure_mgmt_web/models/auto_heal_rules.rb' + autoload :SiteExtensionInfoCollection, '2016-08-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb' + autoload :DatabaseBackupSetting, '2016-08-01/generated/azure_mgmt_web/models/database_backup_setting.rb' autoload :CorsSettings, '2016-08-01/generated/azure_mgmt_web/models/cors_settings.rb' autoload :ResourceMetricName, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_name.rb' autoload :CsmSlotEntity, '2016-08-01/generated/azure_mgmt_web/models/csm_slot_entity.rb' - autoload :MSDeployLogEntry, '2016-08-01/generated/azure_mgmt_web/models/msdeploy_log_entry.rb' + autoload :SiteCloneabilityCriterion, '2016-08-01/generated/azure_mgmt_web/models/site_cloneability_criterion.rb' autoload :CsmUsageQuota, '2016-08-01/generated/azure_mgmt_web/models/csm_usage_quota.rb' autoload :SiteCloneability, '2016-08-01/generated/azure_mgmt_web/models/site_cloneability.rb' autoload :ErrorEntity, '2016-08-01/generated/azure_mgmt_web/models/error_entity.rb' - autoload :SlotSwapStatus, '2016-08-01/generated/azure_mgmt_web/models/slot_swap_status.rb' - autoload :ResourceMetricAvailability, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_availability.rb' + autoload :ManagedServiceIdentity, '2016-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb' + autoload :ResourceMetricDefinitionCollection, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb' autoload :SiteConfigResourceCollection, '2016-08-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb' autoload :EnabledConfig, '2016-08-01/generated/azure_mgmt_web/models/enabled_config.rb' - autoload :SnapshotRecoveryTarget, '2016-08-01/generated/azure_mgmt_web/models/snapshot_recovery_target.rb' + autoload :SlotSwapStatus, '2016-08-01/generated/azure_mgmt_web/models/slot_swap_status.rb' autoload :Experiments, '2016-08-01/generated/azure_mgmt_web/models/experiments.rb' autoload :NameValuePair, '2016-08-01/generated/azure_mgmt_web/models/name_value_pair.rb' - autoload :ResourceMetric, '2016-08-01/generated/azure_mgmt_web/models/resource_metric.rb' + autoload :SnapshotCollection, '2016-08-01/generated/azure_mgmt_web/models/snapshot_collection.rb' + autoload :SiteConfigurationSnapshotInfoCollection, '2016-08-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb' + autoload :ResourceMetricCollection, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_collection.rb' + autoload :SnapshotRecoveryTarget, '2016-08-01/generated/azure_mgmt_web/models/snapshot_recovery_target.rb' + autoload :ResourceMetricAvailability, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_availability.rb' autoload :SiteConfig, '2016-08-01/generated/azure_mgmt_web/models/site_config.rb' - autoload :ResourceMetricValue, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_value.rb' - autoload :SiteLimits, '2016-08-01/generated/azure_mgmt_web/models/site_limits.rb' - autoload :ResourceMetricProperty, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_property.rb' - autoload :VirtualApplication, '2016-08-01/generated/azure_mgmt_web/models/virtual_application.rb' autoload :HostNameSslState, '2016-08-01/generated/azure_mgmt_web/models/host_name_ssl_state.rb' - autoload :VirtualDirectory, '2016-08-01/generated/azure_mgmt_web/models/virtual_directory.rb' - autoload :AutoHealActions, '2016-08-01/generated/azure_mgmt_web/models/auto_heal_actions.rb' + autoload :SiteLimits, '2016-08-01/generated/azure_mgmt_web/models/site_limits.rb' + autoload :HttpLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/http_logs_config.rb' autoload :Operation, '2016-08-01/generated/azure_mgmt_web/models/operation.rb' - autoload :CloningInfo, '2016-08-01/generated/azure_mgmt_web/models/cloning_info.rb' + autoload :VirtualDirectory, '2016-08-01/generated/azure_mgmt_web/models/virtual_directory.rb' autoload :PerfMonSample, '2016-08-01/generated/azure_mgmt_web/models/perf_mon_sample.rb' - autoload :ContinuousWebJobCollection, '2016-08-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb' - autoload :FileSystemApplicationLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/file_system_application_logs_config.rb' - autoload :LocalizableString, '2016-08-01/generated/azure_mgmt_web/models/localizable_string.rb' - autoload :AzureBlobStorageApplicationLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb' - autoload :ResourceMetricCollection, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_collection.rb' - autoload :AutoHealCustomAction, '2016-08-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb' - autoload :RampUpRule, '2016-08-01/generated/azure_mgmt_web/models/ramp_up_rule.rb' - autoload :FunctionEnvelopeCollection, '2016-08-01/generated/azure_mgmt_web/models/function_envelope_collection.rb' + autoload :SiteMachineKey, '2016-08-01/generated/azure_mgmt_web/models/site_machine_key.rb' + autoload :ApiDefinitionInfo, '2016-08-01/generated/azure_mgmt_web/models/api_definition_info.rb' + autoload :CsmPublishingProfileOptions, '2016-08-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb' + autoload :AzureTableStorageApplicationLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb' + autoload :CsmUsageQuotaCollection, '2016-08-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb' + autoload :ApplicationLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/application_logs_config.rb' + autoload :DeploymentCollection, '2016-08-01/generated/azure_mgmt_web/models/deployment_collection.rb' + autoload :FileSystemHttpLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/file_system_http_logs_config.rb' autoload :WebJobCollection, '2016-08-01/generated/azure_mgmt_web/models/web_job_collection.rb' - autoload :HostNameBindingCollection, '2016-08-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb' + autoload :HandlerMapping, '2016-08-01/generated/azure_mgmt_web/models/handler_mapping.rb' autoload :WebAppInstanceCollection, '2016-08-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb' - autoload :StatusCodesBasedTrigger, '2016-08-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb' + autoload :HostingEnvironmentProfile, '2016-08-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb' autoload :WebAppCollection, '2016-08-01/generated/azure_mgmt_web/models/web_app_collection.rb' - autoload :CsmPublishingProfileOptions, '2016-08-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb' + autoload :ConnStringInfo, '2016-08-01/generated/azure_mgmt_web/models/conn_string_info.rb' autoload :ProcessInfoCollection, '2016-08-01/generated/azure_mgmt_web/models/process_info_collection.rb' - autoload :DeploymentCollection, '2016-08-01/generated/azure_mgmt_web/models/deployment_collection.rb' + autoload :LocalizableString, '2016-08-01/generated/azure_mgmt_web/models/localizable_string.rb' autoload :ProcessModuleInfoCollection, '2016-08-01/generated/azure_mgmt_web/models/process_module_info_collection.rb' - autoload :HandlerMapping, '2016-08-01/generated/azure_mgmt_web/models/handler_mapping.rb' + autoload :RampUpRule, '2016-08-01/generated/azure_mgmt_web/models/ramp_up_rule.rb' autoload :ProcessThreadInfoCollection, '2016-08-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb' - autoload :ResourceMetricDefinitionCollection, '2016-08-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb' + autoload :HostNameBindingCollection, '2016-08-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb' autoload :ProxyOnlyResource, '2016-08-01/generated/azure_mgmt_web/models/proxy_only_resource.rb' - autoload :FileSystemHttpLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/file_system_http_logs_config.rb' + autoload :ContinuousWebJobCollection, '2016-08-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb' autoload :TriggeredWebJobCollection, '2016-08-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb' - autoload :CsmUsageQuotaCollection, '2016-08-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb' + autoload :FunctionEnvelopeCollection, '2016-08-01/generated/azure_mgmt_web/models/function_envelope_collection.rb' autoload :PublicCertificateCollection, '2016-08-01/generated/azure_mgmt_web/models/public_certificate_collection.rb' - autoload :HostingEnvironmentProfile, '2016-08-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb' + autoload :SlotDifferenceCollection, '2016-08-01/generated/azure_mgmt_web/models/slot_difference_collection.rb' autoload :TriggeredJobHistoryCollection, '2016-08-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb' + autoload :BackupItemCollection, '2016-08-01/generated/azure_mgmt_web/models/backup_item_collection.rb' + autoload :Resource, '2016-08-01/generated/azure_mgmt_web/models/resource.rb' autoload :BackupItem, '2016-08-01/generated/azure_mgmt_web/models/backup_item.rb' autoload :BackupRequest, '2016-08-01/generated/azure_mgmt_web/models/backup_request.rb' autoload :ConnectionStringDictionary, '2016-08-01/generated/azure_mgmt_web/models/connection_string_dictionary.rb' @@ -140,6 +142,7 @@ module Models autoload :SiteExtensionInfo, '2016-08-01/generated/azure_mgmt_web/models/site_extension_info.rb' autoload :SiteInstance, '2016-08-01/generated/azure_mgmt_web/models/site_instance.rb' autoload :SiteLogsConfig, '2016-08-01/generated/azure_mgmt_web/models/site_logs_config.rb' + autoload :SitePatchResource, '2016-08-01/generated/azure_mgmt_web/models/site_patch_resource.rb' autoload :SitePhpErrorLogFlag, '2016-08-01/generated/azure_mgmt_web/models/site_php_error_log_flag.rb' autoload :SiteSourceControl, '2016-08-01/generated/azure_mgmt_web/models/site_source_control.rb' autoload :SlotConfigNamesResource, '2016-08-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb' diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/cloning_info.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/cloning_info.rb index b685a583c0..398068b68a 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/cloning_info.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/cloning_info.rb @@ -12,8 +12,8 @@ class CloningInfo include MsRestAzure - # @return [String] Correlation ID of cloning operation. This ID ties - # multiple cloning operations + # @return Correlation ID of cloning operation. This ID ties multiple + # cloning operations # together to use the same snapshot. attr_accessor :correlation_id diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/continuous_web_job.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/continuous_web_job.rb index 45b128b268..70d104398a 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/continuous_web_job.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/continuous_web_job.rb @@ -168,7 +168,14 @@ def self.mapper() required: false, serialized_name: 'properties.settings', type: { - name: 'Object' + name: 'Dictionary', + value: { + required: false, + serialized_name: 'ObjectElementType', + type: { + name: 'Object' + } + } } } } diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/error_entity.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/error_entity.rb index 817461c5b5..52570315e6 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/error_entity.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/error_entity.rb @@ -12,12 +12,6 @@ class ErrorEntity include MsRestAzure - # @return [String] Basic error code. - attr_accessor :code - - # @return [String] Any details of the error. - attr_accessor :message - # @return [String] Type of error. attr_accessor :extended_code @@ -30,6 +24,12 @@ class ErrorEntity # @return [Array] Inner errors. attr_accessor :inner_errors + # @return [String] Basic error code. + attr_accessor :code + + # @return [String] Any details of the error. + attr_accessor :message + # # Mapper for ErrorEntity class as Ruby Hash. @@ -43,20 +43,6 @@ def self.mapper() name: 'Composite', class_name: 'ErrorEntity', model_properties: { - code: { - required: false, - serialized_name: 'code', - type: { - name: 'String' - } - }, - message: { - required: false, - serialized_name: 'message', - type: { - name: 'String' - } - }, extended_code: { required: false, serialized_name: 'extendedCode', @@ -99,6 +85,20 @@ def self.mapper() } } } + }, + code: { + required: false, + serialized_name: 'code', + type: { + name: 'String' + } + }, + message: { + required: false, + serialized_name: 'message', + type: { + name: 'String' + } } } } diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/host_name_binding.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/host_name_binding.rb index 968a3e08d0..2e808497f1 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/host_name_binding.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/host_name_binding.rb @@ -12,9 +12,6 @@ class HostNameBinding < ProxyOnlyResource include MsRestAzure - # @return [String] Hostname. - attr_accessor :host_name_binding_name - # @return [String] App Service app name. attr_accessor :site_name @@ -91,13 +88,6 @@ def self.mapper() name: 'String' } }, - host_name_binding_name: { - required: false, - serialized_name: 'properties.name', - type: { - name: 'String' - } - }, site_name: { required: false, serialized_name: 'properties.siteName', diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb new file mode 100644 index 0000000000..3f56a680ef --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb @@ -0,0 +1,66 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_08_01 + module Models + # + # Managed service identity. + # + class ManagedServiceIdentity + + include MsRestAzure + + # @return Type of managed service identity. + attr_accessor :type + + # @return [String] Tenant of managed service identity. + attr_accessor :tenant_id + + # @return [String] Principal Id of managed service identity. + attr_accessor :principal_id + + + # + # Mapper for ManagedServiceIdentity class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ManagedServiceIdentity', + type: { + name: 'Composite', + class_name: 'ManagedServiceIdentity', + model_properties: { + type: { + required: false, + serialized_name: 'type', + type: { + name: 'Object' + } + }, + tenant_id: { + required: false, + read_only: true, + serialized_name: 'tenantId', + type: { + name: 'String' + } + }, + principal_id: { + required: false, + read_only: true, + serialized_name: 'principalId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/operation.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/operation.rb index 08239d42b1..34f64044dc 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/operation.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/operation.rb @@ -35,7 +35,7 @@ class Operation # @return [DateTime] Time when operation will expire. attr_accessor :expiration_time - # @return [String] Applicable only for stamp operation ids. + # @return Applicable only for stamp operation ids. attr_accessor :geo_master_operation_id diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/public_certificate.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/public_certificate.rb index 7c512cdba7..ceba80bf95 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/public_certificate.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/public_certificate.rb @@ -12,7 +12,7 @@ class PublicCertificate < ProxyOnlyResource include MsRestAzure - # @return [String] Public Certificate byte array + # @return [Array] Public Certificate byte array attr_accessor :blob # @return [PublicCertificateLocation] Public Certificate Location. @@ -70,7 +70,7 @@ def self.mapper() required: false, serialized_name: 'properties.blob', type: { - name: 'String' + name: 'ByteArray' } }, public_certificate_location: { diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site.rb index 1de8f6c376..a544aefddd 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site.rb @@ -94,9 +94,15 @@ class Site < Resource attr_accessor :host_names_disabled # @return [String] List of IP addresses that the app uses for outbound - # connections (e.g. database access). Read-only. + # connections (e.g. database access). Includes VIPs from tenants that + # site can be hosted with current settings. Read-only. attr_accessor :outbound_ip_addresses + # @return [String] List of IP addresses that the app uses for outbound + # connections (e.g. database access). Includes VIPs from all tenants. + # Read-only. + attr_accessor :possible_outbound_ip_addresses + # @return [Integer] Size of the function container. attr_accessor :container_size @@ -135,6 +141,14 @@ class Site < Resource # operation. attr_accessor :slot_swap_status + # @return [Boolean] HttpsOnly: configures a web site to accept only https + # requests. Issues redirect for + # http requests + attr_accessor :https_only + + # @return [ManagedServiceIdentity] + attr_accessor :identity + # # Mapper for Site class as Ruby Hash. @@ -385,6 +399,14 @@ def self.mapper() name: 'String' } }, + possible_outbound_ip_addresses: { + required: false, + read_only: true, + serialized_name: 'properties.possibleOutboundIpAddresses', + type: { + name: 'String' + } + }, container_size: { required: false, serialized_name: 'properties.containerSize', @@ -463,6 +485,21 @@ def self.mapper() name: 'Composite', class_name: 'SlotSwapStatus' } + }, + https_only: { + required: false, + serialized_name: 'properties.httpsOnly', + type: { + name: 'Boolean' + } + }, + identity: { + required: false, + serialized_name: 'identity', + type: { + name: 'Composite', + class_name: 'ManagedServiceIdentity' + } } } } diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb new file mode 100644 index 0000000000..c0425aeaee --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_08_01 + module Models + # + # Collection of metadata for the app configuration snapshots that can be + # restored. + # + class SiteConfigurationSnapshotInfoCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Collection of resources. + attr_accessor :value + + # @return [String] Link to next page of resources. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [SiteConfigurationSnapshotInfoCollection] with next page + # content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for SiteConfigurationSnapshotInfoCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SiteConfigurationSnapshotInfoCollection', + type: { + name: 'Composite', + class_name: 'SiteConfigurationSnapshotInfoCollection', + model_properties: { + value: { + required: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SiteConfigurationSnapshotInfoElementType', + type: { + name: 'Composite', + class_name: 'SiteConfigurationSnapshotInfo' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site_patch_resource.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site_patch_resource.rb new file mode 100644 index 0000000000..39ee502c4f --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/site_patch_resource.rb @@ -0,0 +1,478 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_08_01 + module Models + # + # ARM resource for a site. + # + class SitePatchResource < ProxyOnlyResource + + include MsRestAzure + + # @return [String] Current state of the app. + attr_accessor :state + + # @return [Array] Hostnames associated with the app. + attr_accessor :host_names + + # @return [String] Name of the repository site. + attr_accessor :repository_site_name + + # @return [UsageState] State indicating whether the app has exceeded its + # quota usage. Read-only. Possible values include: 'Normal', 'Exceeded' + attr_accessor :usage_state + + # @return [Boolean] true if the app is enabled; otherwise, + # false. Setting this value to false disables the app (takes + # the app offline). + attr_accessor :enabled + + # @return [Array] Enabled hostnames for the app.Hostnames need to + # be assigned (see HostNames) AND enabled. Otherwise, + # the app is not served on those hostnames. + attr_accessor :enabled_host_names + + # @return [SiteAvailabilityState] Management information availability + # state for the app. Possible values include: 'Normal', 'Limited', + # 'DisasterRecoveryMode' + attr_accessor :availability_state + + # @return [Array] Hostname SSL states are used to + # manage the SSL bindings for app's hostnames. + attr_accessor :host_name_ssl_states + + # @return [String] Resource ID of the associated App Service plan, + # formatted as: + # "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + attr_accessor :server_farm_id + + # @return [Boolean] true if reserved; otherwise, + # false. Default value: false . + attr_accessor :reserved + + # @return [DateTime] Last time the app was modified, in UTC. Read-only. + attr_accessor :last_modified_time_utc + + # @return [SiteConfig] Configuration of the app. + attr_accessor :site_config + + # @return [Array] Azure Traffic Manager hostnames associated with + # the app. Read-only. + attr_accessor :traffic_manager_host_names + + # @return [Boolean] true to stop SCM (KUDU) site when the + # app is stopped; otherwise, false. The default is + # false. Default value: false . + attr_accessor :scm_site_also_stopped + + # @return [String] Specifies which deployment slot this app will swap + # into. Read-only. + attr_accessor :target_swap_slot + + # @return [HostingEnvironmentProfile] App Service Environment to use for + # the app. + attr_accessor :hosting_environment_profile + + # @return [Boolean] true to enable client affinity; + # false to stop sending session affinity cookies, which + # route client requests in the same session to the same instance. Default + # is true. + attr_accessor :client_affinity_enabled + + # @return [Boolean] true to enable client certificate + # authentication (TLS mutual authentication); otherwise, + # false. Default is false. + attr_accessor :client_cert_enabled + + # @return [Boolean] true to disable the public hostnames of + # the app; otherwise, false. + # If true, the app is only accessible via API management + # process. + attr_accessor :host_names_disabled + + # @return [String] List of IP addresses that the app uses for outbound + # connections (e.g. database access). Includes VIPs from tenants that + # site can be hosted with current settings. Read-only. + attr_accessor :outbound_ip_addresses + + # @return [String] List of IP addresses that the app uses for outbound + # connections (e.g. database access). Includes VIPs from all tenants. + # Read-only. + attr_accessor :possible_outbound_ip_addresses + + # @return [Integer] Size of the function container. + attr_accessor :container_size + + # @return [Integer] Maximum allowed daily memory-time quota (applicable + # on dynamic apps only). + attr_accessor :daily_memory_time_quota + + # @return [DateTime] App suspended till in case memory-time quota is + # exceeded. + attr_accessor :suspended_till + + # @return [Integer] Maximum number of workers. + # This only applies to Functions container. + attr_accessor :max_number_of_workers + + # @return [CloningInfo] If specified during app creation, the app is + # cloned from a source app. + attr_accessor :cloning_info + + # @return [SnapshotRecoveryRequest] If specified during app creation, the + # app is created from a previous snapshot. + attr_accessor :snapshot_info + + # @return [String] Name of the resource group the app belongs to. + # Read-only. + attr_accessor :resource_group + + # @return [Boolean] true if the app is a default container; + # otherwise, false. + attr_accessor :is_default_container + + # @return [String] Default hostname of the app. Read-only. + attr_accessor :default_host_name + + # @return [SlotSwapStatus] Status of the last deployment slot swap + # operation. + attr_accessor :slot_swap_status + + # @return [Boolean] HttpsOnly: configures a web site to accept only https + # requests. Issues redirect for + # http requests + attr_accessor :https_only + + + # + # Mapper for SitePatchResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SitePatchResource', + type: { + name: 'Composite', + class_name: 'SitePatchResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + state: { + required: false, + read_only: true, + serialized_name: 'properties.state', + type: { + name: 'String' + } + }, + host_names: { + required: false, + read_only: true, + serialized_name: 'properties.hostNames', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + repository_site_name: { + required: false, + read_only: true, + serialized_name: 'properties.repositorySiteName', + type: { + name: 'String' + } + }, + usage_state: { + required: false, + read_only: true, + serialized_name: 'properties.usageState', + type: { + name: 'Enum', + module: 'UsageState' + } + }, + enabled: { + required: false, + serialized_name: 'properties.enabled', + type: { + name: 'Boolean' + } + }, + enabled_host_names: { + required: false, + read_only: true, + serialized_name: 'properties.enabledHostNames', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + availability_state: { + required: false, + read_only: true, + serialized_name: 'properties.availabilityState', + type: { + name: 'Enum', + module: 'SiteAvailabilityState' + } + }, + host_name_ssl_states: { + required: false, + serialized_name: 'properties.hostNameSslStates', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'HostNameSslStateElementType', + type: { + name: 'Composite', + class_name: 'HostNameSslState' + } + } + } + }, + server_farm_id: { + required: false, + serialized_name: 'properties.serverFarmId', + type: { + name: 'String' + } + }, + reserved: { + required: false, + serialized_name: 'properties.reserved', + default_value: false, + type: { + name: 'Boolean' + } + }, + last_modified_time_utc: { + required: false, + read_only: true, + serialized_name: 'properties.lastModifiedTimeUtc', + type: { + name: 'DateTime' + } + }, + site_config: { + required: false, + serialized_name: 'properties.siteConfig', + type: { + name: 'Composite', + class_name: 'SiteConfig' + } + }, + traffic_manager_host_names: { + required: false, + read_only: true, + serialized_name: 'properties.trafficManagerHostNames', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + scm_site_also_stopped: { + required: false, + serialized_name: 'properties.scmSiteAlsoStopped', + default_value: false, + type: { + name: 'Boolean' + } + }, + target_swap_slot: { + required: false, + read_only: true, + serialized_name: 'properties.targetSwapSlot', + type: { + name: 'String' + } + }, + hosting_environment_profile: { + required: false, + serialized_name: 'properties.hostingEnvironmentProfile', + type: { + name: 'Composite', + class_name: 'HostingEnvironmentProfile' + } + }, + client_affinity_enabled: { + required: false, + serialized_name: 'properties.clientAffinityEnabled', + type: { + name: 'Boolean' + } + }, + client_cert_enabled: { + required: false, + serialized_name: 'properties.clientCertEnabled', + type: { + name: 'Boolean' + } + }, + host_names_disabled: { + required: false, + serialized_name: 'properties.hostNamesDisabled', + type: { + name: 'Boolean' + } + }, + outbound_ip_addresses: { + required: false, + read_only: true, + serialized_name: 'properties.outboundIpAddresses', + type: { + name: 'String' + } + }, + possible_outbound_ip_addresses: { + required: false, + read_only: true, + serialized_name: 'properties.possibleOutboundIpAddresses', + type: { + name: 'String' + } + }, + container_size: { + required: false, + serialized_name: 'properties.containerSize', + type: { + name: 'Number' + } + }, + daily_memory_time_quota: { + required: false, + serialized_name: 'properties.dailyMemoryTimeQuota', + type: { + name: 'Number' + } + }, + suspended_till: { + required: false, + read_only: true, + serialized_name: 'properties.suspendedTill', + type: { + name: 'DateTime' + } + }, + max_number_of_workers: { + required: false, + read_only: true, + serialized_name: 'properties.maxNumberOfWorkers', + type: { + name: 'Number' + } + }, + cloning_info: { + required: false, + serialized_name: 'properties.cloningInfo', + type: { + name: 'Composite', + class_name: 'CloningInfo' + } + }, + snapshot_info: { + required: false, + serialized_name: 'properties.snapshotInfo', + type: { + name: 'Composite', + class_name: 'SnapshotRecoveryRequest' + } + }, + resource_group: { + required: false, + read_only: true, + serialized_name: 'properties.resourceGroup', + type: { + name: 'String' + } + }, + is_default_container: { + required: false, + read_only: true, + serialized_name: 'properties.isDefaultContainer', + type: { + name: 'Boolean' + } + }, + default_host_name: { + required: false, + read_only: true, + serialized_name: 'properties.defaultHostName', + type: { + name: 'String' + } + }, + slot_swap_status: { + required: false, + read_only: true, + serialized_name: 'properties.slotSwapStatus', + type: { + name: 'Composite', + class_name: 'SlotSwapStatus' + } + }, + https_only: { + required: false, + serialized_name: 'properties.httpsOnly', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_web_job.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_web_job.rb index 29679255b7..182e1e4517 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_web_job.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_web_job.rb @@ -167,7 +167,14 @@ def self.mapper() required: false, serialized_name: 'properties.settings', type: { - name: 'Object' + name: 'Dictionary', + value: { + required: false, + serialized_name: 'ObjectElementType', + type: { + name: 'Object' + } + } } } } diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/vnet_info.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/vnet_info.rb index f3fac0f0c4..06eea0f1bc 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/vnet_info.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/vnet_info.rb @@ -18,8 +18,8 @@ class VnetInfo < ProxyOnlyResource # @return [String] The client certificate thumbprint. attr_accessor :cert_thumbprint - # @return [String] A certificate file (.cer) blob containing the public - # key of the private key used to authenticate a + # @return [Array] A certificate file (.cer) blob containing the + # public key of the private key used to authenticate a # Point-To-Site VPN connection. attr_accessor :cert_blob @@ -98,7 +98,7 @@ def self.mapper() required: false, serialized_name: 'properties.certBlob', type: { - name: 'String' + name: 'ByteArray' } }, routes: { diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/web_job.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/web_job.rb index ae84073457..d41fc3d910 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/web_job.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/models/web_job.rb @@ -136,7 +136,14 @@ def self.mapper() required: false, serialized_name: 'properties.settings', type: { - name: 'Object' + name: 'Dictionary', + value: { + required: false, + serialized_name: 'ObjectElementType', + type: { + name: 'Object' + } + } } } } diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb index e2c3a814a6..730f32c3ac 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb @@ -292,7 +292,7 @@ def get_async(resource_group_name, name, custom_headers = nil) http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -478,12 +478,174 @@ def delete_async(resource_group_name, name, delete_metrics = nil, delete_empty_s http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 || status_code == 204 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Unique name of the app to create or update. To create or + # update a deployment slot, use the {slot} parameter. + # @param site_envelope [SitePatchResource] A JSON representation of the app + # properties. See example. + # @param skip_dns_registration [Boolean] If true web app hostname is not + # registered with DNS on creation. This parameter is + # only used for app creation. + # @param skip_custom_domain_verification [Boolean] If true, custom (non + # *.azurewebsites.net) domains associated with web app are not verified. + # @param force_dns_registration [Boolean] If true, web app hostname is force + # registered with DNS. + # @param ttl_in_seconds [String] Time to live in seconds for web app's default + # domain name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Site] operation results. + # + def update(resource_group_name, name, site_envelope, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + response = update_async(resource_group_name, name, site_envelope, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Unique name of the app to create or update. To create or + # update a deployment slot, use the {slot} parameter. + # @param site_envelope [SitePatchResource] A JSON representation of the app + # properties. See example. + # @param skip_dns_registration [Boolean] If true web app hostname is not + # registered with DNS on creation. This parameter is + # only used for app creation. + # @param skip_custom_domain_verification [Boolean] If true, custom (non + # *.azurewebsites.net) domains associated with web app are not verified. + # @param force_dns_registration [Boolean] If true, web app hostname is force + # registered with DNS. + # @param ttl_in_seconds [String] Time to live in seconds for web app's default + # domain name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, name, site_envelope, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + update_async(resource_group_name, name, site_envelope, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + end + + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Unique name of the app to create or update. To create or + # update a deployment slot, use the {slot} parameter. + # @param site_envelope [SitePatchResource] A JSON representation of the app + # properties. See example. + # @param skip_dns_registration [Boolean] If true web app hostname is not + # registered with DNS on creation. This parameter is + # only used for app creation. + # @param skip_custom_domain_verification [Boolean] If true, custom (non + # *.azurewebsites.net) domains associated with web app are not verified. + # @param force_dns_registration [Boolean] If true, web app hostname is force + # registered with DNS. + # @param ttl_in_seconds [String] Time to live in seconds for web app's default + # domain name. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, name, site_envelope, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'site_envelope is nil' if site_envelope.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SitePatchResource.mapper() + request_content = @client.serialize(request_mapper, site_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'skipDnsRegistration' => skip_dns_registration,'skipCustomDomainVerification' => skip_custom_domain_verification,'forceDnsRegistration' => force_dns_registration,'ttlInSeconds' => ttl_in_seconds,'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Site.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Site.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -3742,11 +3904,11 @@ def update_configuration_async(resource_group_name, name, site_config, custom_he # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [Array] operation results. # def list_configuration_snapshot_info(resource_group_name, name, custom_headers = nil) - response = list_configuration_snapshot_info_async(resource_group_name, name, custom_headers).value! - response.body unless response.nil? + first_page = list_configuration_snapshot_info_as_lazy(resource_group_name, name, custom_headers) + first_page.get_all_items end # @@ -3822,21 +3984,7 @@ def list_configuration_snapshot_info_async(resource_group_name, name, custom_hea if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = { - required: false, - serialized_name: 'parsed_response', - type: { - name: 'Sequence', - element: { - required: false, - serialized_name: 'SiteConfigurationSnapshotInfoElementType', - type: { - name: 'Composite', - class_name: 'SiteConfigurationSnapshotInfo' - } - } - } - } + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigurationSnapshotInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -4047,54 +4195,54 @@ def recover_site_configuration_snapshot_async(resource_group_name, name, snapsho end # - # List continuous web jobs for an app, or a deployment slot. + # Gets the last lines of docker logs for the given site # - # List continuous web jobs for an app, or a deployment slot. + # Gets the last lines of docker logs for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Site name. + # @param name [String] Name of web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [NOT_IMPLEMENTED] operation results. # - def list_continuous_web_jobs(resource_group_name, name, custom_headers = nil) - first_page = list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers) - first_page.get_all_items + def get_web_site_container_logs(resource_group_name, name, custom_headers = nil) + response = get_web_site_container_logs_async(resource_group_name, name, custom_headers).value! + response.body unless response.nil? end # - # List continuous web jobs for an app, or a deployment slot. + # Gets the last lines of docker logs for the given site # - # List continuous web jobs for an app, or a deployment slot. + # Gets the last lines of docker logs for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Site name. + # @param name [String] Name of web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_continuous_web_jobs_with_http_info(resource_group_name, name, custom_headers = nil) - list_continuous_web_jobs_async(resource_group_name, name, custom_headers).value! + def get_web_site_container_logs_with_http_info(resource_group_name, name, custom_headers = nil) + get_web_site_container_logs_async(resource_group_name, name, custom_headers).value! end # - # List continuous web jobs for an app, or a deployment slot. + # Gets the last lines of docker logs for the given site # - # List continuous web jobs for an app, or a deployment slot. + # Gets the last lines of docker logs for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Site name. + # @param name [String] Name of web app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_continuous_web_jobs_async(resource_group_name, name, custom_headers = nil) + def get_web_site_container_logs_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -4106,7 +4254,7 @@ def list_continuous_web_jobs_async(resource_group_name, name, custom_headers = n # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs' request_url = @base_url || @client.base_url @@ -4117,13 +4265,13 @@ def list_continuous_web_jobs_async(resource_group_name, name, custom_headers = n headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 204 || status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -4133,7 +4281,13 @@ def list_continuous_web_jobs_async(resource_group_name, name, custom_headers = n if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ContinuousWebJobCollection.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'Stream' + } + } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -4147,64 +4301,56 @@ def list_continuous_web_jobs_async(resource_group_name, name, custom_headers = n end # - # Gets a continuous web job by its ID for an app, or a deployment slot. + # Gets the ZIP archived docker log files for the given site # - # Gets a continuous web job by its ID for an app, or a deployment slot. + # Gets the ZIP archived docker log files for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param name [String] Name of web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [ContinuousWebJob] operation results. + # @return [NOT_IMPLEMENTED] operation results. # - def get_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def get_container_logs_zip(resource_group_name, name, custom_headers = nil) + response = get_container_logs_zip_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end # - # Gets a continuous web job by its ID for an app, or a deployment slot. + # Gets the ZIP archived docker log files for the given site # - # Gets a continuous web job by its ID for an app, or a deployment slot. + # Gets the ZIP archived docker log files for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param name [String] Name of web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def get_container_logs_zip_with_http_info(resource_group_name, name, custom_headers = nil) + get_container_logs_zip_async(resource_group_name, name, custom_headers).value! end # - # Gets a continuous web job by its ID for an app, or a deployment slot. + # Gets the ZIP archived docker log files for the given site # - # Gets a continuous web job by its ID for an app, or a deployment slot. + # Gets the ZIP archived docker log files for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param name [String] Name of web app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def get_container_logs_zip_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -4214,24 +4360,24 @@ def get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_ # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs/zip/download' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 204 || status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -4241,7 +4387,13 @@ def get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_ if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ContinuousWebJob.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'Stream' + } + } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -4255,63 +4407,56 @@ def get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_ end # - # Delete a continuous web job by its ID for an app, or a deployment slot. + # List continuous web jobs for an app, or a deployment slot. # - # Delete a continuous web job by its ID for an app, or a deployment slot. + # List continuous web jobs for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [Array] operation results. # - def delete_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! - nil + def list_continuous_web_jobs(resource_group_name, name, custom_headers = nil) + first_page = list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers) + first_page.get_all_items end # - # Delete a continuous web job by its ID for an app, or a deployment slot. + # List continuous web jobs for an app, or a deployment slot. # - # Delete a continuous web job by its ID for an app, or a deployment slot. + # List continuous web jobs for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def list_continuous_web_jobs_with_http_info(resource_group_name, name, custom_headers = nil) + list_continuous_web_jobs_async(resource_group_name, name, custom_headers).value! end # - # Delete a continuous web job by its ID for an app, or a deployment slot. + # List continuous web jobs for an app, or a deployment slot. # - # Delete a continuous web job by its ID for an app, or a deployment slot. + # List continuous web jobs for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def list_continuous_web_jobs_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -4321,29 +4466,39 @@ def delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_j # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ContinuousWebJobCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -4352,62 +4507,59 @@ def delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_j end # - # Start a continuous web job for an app, or a deployment slot. + # Gets a continuous web job by its ID for an app, or a deployment slot. # - # Start a continuous web job for an app, or a deployment slot. + # Gets a continuous web job by its ID for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [ContinuousWebJob] operation results. # - def start_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = start_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! - nil + def get_continuous_web_job(resource_group_name, name, web_job_name, custom_headers = nil) + response = get_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! + response.body unless response.nil? end # - # Start a continuous web job for an app, or a deployment slot. + # Gets a continuous web job by its ID for an app, or a deployment slot. # - # Start a continuous web job for an app, or a deployment slot. + # Gets a continuous web job by its ID for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def start_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - start_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def get_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers = nil) + get_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! end # - # Start a continuous web job for an app, or a deployment slot. + # Gets a continuous web job by its ID for an app, or a deployment slot. # - # Start a continuous web job for an app, or a deployment slot. + # Gets a continuous web job by its ID for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def start_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def get_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -4418,18 +4570,18 @@ def start_continuous_web_job_async(resource_group_name, name, web_job_id, web_jo # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}/start' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -4441,6 +4593,16 @@ def start_continuous_web_job_async(resource_group_name, name, web_job_id, web_jo end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ContinuousWebJob.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -4449,62 +4611,58 @@ def start_continuous_web_job_async(resource_group_name, name, web_job_id, web_jo end # - # Stop a continuous web job for an app, or a deployment slot. + # Delete a continuous web job by its ID for an app, or a deployment slot. # - # Stop a continuous web job for an app, or a deployment slot. + # Delete a continuous web job by its ID for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def stop_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def delete_continuous_web_job(resource_group_name, name, web_job_name, custom_headers = nil) + response = delete_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! nil end # - # Stop a continuous web job for an app, or a deployment slot. + # Delete a continuous web job by its ID for an app, or a deployment slot. # - # Stop a continuous web job for an app, or a deployment slot. + # Delete a continuous web job by its ID for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def delete_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers = nil) + delete_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! end # - # Stop a continuous web job for an app, or a deployment slot. + # Delete a continuous web job by its ID for an app, or a deployment slot. # - # Stop a continuous web job for an app, or a deployment slot. + # Delete a continuous web job by its ID for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def delete_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -4515,24 +4673,24 @@ def stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}/stop' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -4546,56 +4704,59 @@ def stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job end # - # List deployments for an app, or a deployment slot. + # Start a continuous web job for an app, or a deployment slot. # - # List deployments for an app, or a deployment slot. + # Start a continuous web job for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] Site name. + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. # - def list_deployments(resource_group_name, name, custom_headers = nil) - first_page = list_deployments_as_lazy(resource_group_name, name, custom_headers) - first_page.get_all_items + def start_continuous_web_job(resource_group_name, name, web_job_name, custom_headers = nil) + response = start_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! + nil end # - # List deployments for an app, or a deployment slot. + # Start a continuous web job for an app, or a deployment slot. # - # List deployments for an app, or a deployment slot. + # Start a continuous web job for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] Site name. + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deployments_with_http_info(resource_group_name, name, custom_headers = nil) - list_deployments_async(resource_group_name, name, custom_headers).value! + def start_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers = nil) + start_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! end # - # List deployments for an app, or a deployment slot. + # Start a continuous web job for an app, or a deployment slot. # - # List deployments for an app, or a deployment slot. + # Start a continuous web job for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] Site name. + # @param web_job_name [String] Name of Web Job. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deployments_async(resource_group_name, name, custom_headers = nil) + def start_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -4605,39 +4766,29 @@ def list_deployments_async(resource_group_name, name, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}/start' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::DeploymentCollection.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -4646,60 +4797,59 @@ def list_deployments_async(resource_group_name, name, custom_headers = nil) end # - # Get a deployment by its ID for an app, or a deployment slot. + # Stop a continuous web job for an app, or a deployment slot. # - # Get a deployment by its ID for an app, or a deployment slot. + # Stop a continuous web job for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] Deployment ID. + # @param name [String] Site name. + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Deployment] operation results. # - def get_deployment(resource_group_name, name, id, custom_headers = nil) - response = get_deployment_async(resource_group_name, name, id, custom_headers).value! - response.body unless response.nil? + def stop_continuous_web_job(resource_group_name, name, web_job_name, custom_headers = nil) + response = stop_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! + nil end # - # Get a deployment by its ID for an app, or a deployment slot. + # Stop a continuous web job for an app, or a deployment slot. # - # Get a deployment by its ID for an app, or a deployment slot. + # Stop a continuous web job for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] Deployment ID. + # @param name [String] Site name. + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_deployment_with_http_info(resource_group_name, name, id, custom_headers = nil) - get_deployment_async(resource_group_name, name, id, custom_headers).value! + def stop_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers = nil) + stop_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! end # - # Get a deployment by its ID for an app, or a deployment slot. + # Stop a continuous web job for an app, or a deployment slot. # - # Get a deployment by its ID for an app, or a deployment slot. + # Stop a continuous web job for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] Deployment ID. + # @param name [String] Site name. + # @param web_job_name [String] Name of Web Job. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_deployment_async(resource_group_name, name, id, custom_headers = nil) + def stop_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? + fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -4709,39 +4859,29 @@ def get_deployment_async(resource_group_name, name, id, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}/stop' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Deployment.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -4750,64 +4890,56 @@ def get_deployment_async(resource_group_name, name, id, custom_headers = nil) end # - # Create a deployment for an app, or a deployment slot. + # List deployments for an app, or a deployment slot. # - # Create a deployment for an app, or a deployment slot. + # List deployments for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. - # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Deployment] operation results. + # @return [Array] operation results. # - def create_deployment(resource_group_name, name, id, deployment, custom_headers = nil) - response = create_deployment_async(resource_group_name, name, id, deployment, custom_headers).value! - response.body unless response.nil? + def list_deployments(resource_group_name, name, custom_headers = nil) + first_page = list_deployments_as_lazy(resource_group_name, name, custom_headers) + first_page.get_all_items end # - # Create a deployment for an app, or a deployment slot. + # List deployments for an app, or a deployment slot. # - # Create a deployment for an app, or a deployment slot. + # List deployments for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. - # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_deployment_with_http_info(resource_group_name, name, id, deployment, custom_headers = nil) - create_deployment_async(resource_group_name, name, id, deployment, custom_headers).value! + def list_deployments_with_http_info(resource_group_name, name, custom_headers = nil) + list_deployments_async(resource_group_name, name, custom_headers).value! end # - # Create a deployment for an app, or a deployment slot. + # List deployments for an app, or a deployment slot. # - # Create a deployment for an app, or a deployment slot. + # List deployments for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. - # @param deployment [Deployment] Deployment details. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_deployment_async(resource_group_name, name, id, deployment, custom_headers = nil) + def list_deployments_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? - fail ArgumentError, 'deployment is nil' if deployment.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -4817,27 +4949,18 @@ def create_deployment_async(resource_group_name, name, id, deployment, custom_he # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Deployment.mapper() - request_content = @client.serialize(request_mapper, deployment) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -4853,7 +4976,7 @@ def create_deployment_async(resource_group_name, name, id, deployment, custom_he if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Deployment.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::DeploymentCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -4867,9 +4990,9 @@ def create_deployment_async(resource_group_name, name, id, deployment, custom_he end # - # Delete a deployment by its ID for an app, or a deployment slot. + # Get a deployment by its ID for an app, or a deployment slot. # - # Delete a deployment by its ID for an app, or a deployment slot. + # Get a deployment by its ID for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. @@ -4878,16 +5001,17 @@ def create_deployment_async(resource_group_name, name, id, deployment, custom_he # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [Deployment] operation results. # - def delete_deployment(resource_group_name, name, id, custom_headers = nil) - response = delete_deployment_async(resource_group_name, name, id, custom_headers).value! - nil + def get_deployment(resource_group_name, name, id, custom_headers = nil) + response = get_deployment_async(resource_group_name, name, id, custom_headers).value! + response.body unless response.nil? end # - # Delete a deployment by its ID for an app, or a deployment slot. + # Get a deployment by its ID for an app, or a deployment slot. # - # Delete a deployment by its ID for an app, or a deployment slot. + # Get a deployment by its ID for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. @@ -4898,14 +5022,14 @@ def delete_deployment(resource_group_name, name, id, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_deployment_with_http_info(resource_group_name, name, id, custom_headers = nil) - delete_deployment_async(resource_group_name, name, id, custom_headers).value! + def get_deployment_with_http_info(resource_group_name, name, id, custom_headers = nil) + get_deployment_async(resource_group_name, name, id, custom_headers).value! end # - # Delete a deployment by its ID for an app, or a deployment slot. + # Get a deployment by its ID for an app, or a deployment slot. # - # Delete a deployment by its ID for an app, or a deployment slot. + # Get a deployment by its ID for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. @@ -4916,7 +5040,7 @@ def delete_deployment_with_http_info(resource_group_name, name, id, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_deployment_async(resource_group_name, name, id, custom_headers = nil) + def get_deployment_async(resource_group_name, name, id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'id is nil' if id.nil? @@ -4940,18 +5064,28 @@ def delete_deployment_async(resource_group_name, name, id, custom_headers = nil) headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Deployment.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -4960,66 +5094,64 @@ def delete_deployment_async(resource_group_name, name, id, custom_headers = nil) end # - # List deployment log for specific deployment for an app, or a deployment slot. + # Create a deployment for an app, or a deployment slot. # - # List deployment log for specific deployment for an app, or a deployment slot. + # Create a deployment for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] The ID of a specific deployment. This is the value of the - # name property in the JSON response from "GET - # /api/sites/{siteName}/deployments". + # @param id [String] ID of an existing deployment. + # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Deployment] operation results. # - def list_deployment_log(resource_group_name, name, id, custom_headers = nil) - response = list_deployment_log_async(resource_group_name, name, id, custom_headers).value! + def create_deployment(resource_group_name, name, id, deployment, custom_headers = nil) + response = create_deployment_async(resource_group_name, name, id, deployment, custom_headers).value! response.body unless response.nil? end # - # List deployment log for specific deployment for an app, or a deployment slot. + # Create a deployment for an app, or a deployment slot. # - # List deployment log for specific deployment for an app, or a deployment slot. + # Create a deployment for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] The ID of a specific deployment. This is the value of the - # name property in the JSON response from "GET - # /api/sites/{siteName}/deployments". + # @param id [String] ID of an existing deployment. + # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deployment_log_with_http_info(resource_group_name, name, id, custom_headers = nil) - list_deployment_log_async(resource_group_name, name, id, custom_headers).value! + def create_deployment_with_http_info(resource_group_name, name, id, deployment, custom_headers = nil) + create_deployment_async(resource_group_name, name, id, deployment, custom_headers).value! end # - # List deployment log for specific deployment for an app, or a deployment slot. + # Create a deployment for an app, or a deployment slot. # - # List deployment log for specific deployment for an app, or a deployment slot. + # Create a deployment for an app, or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] The ID of a specific deployment. This is the value of the - # name property in the JSON response from "GET - # /api/sites/{siteName}/deployments". + # @param id [String] ID of an existing deployment. + # @param deployment [Deployment] Deployment details. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deployment_log_async(resource_group_name, name, id, custom_headers = nil) + def create_deployment_async(resource_group_name, name, id, deployment, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'id is nil' if id.nil? + fail ArgumentError, 'deployment is nil' if deployment.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -5029,7 +5161,15 @@ def list_deployment_log_async(resource_group_name, name, id, custom_headers = ni # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}/log' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Deployment.mapper() + request_content = @client.serialize(request_mapper, deployment) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}' request_url = @base_url || @client.base_url @@ -5037,10 +5177,214 @@ def list_deployment_log_async(resource_group_name, name, id, custom_headers = ni middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Deployment.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Delete a deployment by its ID for an app, or a deployment slot. + # + # Delete a deployment by its ID for an app, or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param id [String] Deployment ID. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete_deployment(resource_group_name, name, id, custom_headers = nil) + response = delete_deployment_async(resource_group_name, name, id, custom_headers).value! + nil + end + + # + # Delete a deployment by its ID for an app, or a deployment slot. + # + # Delete a deployment by its ID for an app, or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param id [String] Deployment ID. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_deployment_with_http_info(resource_group_name, name, id, custom_headers = nil) + delete_deployment_async(resource_group_name, name, id, custom_headers).value! + end + + # + # Delete a deployment by its ID for an app, or a deployment slot. + # + # Delete a deployment by its ID for an app, or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param id [String] Deployment ID. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_deployment_async(resource_group_name, name, id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'id is nil' if id.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # List deployment log for specific deployment for an app, or a deployment slot. + # + # List deployment log for specific deployment for an app, or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param id [String] The ID of a specific deployment. This is the value of the + # name property in the JSON response from "GET + # /api/sites/{siteName}/deployments". + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Deployment] operation results. + # + def list_deployment_log(resource_group_name, name, id, custom_headers = nil) + response = list_deployment_log_async(resource_group_name, name, id, custom_headers).value! + response.body unless response.nil? + end + + # + # List deployment log for specific deployment for an app, or a deployment slot. + # + # List deployment log for specific deployment for an app, or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param id [String] The ID of a specific deployment. This is the value of the + # name property in the JSON response from "GET + # /api/sites/{siteName}/deployments". + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_deployment_log_with_http_info(resource_group_name, name, id, custom_headers = nil) + list_deployment_log_async(resource_group_name, name, id, custom_headers).value! + end + + # + # List deployment log for specific deployment for an app, or a deployment slot. + # + # List deployment log for specific deployment for an app, or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param id [String] The ID of a specific deployment. This is the value of the + # name property in the JSON response from "GET + # /api/sites/{siteName}/deployments". + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_deployment_log_async(resource_group_name, name, id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'id is nil' if id.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}/log' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -8788,7 +9132,7 @@ def delete_instance_process_async(resource_group_name, name, process_id, instanc # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Object] operation results. + # @return [NOT_IMPLEMENTED] operation results. # def get_instance_process_dump(resource_group_name, name, process_id, instance_id, custom_headers = nil) response = get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers).value! @@ -8874,6 +9218,22 @@ def get_instance_process_dump_async(resource_group_name, name, process_id, insta end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'Stream' + } + } + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -9016,14 +9376,13 @@ def list_instance_process_modules_async(resource_group_name, name, process_id, i # @param instance_id [String] ID of a specific scaled-out instance. This is the # value of the name property in the JSON response from "GET # api/sites/{siteName}/instances". - # @param base_address1 [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ProcessModuleInfo] operation results. # - def get_instance_process_module(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers = nil) - response = get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers).value! + def get_instance_process_module(resource_group_name, name, process_id, base_address, instance_id, custom_headers = nil) + response = get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, custom_headers).value! response.body unless response.nil? end @@ -9042,14 +9401,13 @@ def get_instance_process_module(resource_group_name, name, process_id, base_addr # @param instance_id [String] ID of a specific scaled-out instance. This is the # value of the name property in the JSON response from "GET # api/sites/{siteName}/instances". - # @param base_address1 [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_module_with_http_info(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers = nil) - get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers).value! + def get_instance_process_module_with_http_info(resource_group_name, name, process_id, base_address, instance_id, custom_headers = nil) + get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, custom_headers).value! end # @@ -9067,19 +9425,17 @@ def get_instance_process_module_with_http_info(resource_group_name, name, proces # @param instance_id [String] ID of a specific scaled-out instance. This is the # value of the name property in the JSON response from "GET # api/sites/{siteName}/instances". - # @param base_address1 [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers = nil) + def get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'process_id is nil' if process_id.nil? fail ArgumentError, 'base_address is nil' if base_address.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? - fail ArgumentError, 'base_address1 is nil' if base_address1.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -9089,133 +9445,133 @@ def get_instance_process_module_async(resource_group_name, name, process_id, bas # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/modules/{base_address}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'instanceId' => instance_id,'base_address' => base_address1,'subscriptionId' => @client.subscription_id}, - query_params: {'baseAddress' => base_address,'api-version' => @client.api_version}, - headers: request_headers.merge(custom_headers || {}), - base_url: request_url - } - promise = @client.make_request_async(:get, path_template, options) - - promise = promise.then do |result| - http_response = result.response - status_code = http_response.status - response_content = http_response.body - unless status_code == 200 || status_code == 404 - error_model = JSON.load(response_content) - fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) - end - - result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ProcessModuleInfo.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end - - result - end - - promise.execute - end - - # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. - # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Site name. - # @param process_id [String] PID. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances". - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @return [Array] operation results. - # - def list_instance_process_threads(resource_group_name, name, process_id, instance_id, custom_headers = nil) - first_page = list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers) - first_page.get_all_items - end - - # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. - # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Site name. - # @param process_id [String] PID. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances". - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @return [MsRestAzure::AzureOperationResponse] HTTP response information. - # - def list_instance_process_threads_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers = nil) - list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers).value! - end - - # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. - # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Site name. - # @param process_id [String] PID. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances". - # @param [Hash{String => String}] A hash of custom headers that will be added - # to the HTTP request. - # - # @return [Concurrent::Promise] Promise object which holds the HTTP response. - # - def list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'process_id is nil' if process_id.nil? - fail ArgumentError, 'instance_id is nil' if instance_id.nil? - fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - - - request_headers = {} - - # Set Headers - request_headers['x-ms-client-request-id'] = SecureRandom.uuid - request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/threads' - - request_url = @base_url || @client.base_url - - options = { - middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'baseAddress' => base_address,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ProcessModuleInfo.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Site name. + # @param process_id [String] PID. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances". + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_instance_process_threads(resource_group_name, name, process_id, instance_id, custom_headers = nil) + first_page = list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers) + first_page.get_all_items + end + + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Site name. + # @param process_id [String] PID. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances". + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_instance_process_threads_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers = nil) + list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + end + + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Site name. + # @param process_id [String] PID. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances". + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'process_id is nil' if process_id.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/threads' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -10416,7 +10772,7 @@ def generate_new_site_publishing_password_async(resource_group_name, name, custo http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -11388,7 +11744,7 @@ def delete_process_async(resource_group_name, name, process_id, custom_headers = # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Object] operation results. + # @return [NOT_IMPLEMENTED] operation results. # def get_process_dump(resource_group_name, name, process_id, custom_headers = nil) response = get_process_dump_async(resource_group_name, name, process_id, custom_headers).value! @@ -11467,6 +11823,22 @@ def get_process_dump_async(resource_group_name, name, process_id, custom_headers end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'Stream' + } + } + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -11596,14 +11968,13 @@ def list_process_modules_async(resource_group_name, name, process_id, custom_hea # @param name [String] Site name. # @param process_id [String] PID. # @param base_address [String] Module base address. - # @param base_address1 [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ProcessModuleInfo] operation results. # - def get_process_module(resource_group_name, name, process_id, base_address, base_address1, custom_headers = nil) - response = get_process_module_async(resource_group_name, name, process_id, base_address, base_address1, custom_headers).value! + def get_process_module(resource_group_name, name, process_id, base_address, custom_headers = nil) + response = get_process_module_async(resource_group_name, name, process_id, base_address, custom_headers).value! response.body unless response.nil? end @@ -11619,14 +11990,13 @@ def get_process_module(resource_group_name, name, process_id, base_address, base # @param name [String] Site name. # @param process_id [String] PID. # @param base_address [String] Module base address. - # @param base_address1 [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_module_with_http_info(resource_group_name, name, process_id, base_address, base_address1, custom_headers = nil) - get_process_module_async(resource_group_name, name, process_id, base_address, base_address1, custom_headers).value! + def get_process_module_with_http_info(resource_group_name, name, process_id, base_address, custom_headers = nil) + get_process_module_async(resource_group_name, name, process_id, base_address, custom_headers).value! end # @@ -11641,18 +12011,16 @@ def get_process_module_with_http_info(resource_group_name, name, process_id, bas # @param name [String] Site name. # @param process_id [String] PID. # @param base_address [String] Module base address. - # @param base_address1 [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_module_async(resource_group_name, name, process_id, base_address, base_address1, custom_headers = nil) + def get_process_module_async(resource_group_name, name, process_id, base_address, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'process_id is nil' if process_id.nil? fail ArgumentError, 'base_address is nil' if base_address.nil? - fail ArgumentError, 'base_address1 is nil' if base_address1.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -11662,14 +12030,14 @@ def get_process_module_async(resource_group_name, name, process_id, base_address # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/modules/{base_address}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/modules/{baseAddress}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'base_address' => base_address1,'subscriptionId' => @client.subscription_id}, - query_params: {'baseAddress' => base_address,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'baseAddress' => base_address,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -12835,14 +13203,13 @@ def list_site_extensions_async(resource_group_name, name, custom_headers = nil) # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [SiteExtensionInfo] operation results. # - def get_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - response = get_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def get_site_extension(resource_group_name, name, site_extension_id, custom_headers = nil) + response = get_site_extension_async(resource_group_name, name, site_extension_id, custom_headers).value! response.body unless response.nil? end @@ -12857,14 +13224,13 @@ def get_site_extension(resource_group_name, name, site_extension_id, extension_n # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_site_extension_with_http_info(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - get_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def get_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers = nil) + get_site_extension_async(resource_group_name, name, site_extension_id, custom_headers).value! end # @@ -12878,17 +13244,15 @@ def get_site_extension_with_http_info(resource_group_name, name, site_extension_ # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) + def get_site_extension_async(resource_group_name, name, site_extension_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'site_extension_id is nil' if site_extension_id.nil? - fail ArgumentError, 'extension_name is nil' if extension_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -12898,14 +13262,14 @@ def get_site_extension_async(resource_group_name, name, site_extension_id, exten # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{extensionName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'extensionName' => extension_name,'subscriptionId' => @client.subscription_id}, - query_params: {'siteExtensionId' => site_extension_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'siteExtensionId' => site_extension_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -12947,14 +13311,13 @@ def get_site_extension_async(resource_group_name, name, site_extension_id, exten # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [SiteExtensionInfo] operation results. # - def install_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - response = install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def install_site_extension(resource_group_name, name, site_extension_id, custom_headers = nil) + response = install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers).value! response.body unless response.nil? end @@ -12963,16 +13326,15 @@ def install_site_extension(resource_group_name, name, site_extension_id, extensi # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Concurrent::Promise] promise which provides async access to http # response. # - def install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) + def install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers = nil) # Send request - promise = begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers) + promise = begin_install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -12997,13 +13359,12 @@ def install_site_extension_async(resource_group_name, name, site_extension_id, e # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - response = delete_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def delete_site_extension(resource_group_name, name, site_extension_id, custom_headers = nil) + response = delete_site_extension_async(resource_group_name, name, site_extension_id, custom_headers).value! nil end @@ -13016,14 +13377,13 @@ def delete_site_extension(resource_group_name, name, site_extension_id, extensio # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_site_extension_with_http_info(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - delete_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def delete_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers = nil) + delete_site_extension_async(resource_group_name, name, site_extension_id, custom_headers).value! end # @@ -13035,17 +13395,15 @@ def delete_site_extension_with_http_info(resource_group_name, name, site_extensi # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) + def delete_site_extension_async(resource_group_name, name, site_extension_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'site_extension_id is nil' if site_extension_id.nil? - fail ArgumentError, 'extension_name is nil' if extension_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -13055,14 +13413,14 @@ def delete_site_extension_async(resource_group_name, name, site_extension_id, ex # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{extensionName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'extensionName' => extension_name,'subscriptionId' => @client.subscription_id}, - query_params: {'siteExtensionId' => site_extension_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'siteExtensionId' => site_extension_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -13269,7 +13627,7 @@ def get_slot_async(resource_group_name, name, slot, custom_headers = nil) http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -13466,7 +13824,7 @@ def delete_slot_async(resource_group_name, name, slot, delete_metrics = nil, del http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 || status_code == 204 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -13479,6 +13837,175 @@ def delete_slot_async(resource_group_name, name, slot, delete_metrics = nil, del promise.execute end + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Unique name of the app to create or update. To create or + # update a deployment slot, use the {slot} parameter. + # @param site_envelope [SitePatchResource] A JSON representation of the app + # properties. See example. + # @param slot [String] Name of the deployment slot to create or update. By + # default, this API attempts to create or modify the production slot. + # @param skip_dns_registration [Boolean] If true web app hostname is not + # registered with DNS on creation. This parameter is + # only used for app creation. + # @param skip_custom_domain_verification [Boolean] If true, custom (non + # *.azurewebsites.net) domains associated with web app are not verified. + # @param force_dns_registration [Boolean] If true, web app hostname is force + # registered with DNS. + # @param ttl_in_seconds [String] Time to live in seconds for web app's default + # domain name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Site] operation results. + # + def update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + response = update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Unique name of the app to create or update. To create or + # update a deployment slot, use the {slot} parameter. + # @param site_envelope [SitePatchResource] A JSON representation of the app + # properties. See example. + # @param slot [String] Name of the deployment slot to create or update. By + # default, this API attempts to create or modify the production slot. + # @param skip_dns_registration [Boolean] If true web app hostname is not + # registered with DNS on creation. This parameter is + # only used for app creation. + # @param skip_custom_domain_verification [Boolean] If true, custom (non + # *.azurewebsites.net) domains associated with web app are not verified. + # @param force_dns_registration [Boolean] If true, web app hostname is force + # registered with DNS. + # @param ttl_in_seconds [String] Time to live in seconds for web app's default + # domain name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_slot_with_http_info(resource_group_name, name, site_envelope, slot, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + end + + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Unique name of the app to create or update. To create or + # update a deployment slot, use the {slot} parameter. + # @param site_envelope [SitePatchResource] A JSON representation of the app + # properties. See example. + # @param slot [String] Name of the deployment slot to create or update. By + # default, this API attempts to create or modify the production slot. + # @param skip_dns_registration [Boolean] If true web app hostname is not + # registered with DNS on creation. This parameter is + # only used for app creation. + # @param skip_custom_domain_verification [Boolean] If true, custom (non + # *.azurewebsites.net) domains associated with web app are not verified. + # @param force_dns_registration [Boolean] If true, web app hostname is force + # registered with DNS. + # @param ttl_in_seconds [String] Time to live in seconds for web app's default + # domain name. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'site_envelope is nil' if site_envelope.nil? + fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SitePatchResource.mapper() + request_content = @client.serialize(request_mapper, site_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'skipDnsRegistration' => skip_dns_registration,'skipCustomDomainVerification' => skip_custom_domain_verification,'forceDnsRegistration' => force_dns_registration,'ttlInSeconds' => ttl_in_seconds,'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Site.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Site.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Analyze a custom hostname. # @@ -16564,69 +17091,412 @@ def create_or_update_configuration_slot_async(resource_group_name, name, site_co end # - # Updates the configuration of an app. + # Updates the configuration of an app. + # + # Updates the configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param site_config [SiteConfigResource] JSON representation of a SiteConfig + # object. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update configuration for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SiteConfigResource] operation results. + # + def update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers = nil) + response = update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers).value! + response.body unless response.nil? + end + + # + # Updates the configuration of an app. + # + # Updates the configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param site_config [SiteConfigResource] JSON representation of a SiteConfig + # object. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update configuration for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers = nil) + update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers).value! + end + + # + # Updates the configuration of an app. + # + # Updates the configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param site_config [SiteConfigResource] JSON representation of a SiteConfig + # object. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update configuration for the production slot. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'site_config is nil' if site_config.nil? + fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResource.mapper() + request_content = @client.serialize(request_mapper, site_config) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_configuration_snapshot_info_slot(resource_group_name, name, slot, custom_headers = nil) + first_page = list_configuration_snapshot_info_slot_as_lazy(resource_group_name, name, slot, custom_headers) + first_page.get_all_items + end + + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_configuration_snapshot_info_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) + list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers).value! + end + + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigurationSnapshotInfoCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets a snapshot of the configuration of an app at a previous point in time. + # + # Gets a snapshot of the configuration of an app at a previous point in time. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param snapshot_id [String] The ID of the snapshot to read. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SiteConfigResource] operation results. + # + def get_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers = nil) + response = get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets a snapshot of the configuration of an app at a previous point in time. + # + # Gets a snapshot of the configuration of an app at a previous point in time. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param snapshot_id [String] The ID of the snapshot to read. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers = nil) + get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! + end + + # + # Gets a snapshot of the configuration of an app at a previous point in time. + # + # Gets a snapshot of the configuration of an app at a previous point in time. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param snapshot_id [String] The ID of the snapshot to read. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'snapshot_id is nil' if snapshot_id.nil? + fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'snapshotId' => snapshot_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Reverts the configuration of an app to a previous snapshot. # - # Updates the configuration of an app. + # Reverts the configuration of an app to a previous snapshot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_config [SiteConfigResource] JSON representation of a SiteConfig - # object. See example. + # @param snapshot_id [String] The ID of the snapshot to read. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update configuration for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteConfigResource] operation results. # - def update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers = nil) - response = update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers).value! - response.body unless response.nil? + def recover_site_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers = nil) + response = recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! + nil end # - # Updates the configuration of an app. + # Reverts the configuration of an app to a previous snapshot. # - # Updates the configuration of an app. + # Reverts the configuration of an app to a previous snapshot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_config [SiteConfigResource] JSON representation of a SiteConfig - # object. See example. + # @param snapshot_id [String] The ID of the snapshot to read. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update configuration for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers = nil) - update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers).value! + def recover_site_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers = nil) + recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! end # - # Updates the configuration of an app. + # Reverts the configuration of an app to a previous snapshot. # - # Updates the configuration of an app. + # Reverts the configuration of an app to a previous snapshot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_config [SiteConfigResource] JSON representation of a SiteConfig - # object. See example. + # @param snapshot_id [String] The ID of the snapshot to read. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update configuration for the production slot. + # the API will return configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers = nil) + def recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'site_config is nil' if site_config.nil? + fail ArgumentError, 'snapshot_id is nil' if snapshot_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -16637,48 +17507,29 @@ def update_configuration_slot_async(resource_group_name, name, site_config, slot # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResource.mapper() - request_content = @client.serialize(request_mapper, site_config) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}/recover' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'snapshotId' => snapshot_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:patch, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResource.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -16687,66 +17538,60 @@ def update_configuration_slot_async(resource_group_name, name, site_config, slot end # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Gets the last lines of docker logs for the given site # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Gets the last lines of docker logs for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # @param name [String] Name of web app. + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [NOT_IMPLEMENTED] operation results. # - def list_configuration_snapshot_info_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_web_site_container_logs_slot(resource_group_name, name, slot, custom_headers = nil) + response = get_web_site_container_logs_slot_async(resource_group_name, name, slot, custom_headers).value! response.body unless response.nil? end # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Gets the last lines of docker logs for the given site # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Gets the last lines of docker logs for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # @param name [String] Name of web app. + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_configuration_snapshot_info_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_web_site_container_logs_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) + get_web_site_container_logs_slot_async(resource_group_name, name, slot, custom_headers).value! end # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Gets the last lines of docker logs for the given site # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Gets the last lines of docker logs for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # @param name [String] Name of web app. + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_web_site_container_logs_slot_async(resource_group_name, name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -16759,7 +17604,7 @@ def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/containerlogs' request_url = @base_url || @client.base_url @@ -16770,13 +17615,13 @@ def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 204 || status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -16790,15 +17635,7 @@ def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, required: false, serialized_name: 'parsed_response', type: { - name: 'Sequence', - element: { - required: false, - serialized_name: 'SiteConfigurationSnapshotInfoElementType', - type: { - name: 'Composite', - class_name: 'SiteConfigurationSnapshotInfo' - } - } + name: 'Stream' } } result.body = @client.deserialize(result_mapper, parsed_response) @@ -16814,66 +17651,62 @@ def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, end # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Gets the ZIP archived docker log files for the given site # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Gets the ZIP archived docker log files for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # @param name [String] Name of web app. + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteConfigResource] operation results. + # @return [NOT_IMPLEMENTED] operation results. # - def get_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers = nil) - response = get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! + def get_container_logs_zip_slot(resource_group_name, name, slot, custom_headers = nil) + response = get_container_logs_zip_slot_async(resource_group_name, name, slot, custom_headers).value! response.body unless response.nil? end # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Gets the ZIP archived docker log files for the given site # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Gets the ZIP archived docker log files for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # @param name [String] Name of web app. + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers = nil) - get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! + def get_container_logs_zip_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) + get_container_logs_zip_slot_async(resource_group_name, name, slot, custom_headers).value! end # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Gets the ZIP archived docker log files for the given site # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Gets the ZIP archived docker log files for the given site # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # @param name [String] Name of web app. + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers = nil) + def get_container_logs_zip_slot_async(resource_group_name, name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'snapshot_id is nil' if snapshot_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -16884,24 +17717,24 @@ def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/containerlogs/zip/download' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'snapshotId' => snapshot_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 204 || status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -16911,7 +17744,13 @@ def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResource.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'Stream' + } + } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -16924,106 +17763,6 @@ def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id promise.execute end - # - # Reverts the configuration of an app to a previous snapshot. - # - # Reverts the configuration of an app to a previous snapshot. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # - def recover_site_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers = nil) - response = recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! - nil - end - - # - # Reverts the configuration of an app to a previous snapshot. - # - # Reverts the configuration of an app to a previous snapshot. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @return [MsRestAzure::AzureOperationResponse] HTTP response information. - # - def recover_site_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers = nil) - recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! - end - - # - # Reverts the configuration of an app to a previous snapshot. - # - # Reverts the configuration of an app to a previous snapshot. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. - # @param [Hash{String => String}] A hash of custom headers that will be added - # to the HTTP request. - # - # @return [Concurrent::Promise] Promise object which holds the HTTP response. - # - def recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'snapshot_id is nil' if snapshot_id.nil? - fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - - - request_headers = {} - - # Set Headers - request_headers['x-ms-client-request-id'] = SecureRandom.uuid - request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}/recover' - - request_url = @base_url || @client.base_url - - options = { - middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'snapshotId' => snapshot_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => @client.api_version}, - headers: request_headers.merge(custom_headers || {}), - base_url: request_url - } - promise = @client.make_request_async(:post, path_template, options) - - promise = promise.then do |result| - http_response = result.response - status_code = http_response.status - response_content = http_response.body - unless status_code == 204 - error_model = JSON.load(response_content) - fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) - end - - result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - - result - end - - promise.execute - end - # # List continuous web jobs for an app, or a deployment slot. # @@ -17139,17 +17878,16 @@ def list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_ # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ContinuousWebJob] operation results. # - def get_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def get_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers = nil) + response = get_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! response.body unless response.nil? end @@ -17161,17 +17899,16 @@ def get_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def get_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers = nil) + get_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! end # @@ -17182,21 +17919,19 @@ def get_continuous_web_job_slot_with_http_info(resource_group_name, name, web_jo # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def get_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -17212,8 +17947,8 @@ def get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slo options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -17254,16 +17989,15 @@ def get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slo # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def delete_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers = nil) + response = delete_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! nil end @@ -17275,17 +18009,16 @@ def delete_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def delete_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers = nil) + delete_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! end # @@ -17296,21 +18029,19 @@ def delete_continuous_web_job_slot_with_http_info(resource_group_name, name, web # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def delete_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -17326,8 +18057,8 @@ def delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -17358,16 +18089,15 @@ def delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def start_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def start_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers = nil) + response = start_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! nil end @@ -17379,17 +18109,16 @@ def start_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, w # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def start_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def start_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers = nil) + start_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! end # @@ -17400,21 +18129,19 @@ def start_continuous_web_job_slot_with_http_info(resource_group_name, name, web_ # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def start_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -17430,8 +18157,8 @@ def start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, s options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -17462,16 +18189,15 @@ def start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, s # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def stop_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def stop_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers = nil) + response = stop_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! nil end @@ -17483,17 +18209,16 @@ def stop_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, we # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def stop_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers = nil) + stop_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! end # @@ -17504,21 +18229,19 @@ def stop_continuous_web_job_slot_with_http_info(resource_group_name, name, web_j # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def stop_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -17534,8 +18257,8 @@ def stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, sl options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -22063,7 +22786,7 @@ def delete_instance_process_slot_async(resource_group_name, name, process_id, sl # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Object] operation results. + # @return [NOT_IMPLEMENTED] operation results. # def get_instance_process_dump_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) response = get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! @@ -22154,6 +22877,22 @@ def get_instance_process_dump_slot_async(resource_group_name, name, process_id, end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'Stream' + } + } + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -22305,14 +23044,13 @@ def list_instance_process_modules_slot_async(resource_group_name, name, process_ # @param instance_id [String] ID of a specific scaled-out instance. This is the # value of the name property in the JSON response from "GET # api/sites/{siteName}/instances". - # @param base_address1 [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ProcessModuleInfo] operation results. # - def get_instance_process_module_slot(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers = nil) - response = get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers).value! + def get_instance_process_module_slot(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers = nil) + response = get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers).value! response.body unless response.nil? end @@ -22333,14 +23071,13 @@ def get_instance_process_module_slot(resource_group_name, name, process_id, base # @param instance_id [String] ID of a specific scaled-out instance. This is the # value of the name property in the JSON response from "GET # api/sites/{siteName}/instances". - # @param base_address1 [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers = nil) - get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers).value! + def get_instance_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers = nil) + get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers).value! end # @@ -22360,20 +23097,18 @@ def get_instance_process_module_slot_with_http_info(resource_group_name, name, p # @param instance_id [String] ID of a specific scaled-out instance. This is the # value of the name property in the JSON response from "GET # api/sites/{siteName}/instances". - # @param base_address1 [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers = nil) + def get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'process_id is nil' if process_id.nil? fail ArgumentError, 'base_address is nil' if base_address.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? - fail ArgumentError, 'base_address1 is nil' if base_address1.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -22383,14 +23118,14 @@ def get_instance_process_module_slot_async(resource_group_name, name, process_id # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/modules/{base_address}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'slot' => slot,'instanceId' => instance_id,'base_address' => base_address1,'subscriptionId' => @client.subscription_id}, - query_params: {'baseAddress' => base_address,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'baseAddress' => base_address,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -23676,7 +24411,7 @@ def generate_new_site_publishing_password_slot_async(resource_group_name, name, http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -24713,7 +25448,7 @@ def delete_process_slot_async(resource_group_name, name, process_id, slot, custo # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Object] operation results. + # @return [NOT_IMPLEMENTED] operation results. # def get_process_dump_slot(resource_group_name, name, process_id, slot, custom_headers = nil) response = get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! @@ -24797,6 +25532,22 @@ def get_process_dump_slot_async(resource_group_name, name, process_id, slot, cus end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'Stream' + } + } + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -24935,14 +25686,13 @@ def list_process_modules_slot_async(resource_group_name, name, process_id, slot, # @param base_address [String] Module base address. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API returns deployments for the production slot. - # @param base_address1 [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ProcessModuleInfo] operation results. # - def get_process_module_slot(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers = nil) - response = get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers).value! + def get_process_module_slot(resource_group_name, name, process_id, base_address, slot, custom_headers = nil) + response = get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, custom_headers).value! response.body unless response.nil? end @@ -24960,14 +25710,13 @@ def get_process_module_slot(resource_group_name, name, process_id, base_address, # @param base_address [String] Module base address. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API returns deployments for the production slot. - # @param base_address1 [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers = nil) - get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers).value! + def get_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, custom_headers = nil) + get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, custom_headers).value! end # @@ -24984,19 +25733,17 @@ def get_process_module_slot_with_http_info(resource_group_name, name, process_id # @param base_address [String] Module base address. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API returns deployments for the production slot. - # @param base_address1 [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers = nil) + def get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'process_id is nil' if process_id.nil? fail ArgumentError, 'base_address is nil' if base_address.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'base_address1 is nil' if base_address1.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -25006,14 +25753,14 @@ def get_process_module_slot_async(resource_group_name, name, process_id, base_ad # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/modules/{base_address}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/modules/{baseAddress}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'slot' => slot,'base_address' => base_address1,'subscriptionId' => @client.subscription_id}, - query_params: {'baseAddress' => base_address,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'processId' => process_id,'baseAddress' => base_address,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -26255,14 +27002,13 @@ def list_site_extensions_slot_async(resource_group_name, name, slot, custom_head # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [SiteExtensionInfo] operation results. # - def get_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - response = get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def get_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers = nil) + response = get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers).value! response.body unless response.nil? end @@ -26279,14 +27025,13 @@ def get_site_extension_slot(resource_group_name, name, site_extension_id, slot, # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def get_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers = nil) + get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers).value! end # @@ -26302,18 +27047,16 @@ def get_site_extension_slot_with_http_info(resource_group_name, name, site_exten # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) + def get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'site_extension_id is nil' if site_extension_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'extension_name is nil' if extension_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -26323,14 +27066,14 @@ def get_site_extension_slot_async(resource_group_name, name, site_extension_id, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{extensionName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'extensionName' => extension_name,'subscriptionId' => @client.subscription_id}, - query_params: {'siteExtensionId' => site_extension_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'siteExtensionId' => site_extension_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -26374,14 +27117,13 @@ def get_site_extension_slot_async(resource_group_name, name, site_extension_id, # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [SiteExtensionInfo] operation results. # - def install_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - response = install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def install_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers = nil) + response = install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers).value! response.body unless response.nil? end @@ -26392,16 +27134,15 @@ def install_site_extension_slot(resource_group_name, name, site_extension_id, sl # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Concurrent::Promise] promise which provides async access to http # response. # - def install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) + def install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers = nil) # Send request - promise = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers) + promise = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -26428,13 +27169,12 @@ def install_site_extension_slot_async(resource_group_name, name, site_extension_ # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - response = delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def delete_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers = nil) + response = delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers).value! nil end @@ -26449,14 +27189,13 @@ def delete_site_extension_slot(resource_group_name, name, site_extension_id, slo # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def delete_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers = nil) + delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers).value! end # @@ -26470,18 +27209,16 @@ def delete_site_extension_slot_with_http_info(resource_group_name, name, site_ex # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) + def delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'site_extension_id is nil' if site_extension_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'extension_name is nil' if extension_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -26491,14 +27228,14 @@ def delete_site_extension_slot_async(resource_group_name, name, site_extension_i # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{extensionName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'extensionName' => extension_name,'subscriptionId' => @client.subscription_id}, - query_params: {'siteExtensionId' => site_extension_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'siteExtensionId' => site_extension_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -27055,6 +27792,139 @@ def delete_source_control_slot_async(resource_group_name, name, slot, custom_hea promise.execute end + # + # Updates the source control configuration of an app. + # + # Updates the source control configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param site_source_control [SiteSourceControl] JSON representation of a + # SiteSourceControl object. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the source control configuration for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SiteSourceControl] operation results. + # + def update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers = nil) + response = update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers).value! + response.body unless response.nil? + end + + # + # Updates the source control configuration of an app. + # + # Updates the source control configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param site_source_control [SiteSourceControl] JSON representation of a + # SiteSourceControl object. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the source control configuration for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_source_control_slot_with_http_info(resource_group_name, name, site_source_control, slot, custom_headers = nil) + update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers).value! + end + + # + # Updates the source control configuration of an app. + # + # Updates the source control configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param site_source_control [SiteSourceControl] JSON representation of a + # SiteSourceControl object. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the source control configuration for the production slot. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'site_source_control is nil' if site_source_control.nil? + fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() + request_content = @client.serialize(request_mapper, site_source_control) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 201 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Starts an app (or deployment slot, if specified). # @@ -27554,17 +28424,16 @@ def list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_h # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [TriggeredWebJob] operation results. # - def get_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def get_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers = nil) + response = get_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! response.body unless response.nil? end @@ -27576,17 +28445,16 @@ def get_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_ # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def get_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers = nil) + get_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! end # @@ -27597,21 +28465,19 @@ def get_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def get_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -27627,8 +28493,8 @@ def get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -27669,16 +28535,15 @@ def get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def delete_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers = nil) + response = delete_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! nil end @@ -27690,17 +28555,16 @@ def delete_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, w # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def delete_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers = nil) + delete_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! end # @@ -27711,21 +28575,19 @@ def delete_triggered_web_job_slot_with_http_info(resource_group_name, name, web_ # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def delete_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -27741,8 +28603,8 @@ def delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, s options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -27773,17 +28635,16 @@ def delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, s # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_triggered_web_job_history_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - first_page = list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers) + def list_triggered_web_job_history_slot(resource_group_name, name, web_job_name, slot, custom_headers = nil) + first_page = list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_name, slot, custom_headers) first_page.get_all_items end @@ -27795,17 +28656,16 @@ def list_triggered_web_job_history_slot(resource_group_name, name, web_job_id, s # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def list_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers = nil) + list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! end # @@ -27816,21 +28676,19 @@ def list_triggered_web_job_history_slot_with_http_info(resource_group_name, name # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -27846,8 +28704,8 @@ def list_triggered_web_job_history_slot_async(resource_group_name, name, web_job options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -27890,18 +28748,17 @@ def list_triggered_web_job_history_slot_async(resource_group_name, name, web_job # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param id [String] History ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [TriggeredJobHistory] operation results. # - def get_triggered_web_job_history_slot(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers = nil) - response = get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers).value! + def get_triggered_web_job_history_slot(resource_group_name, name, web_job_name, id, slot, custom_headers = nil) + response = get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, id, slot, custom_headers).value! response.body unless response.nil? end @@ -27915,18 +28772,17 @@ def get_triggered_web_job_history_slot(resource_group_name, name, web_job_id, id # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param id [String] History ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers = nil) - get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers).value! + def get_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_name, id, slot, custom_headers = nil) + get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, id, slot, custom_headers).value! end # @@ -27939,23 +28795,21 @@ def get_triggered_web_job_history_slot_with_http_info(resource_group_name, name, # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param id [String] History ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers = nil) + def get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, id, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? + fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -27971,8 +28825,8 @@ def get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_ options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'id' => id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -28013,16 +28867,15 @@ def get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_ # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def run_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def run_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers = nil) + response = run_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! nil end @@ -28034,17 +28887,16 @@ def run_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_ # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def run_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def run_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers = nil) + run_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! end # @@ -28055,21 +28907,19 @@ def run_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def run_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -28085,8 +28935,8 @@ def run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -29698,7 +30548,107 @@ def list_snapshots_async(resource_group_name, name, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SnapshotCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SnapshotCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the source control configuration of an app. + # + # Gets the source control configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SiteSourceControl] operation results. + # + def get_source_control(resource_group_name, name, custom_headers = nil) + response = get_source_control_async(resource_group_name, name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the source control configuration of an app. + # + # Gets the source control configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_source_control_with_http_info(resource_group_name, name, custom_headers = nil) + get_source_control_async(resource_group_name, name, custom_headers).value! + end + + # + # Gets the source control configuration of an app. + # + # Gets the source control configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_source_control_async(resource_group_name, name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -29712,27 +30662,76 @@ def list_snapshots_async(resource_group_name, name, custom_headers = nil) end # - # Gets the source control configuration of an app. + # Updates the source control configuration of an app. # - # Gets the source control configuration of an app. + # Updates the source control configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param site_source_control [SiteSourceControl] JSON representation of a + # SiteSourceControl object. See example. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [SiteSourceControl] operation results. # - def get_source_control(resource_group_name, name, custom_headers = nil) - response = get_source_control_async(resource_group_name, name, custom_headers).value! + def create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers = nil) + response = create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers).value! response.body unless response.nil? end # - # Gets the source control configuration of an app. + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param site_source_control [SiteSourceControl] JSON representation of a + # SiteSourceControl object. See example. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. # - # Gets the source control configuration of an app. + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers = nil) + # Send request + promise = begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Deletes the source control configuration of an app. + # + # Deletes the source control configuration of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete_source_control(resource_group_name, name, custom_headers = nil) + response = delete_source_control_async(resource_group_name, name, custom_headers).value! + nil + end + + # + # Deletes the source control configuration of an app. + # + # Deletes the source control configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. @@ -29742,14 +30741,14 @@ def get_source_control(resource_group_name, name, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_source_control_with_http_info(resource_group_name, name, custom_headers = nil) - get_source_control_async(resource_group_name, name, custom_headers).value! + def delete_source_control_with_http_info(resource_group_name, name, custom_headers = nil) + delete_source_control_async(resource_group_name, name, custom_headers).value! end # - # Gets the source control configuration of an app. + # Deletes the source control configuration of an app. # - # Gets the source control configuration of an app. + # Deletes the source control configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. @@ -29759,7 +30758,7 @@ def get_source_control_with_http_info(resource_group_name, name, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_source_control_async(resource_group_name, name, custom_headers = nil) + def delete_source_control_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -29782,28 +30781,18 @@ def get_source_control_async(resource_group_name, name, custom_headers = nil) headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 202 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -29826,91 +30815,49 @@ def get_source_control_async(resource_group_name, name, custom_headers = nil) # # @return [SiteSourceControl] operation results. # - def create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers = nil) - response = create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers).value! + def update_source_control(resource_group_name, name, site_source_control, custom_headers = nil) + response = update_source_control_async(resource_group_name, name, site_source_control, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param site_source_control [SiteSourceControl] JSON representation of a - # SiteSourceControl object. See example. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @return [Concurrent::Promise] promise which provides async access to http - # response. - # - def create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers = nil) - # Send request - promise = begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers) - - promise = promise.then do |response| - # Defining deserialization method. - deserialize_method = lambda do |parsed_response| - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() - parsed_response = @client.deserialize(result_mapper, parsed_response) - end - - # Waiting for response. - @client.get_long_running_operation_result(response, deserialize_method) - end - - promise - end - - # - # Deletes the source control configuration of an app. - # - # Deletes the source control configuration of an app. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # - def delete_source_control(resource_group_name, name, custom_headers = nil) - response = delete_source_control_async(resource_group_name, name, custom_headers).value! - nil - end - - # - # Deletes the source control configuration of an app. + # Updates the source control configuration of an app. # - # Deletes the source control configuration of an app. + # Updates the source control configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param site_source_control [SiteSourceControl] JSON representation of a + # SiteSourceControl object. See example. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_source_control_with_http_info(resource_group_name, name, custom_headers = nil) - delete_source_control_async(resource_group_name, name, custom_headers).value! + def update_source_control_with_http_info(resource_group_name, name, site_source_control, custom_headers = nil) + update_source_control_async(resource_group_name, name, site_source_control, custom_headers).value! end # - # Deletes the source control configuration of an app. + # Updates the source control configuration of an app. # - # Deletes the source control configuration of an app. + # Updates the source control configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param site_source_control [SiteSourceControl] JSON representation of a + # SiteSourceControl object. See example. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_source_control_async(resource_group_name, name, custom_headers = nil) + def update_source_control_async(resource_group_name, name, site_source_control, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'site_source_control is nil' if site_source_control.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -29920,6 +30867,14 @@ def delete_source_control_async(resource_group_name, name, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() + request_content = @client.serialize(request_mapper, site_source_control) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web' request_url = @base_url || @client.base_url @@ -29928,21 +30883,42 @@ def delete_source_control_async(resource_group_name, name, custom_headers = nil) middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:patch, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 202 || status_code == 404 + unless status_code == 200 || status_code == 201 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -30414,15 +31390,14 @@ def list_triggered_web_jobs_async(resource_group_name, name, custom_headers = ni # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [TriggeredWebJob] operation results. # - def get_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def get_triggered_web_job(resource_group_name, name, web_job_name, custom_headers = nil) + response = get_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! response.body unless response.nil? end @@ -30434,15 +31409,14 @@ def get_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, c # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def get_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers = nil) + get_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! end # @@ -30453,17 +31427,15 @@ def get_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def get_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -30481,7 +31453,7 @@ def get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_n options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -30522,14 +31494,13 @@ def get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_n # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def delete_triggered_web_job(resource_group_name, name, web_job_name, custom_headers = nil) + response = delete_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! nil end @@ -30541,15 +31512,14 @@ def delete_triggered_web_job(resource_group_name, name, web_job_id, web_job_name # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def delete_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers = nil) + delete_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! end # @@ -30560,17 +31530,15 @@ def delete_triggered_web_job_with_http_info(resource_group_name, name, web_job_i # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def delete_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -30588,7 +31556,7 @@ def delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_jo options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -30619,15 +31587,14 @@ def delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_jo # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_triggered_web_job_history(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - first_page = list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_id, web_job_name, custom_headers) + def list_triggered_web_job_history(resource_group_name, name, web_job_name, custom_headers = nil) + first_page = list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_name, custom_headers) first_page.get_all_items end @@ -30639,15 +31606,14 @@ def list_triggered_web_job_history(resource_group_name, name, web_job_id, web_jo # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - list_triggered_web_job_history_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def list_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_name, custom_headers = nil) + list_triggered_web_job_history_async(resource_group_name, name, web_job_name, custom_headers).value! end # @@ -30658,17 +31624,15 @@ def list_triggered_web_job_history_with_http_info(resource_group_name, name, web # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_job_history_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def list_triggered_web_job_history_async(resource_group_name, name, web_job_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -30686,7 +31650,7 @@ def list_triggered_web_job_history_async(resource_group_name, name, web_job_id, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -30729,16 +31693,15 @@ def list_triggered_web_job_history_async(resource_group_name, name, web_job_id, # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param id [String] History ID. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [TriggeredJobHistory] operation results. # - def get_triggered_web_job_history(resource_group_name, name, web_job_id, id, web_job_name, custom_headers = nil) - response = get_triggered_web_job_history_async(resource_group_name, name, web_job_id, id, web_job_name, custom_headers).value! + def get_triggered_web_job_history(resource_group_name, name, web_job_name, id, custom_headers = nil) + response = get_triggered_web_job_history_async(resource_group_name, name, web_job_name, id, custom_headers).value! response.body unless response.nil? end @@ -30752,16 +31715,15 @@ def get_triggered_web_job_history(resource_group_name, name, web_job_id, id, web # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param id [String] History ID. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_id, id, web_job_name, custom_headers = nil) - get_triggered_web_job_history_async(resource_group_name, name, web_job_id, id, web_job_name, custom_headers).value! + def get_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_name, id, custom_headers = nil) + get_triggered_web_job_history_async(resource_group_name, name, web_job_name, id, custom_headers).value! end # @@ -30774,20 +31736,18 @@ def get_triggered_web_job_history_with_http_info(resource_group_name, name, web_ # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param id [String] History ID. - # @param web_job_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_triggered_web_job_history_async(resource_group_name, name, web_job_id, id, web_job_name, custom_headers = nil) + def get_triggered_web_job_history_async(resource_group_name, name, web_job_name, id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? - fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? + fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -30803,8 +31763,8 @@ def get_triggered_web_job_history_async(resource_group_name, name, web_job_id, i options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'id' => id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -30845,14 +31805,13 @@ def get_triggered_web_job_history_async(resource_group_name, name, web_job_id, i # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def run_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def run_triggered_web_job(resource_group_name, name, web_job_name, custom_headers = nil) + response = run_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! nil end @@ -30864,15 +31823,14 @@ def run_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, c # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def run_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def run_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers = nil) + run_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! end # @@ -30883,17 +31841,15 @@ def run_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def run_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'web_job_id is nil' if web_job_id.nil? fail ArgumentError, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -30911,7 +31867,7 @@ def run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_n options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'webJobName' => web_job_name,'subscriptionId' => @client.subscription_id}, - query_params: {'webJobId' => web_job_id,'api-version' => @client.api_version}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -33270,14 +34226,13 @@ def begin_recover_async(resource_group_name, name, recovery_entity, custom_heade # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [SiteExtensionInfo] operation results. # - def begin_install_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - response = begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def begin_install_site_extension(resource_group_name, name, site_extension_id, custom_headers = nil) + response = begin_install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers).value! response.body unless response.nil? end @@ -33290,14 +34245,13 @@ def begin_install_site_extension(resource_group_name, name, site_extension_id, e # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_install_site_extension_with_http_info(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def begin_install_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers = nil) + begin_install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers).value! end # @@ -33309,17 +34263,15 @@ def begin_install_site_extension_with_http_info(resource_group_name, name, site_ # resource belongs. # @param name [String] Site name. # @param site_extension_id [String] Site extension name. - # @param extension_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) + def begin_install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'site_extension_id is nil' if site_extension_id.nil? - fail ArgumentError, 'extension_name is nil' if extension_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -33329,14 +34281,14 @@ def begin_install_site_extension_async(resource_group_name, name, site_extension # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{extensionName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'extensionName' => extension_name,'subscriptionId' => @client.subscription_id}, - query_params: {'siteExtensionId' => site_extension_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'siteExtensionId' => site_extension_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -34273,14 +35225,13 @@ def begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, c # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [SiteExtensionInfo] operation results. # - def begin_install_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - response = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def begin_install_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers = nil) + response = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers).value! response.body unless response.nil? end @@ -34295,14 +35246,13 @@ def begin_install_site_extension_slot(resource_group_name, name, site_extension_ # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_install_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def begin_install_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers = nil) + begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers).value! end # @@ -34316,18 +35266,16 @@ def begin_install_site_extension_slot_with_http_info(resource_group_name, name, # @param site_extension_id [String] Site extension name. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param extension_name [String] # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) + def begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'site_extension_id is nil' if site_extension_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'extension_name is nil' if extension_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -34337,14 +35285,14 @@ def begin_install_site_extension_slot_async(resource_group_name, name, site_exte # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{extensionName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'extensionName' => extension_name,'subscriptionId' => @client.subscription_id}, - query_params: {'siteExtensionId' => site_extension_id,'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'siteExtensionId' => site_extension_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -34957,26 +35905,119 @@ def list_next_async(next_page_link, custom_headers = nil) end # - # Gets all web, mobile, and API apps in the specified resource group. + # Gets all web, mobile, and API apps in the specified resource group. + # + # Gets all web, mobile, and API apps in the specified resource group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [WebAppCollection] operation results. + # + def list_by_resource_group_next(next_page_link, custom_headers = nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all web, mobile, and API apps in the specified resource group. + # + # Gets all web, mobile, and API apps in the specified resource group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) + list_by_resource_group_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all web, mobile, and API apps in the specified resource group. + # + # Gets all web, mobile, and API apps in the specified resource group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::WebAppCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets existing backups of an app. # - # Gets all web, mobile, and API apps in the specified resource group. + # Gets existing backups of an app. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [WebAppCollection] operation results. + # @return [BackupItemCollection] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_backups_next(next_page_link, custom_headers = nil) + response = list_backups_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end # - # Gets all web, mobile, and API apps in the specified resource group. + # Gets existing backups of an app. # - # Gets all web, mobile, and API apps in the specified resource group. + # Gets existing backups of an app. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -34985,14 +36026,14 @@ def list_by_resource_group_next(next_page_link, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_backups_next_with_http_info(next_page_link, custom_headers = nil) + list_backups_next_async(next_page_link, custom_headers).value! end # - # Gets all web, mobile, and API apps in the specified resource group. + # Gets existing backups of an app. # - # Gets all web, mobile, and API apps in the specified resource group. + # Gets existing backups of an app. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -35001,7 +36042,7 @@ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_backups_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? @@ -35036,7 +36077,7 @@ def list_by_resource_group_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::WebAppCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::BackupItemCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -35050,26 +36091,26 @@ def list_by_resource_group_next_async(next_page_link, custom_headers = nil) end # - # Gets existing backups of an app. + # List the configurations of an app # - # Gets existing backups of an app. + # List the configurations of an app # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [BackupItemCollection] operation results. + # @return [SiteConfigResourceCollection] operation results. # - def list_backups_next(next_page_link, custom_headers = nil) - response = list_backups_next_async(next_page_link, custom_headers).value! + def list_configurations_next(next_page_link, custom_headers = nil) + response = list_configurations_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end # - # Gets existing backups of an app. + # List the configurations of an app # - # Gets existing backups of an app. + # List the configurations of an app # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -35078,14 +36119,14 @@ def list_backups_next(next_page_link, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_backups_next_with_http_info(next_page_link, custom_headers = nil) - list_backups_next_async(next_page_link, custom_headers).value! + def list_configurations_next_with_http_info(next_page_link, custom_headers = nil) + list_configurations_next_async(next_page_link, custom_headers).value! end # - # Gets existing backups of an app. + # List the configurations of an app # - # Gets existing backups of an app. + # List the configurations of an app # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -35094,7 +36135,7 @@ def list_backups_next_with_http_info(next_page_link, custom_headers = nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_backups_next_async(next_page_link, custom_headers = nil) + def list_configurations_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? @@ -35129,7 +36170,7 @@ def list_backups_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::BackupItemCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResourceCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -35143,26 +36184,30 @@ def list_backups_next_async(next_page_link, custom_headers = nil) end # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteConfigResourceCollection] operation results. + # @return [SiteConfigurationSnapshotInfoCollection] operation results. # - def list_configurations_next(next_page_link, custom_headers = nil) - response = list_configurations_next_async(next_page_link, custom_headers).value! + def list_configuration_snapshot_info_next(next_page_link, custom_headers = nil) + response = list_configuration_snapshot_info_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -35171,14 +36216,16 @@ def list_configurations_next(next_page_link, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_configurations_next_with_http_info(next_page_link, custom_headers = nil) - list_configurations_next_async(next_page_link, custom_headers).value! + def list_configuration_snapshot_info_next_with_http_info(next_page_link, custom_headers = nil) + list_configuration_snapshot_info_next_async(next_page_link, custom_headers).value! end # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -35187,7 +36234,7 @@ def list_configurations_next_with_http_info(next_page_link, custom_headers = nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_configurations_next_async(next_page_link, custom_headers = nil) + def list_configuration_snapshot_info_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? @@ -35222,7 +36269,7 @@ def list_configurations_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResourceCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigurationSnapshotInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -36544,7 +37591,199 @@ def list_process_modules_next_async(next_page_link, custom_headers = nil) http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ProcessModuleInfoCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ProcessThreadInfoCollection] operation results. + # + def list_process_threads_next(next_page_link, custom_headers = nil) + response = list_process_threads_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_process_threads_next_with_http_info(next_page_link, custom_headers = nil) + list_process_threads_next_async(next_page_link, custom_headers).value! + end + + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # List the threads in a process by its ID for a specific scaled-out instance in + # a web site. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_process_threads_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ProcessThreadInfoCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PublicCertificateCollection] operation results. + # + def list_public_certificates_next(next_page_link, custom_headers = nil) + response = list_public_certificates_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_public_certificates_next_with_http_info(next_page_link, custom_headers = nil) + list_public_certificates_next_async(next_page_link, custom_headers).value! + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_public_certificates_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -36554,7 +37793,7 @@ def list_process_modules_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ProcessModuleInfoCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::PublicCertificateCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -36568,30 +37807,26 @@ def list_process_modules_next_async(next_page_link, custom_headers = nil) end # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. + # Get list of siteextensions for a web site, or a deployment slot. # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. + # Get list of siteextensions for a web site, or a deployment slot. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [ProcessThreadInfoCollection] operation results. + # @return [SiteExtensionInfoCollection] operation results. # - def list_process_threads_next(next_page_link, custom_headers = nil) - response = list_process_threads_next_async(next_page_link, custom_headers).value! + def list_site_extensions_next(next_page_link, custom_headers = nil) + response = list_site_extensions_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. + # Get list of siteextensions for a web site, or a deployment slot. # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. + # Get list of siteextensions for a web site, or a deployment slot. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -36600,16 +37835,14 @@ def list_process_threads_next(next_page_link, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_process_threads_next_with_http_info(next_page_link, custom_headers = nil) - list_process_threads_next_async(next_page_link, custom_headers).value! + def list_site_extensions_next_with_http_info(next_page_link, custom_headers = nil) + list_site_extensions_next_async(next_page_link, custom_headers).value! end # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. + # Get list of siteextensions for a web site, or a deployment slot. # - # List the threads in a process by its ID for a specific scaled-out instance in - # a web site. + # Get list of siteextensions for a web site, or a deployment slot. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -36618,7 +37851,7 @@ def list_process_threads_next_with_http_info(next_page_link, custom_headers = ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_process_threads_next_async(next_page_link, custom_headers = nil) + def list_site_extensions_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? @@ -36653,7 +37886,7 @@ def list_process_threads_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::ProcessThreadInfoCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteExtensionInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -36667,26 +37900,26 @@ def list_process_threads_next_async(next_page_link, custom_headers = nil) end # - # Get public certificates for an app or a deployment slot. + # Gets an app's deployment slots. # - # Get public certificates for an app or a deployment slot. + # Gets an app's deployment slots. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PublicCertificateCollection] operation results. + # @return [WebAppCollection] operation results. # - def list_public_certificates_next(next_page_link, custom_headers = nil) - response = list_public_certificates_next_async(next_page_link, custom_headers).value! + def list_slots_next(next_page_link, custom_headers = nil) + response = list_slots_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end # - # Get public certificates for an app or a deployment slot. + # Gets an app's deployment slots. # - # Get public certificates for an app or a deployment slot. + # Gets an app's deployment slots. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -36695,14 +37928,14 @@ def list_public_certificates_next(next_page_link, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_public_certificates_next_with_http_info(next_page_link, custom_headers = nil) - list_public_certificates_next_async(next_page_link, custom_headers).value! + def list_slots_next_with_http_info(next_page_link, custom_headers = nil) + list_slots_next_async(next_page_link, custom_headers).value! end # - # Get public certificates for an app or a deployment slot. + # Gets an app's deployment slots. # - # Get public certificates for an app or a deployment slot. + # Gets an app's deployment slots. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -36711,7 +37944,7 @@ def list_public_certificates_next_with_http_info(next_page_link, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_public_certificates_next_async(next_page_link, custom_headers = nil) + def list_slots_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? @@ -36746,100 +37979,7 @@ def list_public_certificates_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::PublicCertificateCollection.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end - - result - end - - promise.execute - end - - # - # Get list of siteextensions for a web site, or a deployment slot. - # - # Get list of siteextensions for a web site, or a deployment slot. - # - # @param next_page_link [String] The NextLink from the previous successful call - # to List operation. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @return [SiteExtensionInfoCollection] operation results. - # - def list_site_extensions_next(next_page_link, custom_headers = nil) - response = list_site_extensions_next_async(next_page_link, custom_headers).value! - response.body unless response.nil? - end - - # - # Get list of siteextensions for a web site, or a deployment slot. - # - # Get list of siteextensions for a web site, or a deployment slot. - # - # @param next_page_link [String] The NextLink from the previous successful call - # to List operation. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @return [MsRestAzure::AzureOperationResponse] HTTP response information. - # - def list_site_extensions_next_with_http_info(next_page_link, custom_headers = nil) - list_site_extensions_next_async(next_page_link, custom_headers).value! - end - - # - # Get list of siteextensions for a web site, or a deployment slot. - # - # Get list of siteextensions for a web site, or a deployment slot. - # - # @param next_page_link [String] The NextLink from the previous successful call - # to List operation. - # @param [Hash{String => String}] A hash of custom headers that will be added - # to the HTTP request. - # - # @return [Concurrent::Promise] Promise object which holds the HTTP response. - # - def list_site_extensions_next_async(next_page_link, custom_headers = nil) - fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? - - - request_headers = {} - - # Set Headers - request_headers['x-ms-client-request-id'] = SecureRandom.uuid - request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = '{nextLink}' - - request_url = @base_url || @client.base_url - - options = { - middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - skip_encoding_path_params: {'nextLink' => next_page_link}, - headers: request_headers.merge(custom_headers || {}), - base_url: request_url - } - promise = @client.make_request_async(:get, path_template, options) - - promise = promise.then do |result| - http_response = result.response - status_code = http_response.status - response_content = http_response.body - unless status_code == 200 || status_code == 404 - error_model = JSON.load(response_content) - fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) - end - - result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteExtensionInfoCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -36853,26 +37993,26 @@ def list_site_extensions_next_async(next_page_link, custom_headers = nil) end # - # Gets an app's deployment slots. + # Gets existing backups of an app. # - # Gets an app's deployment slots. + # Gets existing backups of an app. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [WebAppCollection] operation results. + # @return [BackupItemCollection] operation results. # - def list_slots_next(next_page_link, custom_headers = nil) - response = list_slots_next_async(next_page_link, custom_headers).value! + def list_backups_slot_next(next_page_link, custom_headers = nil) + response = list_backups_slot_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end # - # Gets an app's deployment slots. + # Gets existing backups of an app. # - # Gets an app's deployment slots. + # Gets existing backups of an app. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -36881,14 +38021,14 @@ def list_slots_next(next_page_link, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_slots_next_with_http_info(next_page_link, custom_headers = nil) - list_slots_next_async(next_page_link, custom_headers).value! + def list_backups_slot_next_with_http_info(next_page_link, custom_headers = nil) + list_backups_slot_next_async(next_page_link, custom_headers).value! end # - # Gets an app's deployment slots. + # Gets existing backups of an app. # - # Gets an app's deployment slots. + # Gets existing backups of an app. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -36897,7 +38037,7 @@ def list_slots_next_with_http_info(next_page_link, custom_headers = nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_slots_next_async(next_page_link, custom_headers = nil) + def list_backups_slot_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? @@ -36932,7 +38072,7 @@ def list_slots_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::WebAppCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::BackupItemCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -36946,26 +38086,26 @@ def list_slots_next_async(next_page_link, custom_headers = nil) end # - # Gets existing backups of an app. + # List the configurations of an app # - # Gets existing backups of an app. + # List the configurations of an app # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [BackupItemCollection] operation results. + # @return [SiteConfigResourceCollection] operation results. # - def list_backups_slot_next(next_page_link, custom_headers = nil) - response = list_backups_slot_next_async(next_page_link, custom_headers).value! + def list_configurations_slot_next(next_page_link, custom_headers = nil) + response = list_configurations_slot_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end # - # Gets existing backups of an app. + # List the configurations of an app # - # Gets existing backups of an app. + # List the configurations of an app # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -36974,14 +38114,14 @@ def list_backups_slot_next(next_page_link, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_backups_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_backups_slot_next_async(next_page_link, custom_headers).value! + def list_configurations_slot_next_with_http_info(next_page_link, custom_headers = nil) + list_configurations_slot_next_async(next_page_link, custom_headers).value! end # - # Gets existing backups of an app. + # List the configurations of an app # - # Gets existing backups of an app. + # List the configurations of an app # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -36990,7 +38130,7 @@ def list_backups_slot_next_with_http_info(next_page_link, custom_headers = nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_backups_slot_next_async(next_page_link, custom_headers = nil) + def list_configurations_slot_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? @@ -37025,7 +38165,7 @@ def list_backups_slot_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::BackupItemCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResourceCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -37039,26 +38179,30 @@ def list_backups_slot_next_async(next_page_link, custom_headers = nil) end # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteConfigResourceCollection] operation results. + # @return [SiteConfigurationSnapshotInfoCollection] operation results. # - def list_configurations_slot_next(next_page_link, custom_headers = nil) - response = list_configurations_slot_next_async(next_page_link, custom_headers).value! + def list_configuration_snapshot_info_slot_next(next_page_link, custom_headers = nil) + response = list_configuration_snapshot_info_slot_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -37067,14 +38211,16 @@ def list_configurations_slot_next(next_page_link, custom_headers = nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_configurations_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_configurations_slot_next_async(next_page_link, custom_headers).value! + def list_configuration_snapshot_info_slot_next_with_http_info(next_page_link, custom_headers = nil) + list_configuration_snapshot_info_slot_next_async(next_page_link, custom_headers).value! end # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # - # List the configurations of an app + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -37083,7 +38229,7 @@ def list_configurations_slot_next_with_http_info(next_page_link, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_configurations_slot_next_async(next_page_link, custom_headers = nil) + def list_configuration_snapshot_info_slot_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? @@ -37118,7 +38264,7 @@ def list_configurations_slot_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigResourceCollection.mapper() + result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteConfigurationSnapshotInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -39975,6 +41121,33 @@ def list_configurations_as_lazy(resource_group_name, name, custom_headers = nil) end end + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SiteConfigurationSnapshotInfoCollection] which provide lazy access + # to pages of the response. + # + def list_configuration_snapshot_info_as_lazy(resource_group_name, name, custom_headers = nil) + response = list_configuration_snapshot_info_async(resource_group_name, name, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_configuration_snapshot_info_next_async(next_page_link, custom_headers) + end + page + end + end + # # List continuous web jobs for an app, or a deployment slot. # @@ -40514,6 +41687,35 @@ def list_configurations_slot_as_lazy(resource_group_name, name, slot, custom_hea end end + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SiteConfigurationSnapshotInfoCollection] which provide lazy access + # to pages of the response. + # + def list_configuration_snapshot_info_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) + response = list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_configuration_snapshot_info_slot_next_async(next_page_link, custom_headers) + end + page + end + end + # # List continuous web jobs for an app, or a deployment slot. # @@ -41098,18 +42300,17 @@ def list_triggered_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. + # @param web_job_name [String] Name of Web Job. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API deletes a deployment for the production slot. - # @param web_job_name [String] # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [TriggeredJobHistoryCollection] which provide lazy access to pages of # the response. # - def list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_name, slot, custom_headers = nil) + response = list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| @@ -41264,16 +42465,15 @@ def list_triggered_web_jobs_as_lazy(resource_group_name, name, custom_headers = # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Site name. - # @param web_job_id [String] Web job ID. - # @param web_job_name [String] + # @param web_job_name [String] Name of Web Job. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [TriggeredJobHistoryCollection] which provide lazy access to pages of # the response. # - def list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = list_triggered_web_job_history_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_name, custom_headers = nil) + response = list_triggered_web_job_history_async(resource_group_name, name, web_job_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_web/lib/2016-09-01/build.json b/management/azure_mgmt_web/lib/2016-09-01/build.json new file mode 100644 index 0000000000..f99a8ae866 --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-09-01/build.json @@ -0,0 +1,226 @@ +{ + "autorest": [ + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest-core", + "version": "2.0.4168", + "engines": { + "node": ">=7.10.0" + }, + "dependencies": {}, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/async-io": "~1.0.22", + "@microsoft.azure/extension": "~1.2.12", + "@types/commonmark": "^0.27.0", + "@types/jsonpath": "^0.1.29", + "@types/node": "^8.0.28", + "@types/pify": "0.0.28", + "@types/source-map": "^0.5.0", + "@types/yargs": "^8.0.2", + "commonmark": "^0.27.0", + "file-url": "^2.0.2", + "get-uri": "^2.0.0", + "jsonpath": "^0.2.11", + "linq-es2015": "^2.4.25", + "mocha": "3.4.2", + "mocha-typescript": "1.1.5", + "pify": "^3.0.0", + "safe-eval": "^0.3.0", + "shx": "^0.2.2", + "source-map": "^0.5.6", + "source-map-support": "^0.4.15", + "strip-bom": "^3.0.0", + "typescript": "2.5.3", + "untildify": "^3.0.2", + "urijs": "^1.18.10", + "vscode-jsonrpc": "^3.3.1", + "yaml-ast-parser": "https://github.com/olydis/yaml-ast-parser/releases/download/0.0.34/yaml-ast-parser-0.0.34.tgz", + "yargs": "^8.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_shasum": "33813111fc9bfa488bd600fbba48bc53cc9182c7", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest-core@2.0.4168", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.0.21", + "dependencies": { + "dotnet-2.0.0": "^1.3.2" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.1.1", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.0.21", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.1.22", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "ca425289fa38a210d279729048a4a91673f09c67", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.1.22", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.ruby", + "version": "3.0.20", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/autorest.testserver": "^1.9.2", + "autorest": "^2.0.0", + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_shasum": "f5b24eb17914aad0e8d2da581642044a6088d905", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.ruby@3.0.20", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_where": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + } + ], + "autorest_bootstrap": {}, + "date": "2017-10-23T19:34:56Z" +} \ No newline at end of file diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web.rb index 5c94278912..c9f2d14108 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web.rb @@ -25,68 +25,69 @@ module Azure::Web::Mgmt::V2016_09_01 autoload :WebSiteManagementClient, '2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb' module Models - autoload :RampUpRule, '2016-09-01/generated/azure_mgmt_web/models/ramp_up_rule.rb' autoload :Experiments, '2016-09-01/generated/azure_mgmt_web/models/experiments.rb' - autoload :AddressResponse, '2016-09-01/generated/azure_mgmt_web/models/address_response.rb' + autoload :VirtualIPMapping, '2016-09-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb' autoload :HandlerMapping, '2016-09-01/generated/azure_mgmt_web/models/handler_mapping.rb' - autoload :VirtualNetworkProfile, '2016-09-01/generated/azure_mgmt_web/models/virtual_network_profile.rb' + autoload :ApiDefinitionInfo, '2016-09-01/generated/azure_mgmt_web/models/api_definition_info.rb' autoload :HostNameSslState, '2016-09-01/generated/azure_mgmt_web/models/host_name_ssl_state.rb' - autoload :StampCapacity, '2016-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb' + autoload :WorkerPool, '2016-09-01/generated/azure_mgmt_web/models/worker_pool.rb' autoload :HostingEnvironmentDiagnostics, '2016-09-01/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb' - autoload :NameValuePair, '2016-09-01/generated/azure_mgmt_web/models/name_value_pair.rb' + autoload :NetworkAccessControlEntry, '2016-09-01/generated/azure_mgmt_web/models/network_access_control_entry.rb' autoload :IpSecurityRestriction, '2016-09-01/generated/azure_mgmt_web/models/ip_security_restriction.rb' + autoload :NameValuePair, '2016-09-01/generated/azure_mgmt_web/models/name_value_pair.rb' autoload :AppServiceEnvironmentCollection, '2016-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb' - autoload :MetricAvailabilily, '2016-09-01/generated/azure_mgmt_web/models/metric_availabilily.rb' + autoload :SkuInfoCollection, '2016-09-01/generated/azure_mgmt_web/models/sku_info_collection.rb' autoload :HostingEnvironmentProfile, '2016-09-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb' + autoload :ManagedServiceIdentity, '2016-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb' autoload :Capability, '2016-09-01/generated/azure_mgmt_web/models/capability.rb' + autoload :MetricAvailabilily, '2016-09-01/generated/azure_mgmt_web/models/metric_availabilily.rb' + autoload :StampCapacityCollection, '2016-09-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb' + autoload :AutoHealCustomAction, '2016-09-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb' autoload :Operation, '2016-09-01/generated/azure_mgmt_web/models/operation.rb' - autoload :UsageCollection, '2016-09-01/generated/azure_mgmt_web/models/usage_collection.rb' - autoload :AppServicePlanCollection, '2016-09-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb' + autoload :RequestsBasedTrigger, '2016-09-01/generated/azure_mgmt_web/models/requests_based_trigger.rb' autoload :ProxyOnlyResource, '2016-09-01/generated/azure_mgmt_web/models/proxy_only_resource.rb' - autoload :AutoHealActions, '2016-09-01/generated/azure_mgmt_web/models/auto_heal_actions.rb' + autoload :SlowRequestsBasedTrigger, '2016-09-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb' autoload :ResourceCollection, '2016-09-01/generated/azure_mgmt_web/models/resource_collection.rb' - autoload :StatusCodesBasedTrigger, '2016-09-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb' + autoload :AutoHealRules, '2016-09-01/generated/azure_mgmt_web/models/auto_heal_rules.rb' autoload :Resource, '2016-09-01/generated/azure_mgmt_web/models/resource.rb' - autoload :AutoHealTriggers, '2016-09-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb' + autoload :ConnStringInfo, '2016-09-01/generated/azure_mgmt_web/models/conn_string_info.rb' autoload :ResourceMetricName, '2016-09-01/generated/azure_mgmt_web/models/resource_metric_name.rb' - autoload :CloningInfo, '2016-09-01/generated/azure_mgmt_web/models/cloning_info.rb' + autoload :LocalizableString, '2016-09-01/generated/azure_mgmt_web/models/localizable_string.rb' autoload :ResourceMetricProperty, '2016-09-01/generated/azure_mgmt_web/models/resource_metric_property.rb' - autoload :CorsSettings, '2016-09-01/generated/azure_mgmt_web/models/cors_settings.rb' + autoload :CsmUsageQuotaCollection, '2016-09-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb' autoload :ResourceMetricValue, '2016-09-01/generated/azure_mgmt_web/models/resource_metric_value.rb' - autoload :CsmUsageQuota, '2016-09-01/generated/azure_mgmt_web/models/csm_usage_quota.rb' + autoload :RampUpRule, '2016-09-01/generated/azure_mgmt_web/models/ramp_up_rule.rb' autoload :ResourceMetric, '2016-09-01/generated/azure_mgmt_web/models/resource_metric.rb' - autoload :ErrorEntity, '2016-09-01/generated/azure_mgmt_web/models/error_entity.rb' + autoload :VirtualNetworkProfile, '2016-09-01/generated/azure_mgmt_web/models/virtual_network_profile.rb' autoload :ResourceMetricAvailability, '2016-09-01/generated/azure_mgmt_web/models/resource_metric_availability.rb' - autoload :ApiDefinitionInfo, '2016-09-01/generated/azure_mgmt_web/models/api_definition_info.rb' + autoload :UsageCollection, '2016-09-01/generated/azure_mgmt_web/models/usage_collection.rb' autoload :ResourceMetricCollection, '2016-09-01/generated/azure_mgmt_web/models/resource_metric_collection.rb' - autoload :NetworkAccessControlEntry, '2016-09-01/generated/azure_mgmt_web/models/network_access_control_entry.rb' + autoload :SkuDescription, '2016-09-01/generated/azure_mgmt_web/models/sku_description.rb' autoload :HybridConnectionCollection, '2016-09-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb' - autoload :StampCapacityCollection, '2016-09-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb' - autoload :SkuCapacity, '2016-09-01/generated/azure_mgmt_web/models/sku_capacity.rb' + autoload :AutoHealActions, '2016-09-01/generated/azure_mgmt_web/models/auto_heal_actions.rb' autoload :ResourceMetricDefinitionCollection, '2016-09-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb' - autoload :AutoHealCustomAction, '2016-09-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb' + autoload :AutoHealTriggers, '2016-09-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb' autoload :SiteMachineKey, '2016-09-01/generated/azure_mgmt_web/models/site_machine_key.rb' - autoload :SlowRequestsBasedTrigger, '2016-09-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb' + autoload :CorsSettings, '2016-09-01/generated/azure_mgmt_web/models/cors_settings.rb' autoload :VirtualDirectory, '2016-09-01/generated/azure_mgmt_web/models/virtual_directory.rb' - autoload :ConnStringInfo, '2016-09-01/generated/azure_mgmt_web/models/conn_string_info.rb' + autoload :ErrorEntity, '2016-09-01/generated/azure_mgmt_web/models/error_entity.rb' autoload :VirtualApplication, '2016-09-01/generated/azure_mgmt_web/models/virtual_application.rb' - autoload :CsmUsageQuotaCollection, '2016-09-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb' + autoload :StampCapacity, '2016-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb' autoload :SiteLimits, '2016-09-01/generated/azure_mgmt_web/models/site_limits.rb' - autoload :WorkerPool, '2016-09-01/generated/azure_mgmt_web/models/worker_pool.rb' + autoload :AppServicePlanCollection, '2016-09-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb' autoload :SiteConfig, '2016-09-01/generated/azure_mgmt_web/models/site_config.rb' - autoload :SkuDescription, '2016-09-01/generated/azure_mgmt_web/models/sku_description.rb' + autoload :CloningInfo, '2016-09-01/generated/azure_mgmt_web/models/cloning_info.rb' autoload :SnapshotRecoveryTarget, '2016-09-01/generated/azure_mgmt_web/models/snapshot_recovery_target.rb' - autoload :AutoHealRules, '2016-09-01/generated/azure_mgmt_web/models/auto_heal_rules.rb' + autoload :AddressResponse, '2016-09-01/generated/azure_mgmt_web/models/address_response.rb' autoload :WorkerPoolCollection, '2016-09-01/generated/azure_mgmt_web/models/worker_pool_collection.rb' - autoload :VirtualIPMapping, '2016-09-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb' + autoload :StatusCodesBasedTrigger, '2016-09-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb' autoload :SlotSwapStatus, '2016-09-01/generated/azure_mgmt_web/models/slot_swap_status.rb' - autoload :RequestsBasedTrigger, '2016-09-01/generated/azure_mgmt_web/models/requests_based_trigger.rb' + autoload :SkuCapacity, '2016-09-01/generated/azure_mgmt_web/models/sku_capacity.rb' autoload :WebAppCollection, '2016-09-01/generated/azure_mgmt_web/models/web_app_collection.rb' - autoload :AppServiceEnvironment, '2016-09-01/generated/azure_mgmt_web/models/app_service_environment.rb' + autoload :CsmUsageQuota, '2016-09-01/generated/azure_mgmt_web/models/csm_usage_quota.rb' autoload :SkuInfo, '2016-09-01/generated/azure_mgmt_web/models/sku_info.rb' - autoload :LocalizableString, '2016-09-01/generated/azure_mgmt_web/models/localizable_string.rb' - autoload :SkuInfoCollection, '2016-09-01/generated/azure_mgmt_web/models/sku_info_collection.rb' autoload :AppServiceEnvironmentResource, '2016-09-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb' + autoload :AppServiceEnvironmentPatchResource, '2016-09-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb' autoload :AppServicePlan, '2016-09-01/generated/azure_mgmt_web/models/app_service_plan.rb' autoload :MetricDefinition, '2016-09-01/generated/azure_mgmt_web/models/metric_definition.rb' autoload :PushSettings, '2016-09-01/generated/azure_mgmt_web/models/push_settings.rb' @@ -95,6 +96,7 @@ module Models autoload :Site, '2016-09-01/generated/azure_mgmt_web/models/site.rb' autoload :Usage, '2016-09-01/generated/azure_mgmt_web/models/usage.rb' autoload :WorkerPoolResource, '2016-09-01/generated/azure_mgmt_web/models/worker_pool_resource.rb' + autoload :AppServicePlanPatchResource, '2016-09-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb' autoload :HybridConnection, '2016-09-01/generated/azure_mgmt_web/models/hybrid_connection.rb' autoload :HybridConnectionKey, '2016-09-01/generated/azure_mgmt_web/models/hybrid_connection_key.rb' autoload :HybridConnectionLimits, '2016-09-01/generated/azure_mgmt_web/models/hybrid_connection_limits.rb' diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb index 3a8397d5e2..fbc5f95964 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb @@ -29,7 +29,7 @@ def initialize(client) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [Array] operation results. # def list(custom_headers = nil) first_page = list_as_lazy(custom_headers) @@ -120,7 +120,7 @@ def list_async(custom_headers = nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [Array] operation results. # def list_by_resource_group(resource_group_name, custom_headers = nil) first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) @@ -404,6 +404,132 @@ def delete_async(resource_group_name, name, force_delete = nil, custom_headers = promise end + # + # Create or update an App Service Environment. + # + # Create or update an App Service Environment. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service Environment. + # @param hosting_environment_envelope [AppServiceEnvironmentPatchResource] + # Configuration details of the App Service Environment. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AppServiceEnvironmentResource] operation results. + # + def update(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) + response = update_async(resource_group_name, name, hosting_environment_envelope, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or update an App Service Environment. + # + # Create or update an App Service Environment. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service Environment. + # @param hosting_environment_envelope [AppServiceEnvironmentPatchResource] + # Configuration details of the App Service Environment. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) + update_async(resource_group_name, name, hosting_environment_envelope, custom_headers).value! + end + + # + # Create or update an App Service Environment. + # + # Create or update an App Service Environment. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service Environment. + # @param hosting_environment_envelope [AppServiceEnvironmentPatchResource] + # Configuration details of the App Service Environment. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'hosting_environment_envelope is nil' if hosting_environment_envelope.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentPatchResource.mapper() + request_content = @client.serialize(request_mapper, hosting_environment_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Get the used, available, and total worker capacity an App Service # Environment. @@ -1297,6 +1423,132 @@ def create_or_update_multi_role_pool_async(resource_group_name, name, multi_role promise end + # + # Create or update a multi-role pool. + # + # Create or update a multi-role pool. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service Environment. + # @param multi_role_pool_envelope [WorkerPoolResource] Properties of the + # multi-role pool. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [WorkerPoolResource] operation results. + # + def update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) + response = update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or update a multi-role pool. + # + # Create or update a multi-role pool. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service Environment. + # @param multi_role_pool_envelope [WorkerPoolResource] Properties of the + # multi-role pool. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) + update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers).value! + end + + # + # Create or update a multi-role pool. + # + # Create or update a multi-role pool. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service Environment. + # @param multi_role_pool_envelope [WorkerPoolResource] Properties of the + # multi-role pool. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'multi_role_pool_envelope is nil' if multi_role_pool_envelope.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() + request_content = @client.serialize(request_mapper, multi_role_pool_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Get metric definitions for a specific instance of a multi-role pool of an App # Service Environment. @@ -2867,6 +3119,136 @@ def create_or_update_worker_pool_async(resource_group_name, name, worker_pool_na promise end + # + # Create or update a worker pool. + # + # Create or update a worker pool. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service Environment. + # @param worker_pool_name [String] Name of the worker pool. + # @param worker_pool_envelope [WorkerPoolResource] Properties of the worker + # pool. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [WorkerPoolResource] operation results. + # + def update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) + response = update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or update a worker pool. + # + # Create or update a worker pool. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service Environment. + # @param worker_pool_name [String] Name of the worker pool. + # @param worker_pool_envelope [WorkerPoolResource] Properties of the worker + # pool. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) + update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers).value! + end + + # + # Create or update a worker pool. + # + # Create or update a worker pool. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service Environment. + # @param worker_pool_name [String] Name of the worker pool. + # @param worker_pool_envelope [WorkerPoolResource] Properties of the worker + # pool. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'worker_pool_name is nil' if worker_pool_name.nil? + fail ArgumentError, 'worker_pool_envelope is nil' if worker_pool_envelope.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() + request_content = @client.serialize(request_mapper, worker_pool_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerPoolName' => worker_pool_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Get metric definitions for a specific instance of a worker pool of an App # Service Environment. diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb index 873605b3b8..91e64fa739 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb @@ -295,7 +295,7 @@ def get_async(resource_group_name, name, custom_headers = nil) http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -442,7 +442,7 @@ def delete_async(resource_group_name, name, custom_headers = nil) http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -455,6 +455,132 @@ def delete_async(resource_group_name, name, custom_headers = nil) promise.execute end + # + # Creates or updates an App Service Plan. + # + # Creates or updates an App Service Plan. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service plan. + # @param app_service_plan [AppServicePlanPatchResource] Details of the App + # Service plan. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AppServicePlan] operation results. + # + def update(resource_group_name, name, app_service_plan, custom_headers = nil) + response = update_async(resource_group_name, name, app_service_plan, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates an App Service Plan. + # + # Creates or updates an App Service Plan. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service plan. + # @param app_service_plan [AppServicePlanPatchResource] Details of the App + # Service plan. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, name, app_service_plan, custom_headers = nil) + update_async(resource_group_name, name, app_service_plan, custom_headers).value! + end + + # + # Creates or updates an App Service Plan. + # + # Creates or updates an App Service Plan. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the App Service plan. + # @param app_service_plan [AppServicePlanPatchResource] Details of the App + # Service plan. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, name, app_service_plan, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'app_service_plan is nil' if app_service_plan.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlanPatchResource.mapper() + request_content = @client.serialize(request_mapper, app_service_plan) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlan.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlan.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # List all capabilities of an App Service plan. # @@ -1638,6 +1764,206 @@ def list_web_apps_async(resource_group_name, name, skip_token = nil, filter = ni promise.execute end + # + # Gets all selectable sku's for a given App Service Plan + # + # Gets all selectable sku's for a given App Service Plan + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of App Service Plan + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Object] operation results. + # + def get_server_farm_skus(resource_group_name, name, custom_headers = nil) + response = get_server_farm_skus_async(resource_group_name, name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all selectable sku's for a given App Service Plan + # + # Gets all selectable sku's for a given App Service Plan + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of App Service Plan + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_server_farm_skus_with_http_info(resource_group_name, name, custom_headers = nil) + get_server_farm_skus_async(resource_group_name, name, custom_headers).value! + end + + # + # Gets all selectable sku's for a given App Service Plan + # + # Gets all selectable sku's for a given App Service Plan + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of App Service Plan + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_server_farm_skus_async(resource_group_name, name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/skus' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets server farm usage information + # + # Gets server farm usage information + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of App Service Plan + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or + # name.value eq 'Metric2'). + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_usages(resource_group_name, name, filter = nil, custom_headers = nil) + first_page = list_usages_as_lazy(resource_group_name, name, filter, custom_headers) + first_page.get_all_items + end + + # + # Gets server farm usage information + # + # Gets server farm usage information + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of App Service Plan + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or + # name.value eq 'Metric2'). + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_usages_with_http_info(resource_group_name, name, filter = nil, custom_headers = nil) + list_usages_async(resource_group_name, name, filter, custom_headers).value! + end + + # + # Gets server farm usage information + # + # Gets server farm usage information + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of App Service Plan + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or + # name.value eq 'Metric2'). + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_usages_async(resource_group_name, name, filter = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/usages' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + skip_encoding_query_params: {'$filter' => filter}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuotaCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Get all Virtual Networks associated with an App Service plan. # @@ -3552,6 +3878,99 @@ def list_web_apps_next_async(next_page_link, custom_headers = nil) promise.execute end + # + # Gets server farm usage information + # + # Gets server farm usage information + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CsmUsageQuotaCollection] operation results. + # + def list_usages_next(next_page_link, custom_headers = nil) + response = list_usages_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets server farm usage information + # + # Gets server farm usage information + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_usages_next_with_http_info(next_page_link, custom_headers = nil) + list_usages_next_async(next_page_link, custom_headers).value! + end + + # + # Gets server farm usage information + # + # Gets server farm usage information + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_usages_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuotaCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Get all App Service plans for a subcription. # @@ -3744,5 +4163,33 @@ def list_web_apps_as_lazy(resource_group_name, name, skip_token = nil, filter = end end + # + # Gets server farm usage information + # + # Gets server farm usage information + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of App Service Plan + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or + # name.value eq 'Metric2'). + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CsmUsageQuotaCollection] which provide lazy access to pages of the + # response. + # + def list_usages_as_lazy(resource_group_name, name, filter = nil, custom_headers = nil) + response = list_usages_async(resource_group_name, name, filter, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_usages_next_async(next_page_link, custom_headers) + end + page + end + end + end end diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb index 593e125342..55b9d1c7a2 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb @@ -13,7 +13,7 @@ class AppServiceEnvironmentCollection include MsRestAzure include MsRest::JSONable - # @return [Array] Collection of resources. + # @return [Array] Collection of resources. attr_accessor :value # @return [String] Link to next page of resources. @@ -25,7 +25,7 @@ class AppServiceEnvironmentCollection # # Gets the rest of the items for the request, enabling auto-pagination. # - # @return [Array] operation results. + # @return [Array] operation results. # def get_all_items items = @value @@ -70,10 +70,10 @@ def self.mapper() name: 'Sequence', element: { required: false, - serialized_name: 'AppServiceEnvironmentElementType', + serialized_name: 'AppServiceEnvironmentResourceElementType', type: { name: 'Composite', - class_name: 'AppServiceEnvironment' + class_name: 'AppServiceEnvironmentResource' } } } diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb new file mode 100644 index 0000000000..bbf369ed6f --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb @@ -0,0 +1,522 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_09_01 + module Models + # + # ARM resource for a app service enviroment. + # + class AppServiceEnvironmentPatchResource < ProxyOnlyResource + + include MsRestAzure + + # @return [String] Name of the App Service Environment. + attr_accessor :app_service_environment_patch_resource_name + + # @return [String] Location of the App Service Environment, e.g. "West + # US". + attr_accessor :location + + # @return [ProvisioningState] Provisioning state of the App Service + # Environment. Possible values include: 'Succeeded', 'Failed', + # 'Canceled', 'InProgress', 'Deleting' + attr_accessor :provisioning_state + + # @return [HostingEnvironmentStatus] Current status of the App Service + # Environment. Possible values include: 'Preparing', 'Ready', 'Scaling', + # 'Deleting' + attr_accessor :status + + # @return [String] Name of the Virtual Network for the App Service + # Environment. + attr_accessor :vnet_name + + # @return [String] Resource group of the Virtual Network. + attr_accessor :vnet_resource_group_name + + # @return [String] Subnet of the Virtual Network. + attr_accessor :vnet_subnet_name + + # @return [VirtualNetworkProfile] Description of the Virtual Network. + attr_accessor :virtual_network + + # @return [InternalLoadBalancingMode] Specifies which endpoints to serve + # internally in the Virtual Network for the App Service Environment. + # Possible values include: 'None', 'Web', 'Publishing' + attr_accessor :internal_load_balancing_mode + + # @return [String] Front-end VM size, e.g. "Medium", "Large". + attr_accessor :multi_size + + # @return [Integer] Number of front-end instances. + attr_accessor :multi_role_count + + # @return [Array] Description of worker pools with worker + # size IDs, VM sizes, and number of workers in each pool. + attr_accessor :worker_pools + + # @return [Integer] Number of IP SSL addresses reserved for the App + # Service Environment. + attr_accessor :ipssl_address_count + + # @return [String] Edition of the metadata database for the App Service + # Environment, e.g. "Standard". + attr_accessor :database_edition + + # @return [String] Service objective of the metadata database for the App + # Service Environment, e.g. "S0". + attr_accessor :database_service_objective + + # @return [Integer] Number of upgrade domains of the App Service + # Environment. + attr_accessor :upgrade_domains + + # @return [String] Subscription of the App Service Environment. + attr_accessor :subscription_id + + # @return [String] DNS suffix of the App Service Environment. + attr_accessor :dns_suffix + + # @return [String] Last deployment action on the App Service Environment. + attr_accessor :last_action + + # @return [String] Result of the last deployment action on the App + # Service Environment. + attr_accessor :last_action_result + + # @return [String] List of comma separated strings describing which VM + # sizes are allowed for front-ends. + attr_accessor :allowed_multi_sizes + + # @return [String] List of comma separated strings describing which VM + # sizes are allowed for workers. + attr_accessor :allowed_worker_sizes + + # @return [Integer] Maximum number of VMs in the App Service Environment. + attr_accessor :maximum_number_of_machines + + # @return [Array] Description of IP SSL mapping for the + # App Service Environment. + attr_accessor :vip_mappings + + # @return [Array] Current total, used, and available + # worker capacities. + attr_accessor :environment_capacities + + # @return [Array] Access control list for + # controlling traffic to the App Service Environment. + attr_accessor :network_access_control_list + + # @return [Boolean] True/false indicating whether the App Service + # Environment is healthy. + attr_accessor :environment_is_healthy + + # @return [String] Detailed message about with results of the last check + # of the App Service Environment. + attr_accessor :environment_status + + # @return [String] Resource group of the App Service Environment. + attr_accessor :resource_group + + # @return [Integer] Scale factor for front-ends. + attr_accessor :front_end_scale_factor + + # @return [Integer] Default Scale Factor for FrontEnds. + attr_accessor :default_front_end_scale_factor + + # @return [String] API Management Account associated with the App Service + # Environment. + attr_accessor :api_management_account_id + + # @return [Boolean] true if the App Service Environment is + # suspended; otherwise, false. The environment can be + # suspended, e.g. when the management endpoint is no longer available + # (most likely because NSG blocked the incoming traffic). + attr_accessor :suspended + + # @return [Boolean] True/false indicating whether the App Service + # Environment is suspended. The environment can be suspended e.g. when + # the management endpoint is no longer available + # (most likely because NSG blocked the incoming traffic). + attr_accessor :dynamic_cache_enabled + + # @return [Array] Custom settings for changing the + # behavior of the App Service Environment. + attr_accessor :cluster_settings + + # @return [Array] User added ip ranges to whitelist on ASE db + attr_accessor :user_whitelisted_ip_ranges + + + # + # Mapper for AppServiceEnvironmentPatchResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AppServiceEnvironmentPatchResource', + type: { + name: 'Composite', + class_name: 'AppServiceEnvironmentPatchResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + app_service_environment_patch_resource_name: { + required: true, + serialized_name: 'properties.name', + type: { + name: 'String' + } + }, + location: { + required: true, + serialized_name: 'properties.location', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'Enum', + module: 'ProvisioningState' + } + }, + status: { + required: false, + read_only: true, + serialized_name: 'properties.status', + type: { + name: 'Enum', + module: 'HostingEnvironmentStatus' + } + }, + vnet_name: { + required: false, + serialized_name: 'properties.vnetName', + type: { + name: 'String' + } + }, + vnet_resource_group_name: { + required: false, + serialized_name: 'properties.vnetResourceGroupName', + type: { + name: 'String' + } + }, + vnet_subnet_name: { + required: false, + serialized_name: 'properties.vnetSubnetName', + type: { + name: 'String' + } + }, + virtual_network: { + required: true, + serialized_name: 'properties.virtualNetwork', + type: { + name: 'Composite', + class_name: 'VirtualNetworkProfile' + } + }, + internal_load_balancing_mode: { + required: false, + serialized_name: 'properties.internalLoadBalancingMode', + type: { + name: 'Enum', + module: 'InternalLoadBalancingMode' + } + }, + multi_size: { + required: false, + serialized_name: 'properties.multiSize', + type: { + name: 'String' + } + }, + multi_role_count: { + required: false, + serialized_name: 'properties.multiRoleCount', + type: { + name: 'Number' + } + }, + worker_pools: { + required: true, + serialized_name: 'properties.workerPools', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'WorkerPoolElementType', + type: { + name: 'Composite', + class_name: 'WorkerPool' + } + } + } + }, + ipssl_address_count: { + required: false, + serialized_name: 'properties.ipsslAddressCount', + type: { + name: 'Number' + } + }, + database_edition: { + required: false, + read_only: true, + serialized_name: 'properties.databaseEdition', + type: { + name: 'String' + } + }, + database_service_objective: { + required: false, + read_only: true, + serialized_name: 'properties.databaseServiceObjective', + type: { + name: 'String' + } + }, + upgrade_domains: { + required: false, + read_only: true, + serialized_name: 'properties.upgradeDomains', + type: { + name: 'Number' + } + }, + subscription_id: { + required: false, + read_only: true, + serialized_name: 'properties.subscriptionId', + type: { + name: 'String' + } + }, + dns_suffix: { + required: false, + serialized_name: 'properties.dnsSuffix', + type: { + name: 'String' + } + }, + last_action: { + required: false, + read_only: true, + serialized_name: 'properties.lastAction', + type: { + name: 'String' + } + }, + last_action_result: { + required: false, + read_only: true, + serialized_name: 'properties.lastActionResult', + type: { + name: 'String' + } + }, + allowed_multi_sizes: { + required: false, + read_only: true, + serialized_name: 'properties.allowedMultiSizes', + type: { + name: 'String' + } + }, + allowed_worker_sizes: { + required: false, + read_only: true, + serialized_name: 'properties.allowedWorkerSizes', + type: { + name: 'String' + } + }, + maximum_number_of_machines: { + required: false, + read_only: true, + serialized_name: 'properties.maximumNumberOfMachines', + type: { + name: 'Number' + } + }, + vip_mappings: { + required: false, + read_only: true, + serialized_name: 'properties.vipMappings', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'VirtualIPMappingElementType', + type: { + name: 'Composite', + class_name: 'VirtualIPMapping' + } + } + } + }, + environment_capacities: { + required: false, + read_only: true, + serialized_name: 'properties.environmentCapacities', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StampCapacityElementType', + type: { + name: 'Composite', + class_name: 'StampCapacity' + } + } + } + }, + network_access_control_list: { + required: false, + serialized_name: 'properties.networkAccessControlList', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'NetworkAccessControlEntryElementType', + type: { + name: 'Composite', + class_name: 'NetworkAccessControlEntry' + } + } + } + }, + environment_is_healthy: { + required: false, + read_only: true, + serialized_name: 'properties.environmentIsHealthy', + type: { + name: 'Boolean' + } + }, + environment_status: { + required: false, + read_only: true, + serialized_name: 'properties.environmentStatus', + type: { + name: 'String' + } + }, + resource_group: { + required: false, + read_only: true, + serialized_name: 'properties.resourceGroup', + type: { + name: 'String' + } + }, + front_end_scale_factor: { + required: false, + serialized_name: 'properties.frontEndScaleFactor', + type: { + name: 'Number' + } + }, + default_front_end_scale_factor: { + required: false, + read_only: true, + serialized_name: 'properties.defaultFrontEndScaleFactor', + type: { + name: 'Number' + } + }, + api_management_account_id: { + required: false, + serialized_name: 'properties.apiManagementAccountId', + type: { + name: 'String' + } + }, + suspended: { + required: false, + serialized_name: 'properties.suspended', + type: { + name: 'Boolean' + } + }, + dynamic_cache_enabled: { + required: false, + serialized_name: 'properties.dynamicCacheEnabled', + type: { + name: 'Boolean' + } + }, + cluster_settings: { + required: false, + serialized_name: 'properties.clusterSettings', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'NameValuePairElementType', + type: { + name: 'Composite', + class_name: 'NameValuePair' + } + } + } + }, + user_whitelisted_ip_ranges: { + required: false, + serialized_name: 'properties.userWhitelistedIpRanges', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb index 8b16919908..8e7695634f 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb @@ -146,6 +146,9 @@ class AppServiceEnvironmentResource < Resource # behavior of the App Service Environment. attr_accessor :cluster_settings + # @return [Array] User added ip ranges to whitelist on ASE db + attr_accessor :user_whitelisted_ip_ranges + # # Mapper for AppServiceEnvironmentResource class as Ruby Hash. @@ -516,6 +519,20 @@ def self.mapper() } } } + }, + user_whitelisted_ip_ranges: { + required: false, + serialized_name: 'properties.userWhitelistedIpRanges', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } } } } diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan.rb index 812192d0da..9b8a577b73 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan.rb @@ -19,7 +19,7 @@ class AppServicePlan < Resource attr_accessor :worker_tier_name # @return [StatusOptions] App Service plan status. Possible values - # include: 'Ready', 'Pending' + # include: 'Ready', 'Pending', 'Creating' attr_accessor :status # @return [String] App Service plan subscription. @@ -48,6 +48,14 @@ class AppServicePlan < Resource # @return [Integer] Number of apps assigned to this App Service plan. attr_accessor :number_of_sites + # @return [Boolean] If true, this App Service Plan owns spot + # instances. + attr_accessor :is_spot + + # @return [DateTime] The time when the server farm expires. Valid only if + # it is a spot server farm. + attr_accessor :spot_expiration_time + # @return [String] Resource group of the App Service plan. attr_accessor :resource_group @@ -211,6 +219,20 @@ def self.mapper() name: 'Number' } }, + is_spot: { + required: false, + serialized_name: 'properties.isSpot', + type: { + name: 'Boolean' + } + }, + spot_expiration_time: { + required: false, + serialized_name: 'properties.spotExpirationTime', + type: { + name: 'DateTime' + } + }, resource_group: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb new file mode 100644 index 0000000000..283162f4ea --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb @@ -0,0 +1,257 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_09_01 + module Models + # + # ARM resource for a app service plan. + # + class AppServicePlanPatchResource < ProxyOnlyResource + + include MsRestAzure + + # @return [String] Name for the App Service plan. + attr_accessor :app_service_plan_patch_resource_name + + # @return [String] Target worker tier assigned to the App Service plan. + attr_accessor :worker_tier_name + + # @return [StatusOptions] App Service plan status. Possible values + # include: 'Ready', 'Pending', 'Creating' + attr_accessor :status + + # @return [String] App Service plan subscription. + attr_accessor :subscription + + # @return [String] App Service plan administration site. + attr_accessor :admin_site_name + + # @return [HostingEnvironmentProfile] Specification for the App Service + # Environment to use for the App Service plan. + attr_accessor :hosting_environment_profile + + # @return [Integer] Maximum number of instances that can be assigned to + # this App Service plan. + attr_accessor :maximum_number_of_workers + + # @return [String] Geographical location for the App Service plan. + attr_accessor :geo_region + + # @return [Boolean] If true, apps assigned to this App + # Service plan can be scaled independently. + # If false, apps assigned to this App Service plan will + # scale to all instances of the plan. Default value: false . + attr_accessor :per_site_scaling + + # @return [Integer] Number of apps assigned to this App Service plan. + attr_accessor :number_of_sites + + # @return [Boolean] If true, this App Service Plan owns spot + # instances. + attr_accessor :is_spot + + # @return [DateTime] The time when the server farm expires. Valid only if + # it is a spot server farm. + attr_accessor :spot_expiration_time + + # @return [String] Resource group of the App Service plan. + attr_accessor :resource_group + + # @return [Boolean] Reserved. Default value: false . + attr_accessor :reserved + + # @return [Integer] Scaling worker count. + attr_accessor :target_worker_count + + # @return [Integer] Scaling worker size ID. + attr_accessor :target_worker_size_id + + # @return [ProvisioningState] Provisioning state of the App Service + # Environment. Possible values include: 'Succeeded', 'Failed', + # 'Canceled', 'InProgress', 'Deleting' + attr_accessor :provisioning_state + + + # + # Mapper for AppServicePlanPatchResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AppServicePlanPatchResource', + type: { + name: 'Composite', + class_name: 'AppServicePlanPatchResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + app_service_plan_patch_resource_name: { + required: false, + serialized_name: 'properties.name', + type: { + name: 'String' + } + }, + worker_tier_name: { + required: false, + serialized_name: 'properties.workerTierName', + type: { + name: 'String' + } + }, + status: { + required: false, + read_only: true, + serialized_name: 'properties.status', + type: { + name: 'Enum', + module: 'StatusOptions' + } + }, + subscription: { + required: false, + read_only: true, + serialized_name: 'properties.subscription', + type: { + name: 'String' + } + }, + admin_site_name: { + required: false, + serialized_name: 'properties.adminSiteName', + type: { + name: 'String' + } + }, + hosting_environment_profile: { + required: false, + serialized_name: 'properties.hostingEnvironmentProfile', + type: { + name: 'Composite', + class_name: 'HostingEnvironmentProfile' + } + }, + maximum_number_of_workers: { + required: false, + read_only: true, + serialized_name: 'properties.maximumNumberOfWorkers', + type: { + name: 'Number' + } + }, + geo_region: { + required: false, + read_only: true, + serialized_name: 'properties.geoRegion', + type: { + name: 'String' + } + }, + per_site_scaling: { + required: false, + serialized_name: 'properties.perSiteScaling', + default_value: false, + type: { + name: 'Boolean' + } + }, + number_of_sites: { + required: false, + read_only: true, + serialized_name: 'properties.numberOfSites', + type: { + name: 'Number' + } + }, + is_spot: { + required: false, + serialized_name: 'properties.isSpot', + type: { + name: 'Boolean' + } + }, + spot_expiration_time: { + required: false, + serialized_name: 'properties.spotExpirationTime', + type: { + name: 'DateTime' + } + }, + resource_group: { + required: false, + read_only: true, + serialized_name: 'properties.resourceGroup', + type: { + name: 'String' + } + }, + reserved: { + required: false, + serialized_name: 'properties.reserved', + default_value: false, + type: { + name: 'Boolean' + } + }, + target_worker_count: { + required: false, + serialized_name: 'properties.targetWorkerCount', + type: { + name: 'Number' + } + }, + target_worker_size_id: { + required: false, + serialized_name: 'properties.targetWorkerSizeId', + type: { + name: 'Number' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'Enum', + module: 'ProvisioningState' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/cloning_info.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/cloning_info.rb index 8dd49e88a9..4d7827cbc1 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/cloning_info.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/cloning_info.rb @@ -12,8 +12,8 @@ class CloningInfo include MsRestAzure - # @return [String] Correlation ID of cloning operation. This ID ties - # multiple cloning operations + # @return Correlation ID of cloning operation. This ID ties multiple + # cloning operations # together to use the same snapshot. attr_accessor :correlation_id diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/hybrid_connection.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/hybrid_connection.rb index 73defd8df1..9d14b3770c 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/hybrid_connection.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/hybrid_connection.rb @@ -37,6 +37,10 @@ class HybridConnection < ProxyOnlyResource # normally, use the POST /listKeys API instead. attr_accessor :send_key_value + # @return [String] The suffix for the service bus endpoint. By default + # this is .servicebus.windows.net + attr_accessor :service_bus_suffix + # # Mapper for HybridConnection class as Ruby Hash. @@ -129,6 +133,13 @@ def self.mapper() type: { name: 'String' } + }, + service_bus_suffix: { + required: false, + serialized_name: 'properties.serviceBusSuffix', + type: { + name: 'String' + } } } } diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb new file mode 100644 index 0000000000..e29a73797b --- /dev/null +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb @@ -0,0 +1,66 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Web::Mgmt::V2016_09_01 + module Models + # + # Managed service identity. + # + class ManagedServiceIdentity + + include MsRestAzure + + # @return Type of managed service identity. + attr_accessor :type + + # @return [String] Tenant of managed service identity. + attr_accessor :tenant_id + + # @return [String] Principal Id of managed service identity. + attr_accessor :principal_id + + + # + # Mapper for ManagedServiceIdentity class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ManagedServiceIdentity', + type: { + name: 'Composite', + class_name: 'ManagedServiceIdentity', + model_properties: { + type: { + required: false, + serialized_name: 'type', + type: { + name: 'Object' + } + }, + tenant_id: { + required: false, + read_only: true, + serialized_name: 'tenantId', + type: { + name: 'String' + } + }, + principal_id: { + required: false, + read_only: true, + serialized_name: 'principalId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/operation.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/operation.rb index 8c477e784b..2f52f9f22d 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/operation.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/operation.rb @@ -35,7 +35,7 @@ class Operation # @return [DateTime] Time when operation will expire. attr_accessor :expiration_time - # @return [String] Applicable only for stamp operation ids. + # @return Applicable only for stamp operation ids. attr_accessor :geo_master_operation_id diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/site.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/site.rb index 07eab8a148..b3ebb4c5d7 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/site.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/site.rb @@ -63,9 +63,6 @@ class Site < Resource # the app. Read-only. attr_accessor :traffic_manager_host_names - # @return [Boolean] Indicates whether app is deployed as a premium app. - attr_accessor :premium_app_deployed - # @return [Boolean] true to stop SCM (KUDU) site when the # app is stopped; otherwise, false. The default is # false. Default value: false . @@ -79,13 +76,6 @@ class Site < Resource # the app. attr_accessor :hosting_environment_profile - # @return [String] Micro services like apps, logic apps. Default value: - # 'WebSites' . - attr_accessor :micro_service - - # @return [String] Name of gateway app associated with the app. - attr_accessor :gateway_site_name - # @return [Boolean] true to enable client affinity; # false to stop sending session affinity cookies, which # route client requests in the same session to the same instance. Default @@ -104,9 +94,15 @@ class Site < Resource attr_accessor :host_names_disabled # @return [String] List of IP addresses that the app uses for outbound - # connections (e.g. database access). Read-only. + # connections (e.g. database access). Includes VIPs from tenants that + # site can be hosted with current settings. Read-only. attr_accessor :outbound_ip_addresses + # @return [String] List of IP addresses that the app uses for outbound + # connections (e.g. database access). Includes VIPs from all tenants. + # Read-only. + attr_accessor :possible_outbound_ip_addresses + # @return [Integer] Size of the function container. attr_accessor :container_size @@ -145,6 +141,14 @@ class Site < Resource # operation. attr_accessor :slot_swap_status + # @return [Boolean] HttpsOnly: configures a web site to accept only https + # requests. Issues redirect for + # http requests + attr_accessor :https_only + + # @return [ManagedServiceIdentity] + attr_accessor :identity + # # Mapper for Site class as Ruby Hash. @@ -342,14 +346,6 @@ def self.mapper() } } }, - premium_app_deployed: { - required: false, - read_only: true, - serialized_name: 'properties.premiumAppDeployed', - type: { - name: 'Boolean' - } - }, scm_site_also_stopped: { required: false, serialized_name: 'properties.scmSiteAlsoStopped', @@ -374,21 +370,6 @@ def self.mapper() class_name: 'HostingEnvironmentProfile' } }, - micro_service: { - required: false, - serialized_name: 'properties.microService', - default_value: 'WebSites', - type: { - name: 'String' - } - }, - gateway_site_name: { - required: false, - serialized_name: 'properties.gatewaySiteName', - type: { - name: 'String' - } - }, client_affinity_enabled: { required: false, serialized_name: 'properties.clientAffinityEnabled', @@ -418,6 +399,14 @@ def self.mapper() name: 'String' } }, + possible_outbound_ip_addresses: { + required: false, + read_only: true, + serialized_name: 'properties.possibleOutboundIpAddresses', + type: { + name: 'String' + } + }, container_size: { required: false, serialized_name: 'properties.containerSize', @@ -496,6 +485,21 @@ def self.mapper() name: 'Composite', class_name: 'SlotSwapStatus' } + }, + https_only: { + required: false, + serialized_name: 'properties.httpsOnly', + type: { + name: 'Boolean' + } + }, + identity: { + required: false, + serialized_name: 'identity', + type: { + name: 'Composite', + class_name: 'ManagedServiceIdentity' + } } } } diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb index 97911a95af..33a8a56904 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb @@ -31,7 +31,7 @@ class StampCapacity attr_accessor :compute_mode # @return [WorkerSizeOptions] Size of the machines. Possible values - # include: 'Default', 'Small', 'Medium', 'Large' + # include: 'Default', 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3' attr_accessor :worker_size # @return [Integer] Size ID of machines: diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/status_options.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/status_options.rb index 9da45f0b27..237a490e91 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/status_options.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/status_options.rb @@ -11,6 +11,7 @@ module Models module StatusOptions Ready = "Ready" Pending = "Pending" + Creating = "Creating" end end end diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/vnet_info.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/vnet_info.rb index 5cb66ae2e9..92fad4d0c0 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/vnet_info.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/vnet_info.rb @@ -18,8 +18,8 @@ class VnetInfo < ProxyOnlyResource # @return [String] The client certificate thumbprint. attr_accessor :cert_thumbprint - # @return [String] A certificate file (.cer) blob containing the public - # key of the private key used to authenticate a + # @return [Array] A certificate file (.cer) blob containing the + # public key of the private key used to authenticate a # Point-To-Site VPN connection. attr_accessor :cert_blob @@ -98,7 +98,7 @@ def self.mapper() required: false, serialized_name: 'properties.certBlob', type: { - name: 'String' + name: 'ByteArray' } }, routes: { diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/worker_size_options.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/worker_size_options.rb index 3a2e8d8e1c..8f96ce2646 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/worker_size_options.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/models/worker_size_options.rb @@ -13,6 +13,9 @@ module WorkerSizeOptions Small = "Small" Medium = "Medium" Large = "Large" + D1 = "D1" + D2 = "D2" + D3 = "D3" end end end