azure_mgmt_cdn 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_cdn.gemspec +4 -4
- data/lib/azure_mgmt_cdn.rb +3 -76
- data/lib/generated/azure_mgmt_cdn.rb +69 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/cdn_management_client.rb +8 -8
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/custom_domains.rb +87 -55
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/endpoints.rb +226 -109
- data/lib/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +56 -0
- data/lib/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +65 -0
- data/lib/generated/azure_mgmt_cdn/models/custom_domain.rb +96 -0
- data/lib/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +53 -0
- data/lib/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +45 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/models/custom_domain_resource_state.rb +0 -0
- data/lib/generated/azure_mgmt_cdn/models/deep_created_origin.rb +77 -0
- data/lib/generated/azure_mgmt_cdn/models/endpoint.rb +230 -0
- data/lib/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +173 -0
- data/lib/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +52 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/models/endpoint_resource_state.rb +0 -0
- data/lib/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +143 -0
- data/lib/generated/azure_mgmt_cdn/models/error_response.rb +54 -0
- data/lib/generated/azure_mgmt_cdn/models/load_parameters.rb +52 -0
- data/lib/generated/azure_mgmt_cdn/models/operation.rb +55 -0
- data/lib/generated/azure_mgmt_cdn/models/operation_display.rb +65 -0
- data/lib/generated/azure_mgmt_cdn/models/operation_list_result.rb +53 -0
- data/lib/generated/azure_mgmt_cdn/models/origin.rb +119 -0
- data/lib/generated/azure_mgmt_cdn/models/origin_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_cdn/models/origin_parameters.rb +67 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/models/origin_resource_state.rb +0 -0
- data/lib/generated/azure_mgmt_cdn/models/profile.rb +118 -0
- data/lib/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +72 -0
- data/lib/generated/azure_mgmt_cdn/models/profile_list_result.rb +52 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/models/profile_resource_state.rb +0 -0
- data/lib/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +51 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/models/provisioning_state.rb +0 -0
- data/lib/generated/azure_mgmt_cdn/models/purge_parameters.rb +52 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/models/query_string_caching_behavior.rb +0 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/models/resource_type.rb +0 -0
- data/lib/generated/azure_mgmt_cdn/models/sku.rb +47 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/models/sku_name.rb +0 -0
- data/lib/generated/azure_mgmt_cdn/models/sso_uri.rb +44 -0
- data/lib/generated/azure_mgmt_cdn/models/tracked_resource.rb +85 -0
- data/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +45 -0
- data/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +66 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/name_availability.rb +10 -10
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/operations.rb +4 -4
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/origins.rb +112 -68
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/profiles.rb +107 -69
- data/lib/{azure_mgmt_cdn → generated/azure_mgmt_cdn}/version.rb +1 -1
- metadata +67 -80
- data/lib/azure_mgmt_cdn/models/check_name_availability_input.rb +0 -71
- data/lib/azure_mgmt_cdn/models/check_name_availability_output.rb +0 -75
- data/lib/azure_mgmt_cdn/models/custom_domain.rb +0 -82
- data/lib/azure_mgmt_cdn/models/custom_domain_list_result.rb +0 -77
- data/lib/azure_mgmt_cdn/models/custom_domain_parameters.rb +0 -62
- data/lib/azure_mgmt_cdn/models/custom_domain_properties.rb +0 -85
- data/lib/azure_mgmt_cdn/models/custom_domain_properties_parameters.rb +0 -57
- data/lib/azure_mgmt_cdn/models/deep_created_origin.rb +0 -72
- data/lib/azure_mgmt_cdn/models/deep_created_origin_properties.rb +0 -79
- data/lib/azure_mgmt_cdn/models/endpoint.rb +0 -95
- data/lib/azure_mgmt_cdn/models/endpoint_create_parameters.rb +0 -82
- data/lib/azure_mgmt_cdn/models/endpoint_list_result.rb +0 -76
- data/lib/azure_mgmt_cdn/models/endpoint_properties.rb +0 -197
- data/lib/azure_mgmt_cdn/models/endpoint_properties_create_parameters.rb +0 -161
- data/lib/azure_mgmt_cdn/models/endpoint_properties_update_parameters.rb +0 -128
- data/lib/azure_mgmt_cdn/models/endpoint_update_parameters.rb +0 -72
- data/lib/azure_mgmt_cdn/models/error_response.rb +0 -65
- data/lib/azure_mgmt_cdn/models/load_parameters.rb +0 -58
- data/lib/azure_mgmt_cdn/models/operation.rb +0 -71
- data/lib/azure_mgmt_cdn/models/operation_display.rb +0 -75
- data/lib/azure_mgmt_cdn/models/operation_list_result.rb +0 -77
- data/lib/azure_mgmt_cdn/models/origin.rb +0 -83
- data/lib/azure_mgmt_cdn/models/origin_list_result.rb +0 -76
- data/lib/azure_mgmt_cdn/models/origin_parameters.rb +0 -62
- data/lib/azure_mgmt_cdn/models/origin_properties.rb +0 -107
- data/lib/azure_mgmt_cdn/models/origin_properties_parameters.rb +0 -79
- data/lib/azure_mgmt_cdn/models/profile.rb +0 -111
- data/lib/azure_mgmt_cdn/models/profile_create_parameters.rb +0 -83
- data/lib/azure_mgmt_cdn/models/profile_list_result.rb +0 -76
- data/lib/azure_mgmt_cdn/models/profile_properties.rb +0 -74
- data/lib/azure_mgmt_cdn/models/profile_update_parameters.rb +0 -57
- data/lib/azure_mgmt_cdn/models/purge_parameters.rb +0 -58
- data/lib/azure_mgmt_cdn/models/sku.rb +0 -61
- data/lib/azure_mgmt_cdn/models/sso_uri.rb +0 -56
- data/lib/azure_mgmt_cdn/models/tracked_resource.rb +0 -85
- data/lib/azure_mgmt_cdn/models/validate_custom_domain_input.rb +0 -57
- data/lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb +0 -76
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YzA0Mzc2YzVlZGQ3NjQyZjgxOWM1ZGI0YjBjOGJiMTRhYmRiMjY3Yg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9b3f3a306570a191d4716f93b528a2cacb4834c4
|
4
|
+
data.tar.gz: 6a8c13cf7b5b40fca09bac20ee73f19dda1824bc
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NjU4NDkzOGJiZWQ2YzVlNWFjODU3NzJlYzIxYmNiMDJmZjIwZmRlNzNlODRj
|
11
|
-
NWFjMmQ1MjQ0MjQ2NjY5ZTYwYTQxMjljNDA0ZmIzNTdjODFiNTU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YzU1MmQ5M2MxNjFlYjU5MThjNTM0MDIwYjEyYjFjMzBmYmI4ZTBjNjg1ZmFm
|
14
|
-
YjdkNDkzY2M1ZTA5YWQ1MWZhZDBjN2ViYWUxMmY5MTkyZTVkYmU0OGY2ZDIy
|
15
|
-
NDNiZDA2MTIxODU3NzlmODdlY2YzNjhlNjI2M2FkYmQzMGY0ZDE=
|
6
|
+
metadata.gz: be83423cbf49079778cd130e3f3cd73758f2f3455bc9085468c9f4cee5a03ad868ad1f223075572126c5a95c6a009c67e027b790d561149c527fdd51b6ddcbb6
|
7
|
+
data.tar.gz: 68540fe4a94f2564c41ff15217053d69e73b2f51befeb9f8991e2e76fb97a77878eff7dd719b515cc0b2ce52689cafbfd58dfab5d39fcee53aca4658fc4fc7d0
|
data/azure_mgmt_cdn.gemspec
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
lib = File.expand_path('../lib', __FILE__)
|
6
6
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
7
7
|
|
8
|
-
require 'azure_mgmt_cdn/module_definition'
|
9
|
-
require 'azure_mgmt_cdn/version'
|
8
|
+
require 'generated/azure_mgmt_cdn/module_definition'
|
9
|
+
require 'generated/azure_mgmt_cdn/version'
|
10
10
|
|
11
11
|
Gem::Specification.new do |spec|
|
12
12
|
spec.name = 'azure_mgmt_cdn'
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.email = 'azrubyteam@microsoft.com'
|
16
16
|
spec.description = 'Microsoft Azure CDN Management Client Library for Ruby'
|
17
17
|
spec.summary = 'Official Ruby client library to consume Microsoft Azure CDN Management services.'
|
18
|
-
spec.homepage = '
|
18
|
+
spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
|
19
19
|
spec.license = 'MIT'
|
20
20
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3'
|
31
31
|
spec.add_development_dependency 'dotenv', '~> 2'
|
32
32
|
|
33
|
-
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.
|
33
|
+
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.3.0'
|
34
34
|
end
|
data/lib/azure_mgmt_cdn.rb
CHANGED
@@ -1,78 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
#
|
3
|
-
#
|
4
|
-
# regenerated.
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
5
4
|
|
6
|
-
require '
|
7
|
-
require 'cgi'
|
8
|
-
require 'date'
|
9
|
-
require 'json'
|
10
|
-
require 'base64'
|
11
|
-
require 'erb'
|
12
|
-
require 'securerandom'
|
13
|
-
require 'time'
|
14
|
-
require 'timeliness'
|
15
|
-
require 'faraday'
|
16
|
-
require 'faraday-cookie_jar'
|
17
|
-
require 'concurrent'
|
18
|
-
require 'ms_rest'
|
19
|
-
require 'azure_mgmt_cdn/module_definition'
|
20
|
-
require 'ms_rest_azure'
|
21
|
-
|
22
|
-
module Azure::ARM::CDN
|
23
|
-
autoload :Profiles, 'azure_mgmt_cdn/profiles.rb'
|
24
|
-
autoload :Endpoints, 'azure_mgmt_cdn/endpoints.rb'
|
25
|
-
autoload :Origins, 'azure_mgmt_cdn/origins.rb'
|
26
|
-
autoload :CustomDomains, 'azure_mgmt_cdn/custom_domains.rb'
|
27
|
-
autoload :NameAvailability, 'azure_mgmt_cdn/name_availability.rb'
|
28
|
-
autoload :Operations, 'azure_mgmt_cdn/operations.rb'
|
29
|
-
autoload :CdnManagementClient, 'azure_mgmt_cdn/cdn_management_client.rb'
|
30
|
-
|
31
|
-
module Models
|
32
|
-
autoload :Sku, 'azure_mgmt_cdn/models/sku.rb'
|
33
|
-
autoload :ProfileProperties, 'azure_mgmt_cdn/models/profile_properties.rb'
|
34
|
-
autoload :ProfileListResult, 'azure_mgmt_cdn/models/profile_list_result.rb'
|
35
|
-
autoload :ProfileCreateParameters, 'azure_mgmt_cdn/models/profile_create_parameters.rb'
|
36
|
-
autoload :ProfileUpdateParameters, 'azure_mgmt_cdn/models/profile_update_parameters.rb'
|
37
|
-
autoload :SsoUri, 'azure_mgmt_cdn/models/sso_uri.rb'
|
38
|
-
autoload :EndpointProperties, 'azure_mgmt_cdn/models/endpoint_properties.rb'
|
39
|
-
autoload :DeepCreatedOrigin, 'azure_mgmt_cdn/models/deep_created_origin.rb'
|
40
|
-
autoload :DeepCreatedOriginProperties, 'azure_mgmt_cdn/models/deep_created_origin_properties.rb'
|
41
|
-
autoload :EndpointListResult, 'azure_mgmt_cdn/models/endpoint_list_result.rb'
|
42
|
-
autoload :EndpointCreateParameters, 'azure_mgmt_cdn/models/endpoint_create_parameters.rb'
|
43
|
-
autoload :EndpointPropertiesCreateParameters, 'azure_mgmt_cdn/models/endpoint_properties_create_parameters.rb'
|
44
|
-
autoload :EndpointUpdateParameters, 'azure_mgmt_cdn/models/endpoint_update_parameters.rb'
|
45
|
-
autoload :EndpointPropertiesUpdateParameters, 'azure_mgmt_cdn/models/endpoint_properties_update_parameters.rb'
|
46
|
-
autoload :PurgeParameters, 'azure_mgmt_cdn/models/purge_parameters.rb'
|
47
|
-
autoload :LoadParameters, 'azure_mgmt_cdn/models/load_parameters.rb'
|
48
|
-
autoload :OriginProperties, 'azure_mgmt_cdn/models/origin_properties.rb'
|
49
|
-
autoload :OriginParameters, 'azure_mgmt_cdn/models/origin_parameters.rb'
|
50
|
-
autoload :OriginPropertiesParameters, 'azure_mgmt_cdn/models/origin_properties_parameters.rb'
|
51
|
-
autoload :OriginListResult, 'azure_mgmt_cdn/models/origin_list_result.rb'
|
52
|
-
autoload :CustomDomainProperties, 'azure_mgmt_cdn/models/custom_domain_properties.rb'
|
53
|
-
autoload :CustomDomainParameters, 'azure_mgmt_cdn/models/custom_domain_parameters.rb'
|
54
|
-
autoload :CustomDomainPropertiesParameters, 'azure_mgmt_cdn/models/custom_domain_properties_parameters.rb'
|
55
|
-
autoload :CustomDomainListResult, 'azure_mgmt_cdn/models/custom_domain_list_result.rb'
|
56
|
-
autoload :ValidateCustomDomainInput, 'azure_mgmt_cdn/models/validate_custom_domain_input.rb'
|
57
|
-
autoload :ValidateCustomDomainOutput, 'azure_mgmt_cdn/models/validate_custom_domain_output.rb'
|
58
|
-
autoload :CheckNameAvailabilityInput, 'azure_mgmt_cdn/models/check_name_availability_input.rb'
|
59
|
-
autoload :CheckNameAvailabilityOutput, 'azure_mgmt_cdn/models/check_name_availability_output.rb'
|
60
|
-
autoload :Operation, 'azure_mgmt_cdn/models/operation.rb'
|
61
|
-
autoload :OperationDisplay, 'azure_mgmt_cdn/models/operation_display.rb'
|
62
|
-
autoload :OperationListResult, 'azure_mgmt_cdn/models/operation_list_result.rb'
|
63
|
-
autoload :ErrorResponse, 'azure_mgmt_cdn/models/error_response.rb'
|
64
|
-
autoload :Origin, 'azure_mgmt_cdn/models/origin.rb'
|
65
|
-
autoload :CustomDomain, 'azure_mgmt_cdn/models/custom_domain.rb'
|
66
|
-
autoload :TrackedResource, 'azure_mgmt_cdn/models/tracked_resource.rb'
|
67
|
-
autoload :Profile, 'azure_mgmt_cdn/models/profile.rb'
|
68
|
-
autoload :Endpoint, 'azure_mgmt_cdn/models/endpoint.rb'
|
69
|
-
autoload :SkuName, 'azure_mgmt_cdn/models/sku_name.rb'
|
70
|
-
autoload :ProfileResourceState, 'azure_mgmt_cdn/models/profile_resource_state.rb'
|
71
|
-
autoload :ProvisioningState, 'azure_mgmt_cdn/models/provisioning_state.rb'
|
72
|
-
autoload :QueryStringCachingBehavior, 'azure_mgmt_cdn/models/query_string_caching_behavior.rb'
|
73
|
-
autoload :EndpointResourceState, 'azure_mgmt_cdn/models/endpoint_resource_state.rb'
|
74
|
-
autoload :OriginResourceState, 'azure_mgmt_cdn/models/origin_resource_state.rb'
|
75
|
-
autoload :CustomDomainResourceState, 'azure_mgmt_cdn/models/custom_domain_resource_state.rb'
|
76
|
-
autoload :ResourceType, 'azure_mgmt_cdn/models/resource_type.rb'
|
77
|
-
end
|
78
|
-
end
|
5
|
+
require 'generated/azure_mgmt_cdn'
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require 'generated/azure_mgmt_cdn/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ARM::CDN
|
23
|
+
autoload :Profiles, 'generated/azure_mgmt_cdn/profiles.rb'
|
24
|
+
autoload :Endpoints, 'generated/azure_mgmt_cdn/endpoints.rb'
|
25
|
+
autoload :Origins, 'generated/azure_mgmt_cdn/origins.rb'
|
26
|
+
autoload :CustomDomains, 'generated/azure_mgmt_cdn/custom_domains.rb'
|
27
|
+
autoload :NameAvailability, 'generated/azure_mgmt_cdn/name_availability.rb'
|
28
|
+
autoload :Operations, 'generated/azure_mgmt_cdn/operations.rb'
|
29
|
+
autoload :CdnManagementClient, 'generated/azure_mgmt_cdn/cdn_management_client.rb'
|
30
|
+
|
31
|
+
module Models
|
32
|
+
autoload :Sku, 'generated/azure_mgmt_cdn/models/sku.rb'
|
33
|
+
autoload :ProfileListResult, 'generated/azure_mgmt_cdn/models/profile_list_result.rb'
|
34
|
+
autoload :ProfileCreateParameters, 'generated/azure_mgmt_cdn/models/profile_create_parameters.rb'
|
35
|
+
autoload :ProfileUpdateParameters, 'generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
|
36
|
+
autoload :SsoUri, 'generated/azure_mgmt_cdn/models/sso_uri.rb'
|
37
|
+
autoload :DeepCreatedOrigin, 'generated/azure_mgmt_cdn/models/deep_created_origin.rb'
|
38
|
+
autoload :EndpointListResult, 'generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
|
39
|
+
autoload :EndpointCreateParameters, 'generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb'
|
40
|
+
autoload :EndpointUpdateParameters, 'generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
|
41
|
+
autoload :PurgeParameters, 'generated/azure_mgmt_cdn/models/purge_parameters.rb'
|
42
|
+
autoload :LoadParameters, 'generated/azure_mgmt_cdn/models/load_parameters.rb'
|
43
|
+
autoload :OriginParameters, 'generated/azure_mgmt_cdn/models/origin_parameters.rb'
|
44
|
+
autoload :OriginListResult, 'generated/azure_mgmt_cdn/models/origin_list_result.rb'
|
45
|
+
autoload :CustomDomainParameters, 'generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
|
46
|
+
autoload :CustomDomainListResult, 'generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
|
47
|
+
autoload :ValidateCustomDomainInput, 'generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
|
48
|
+
autoload :ValidateCustomDomainOutput, 'generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
|
49
|
+
autoload :CheckNameAvailabilityInput, 'generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
|
50
|
+
autoload :CheckNameAvailabilityOutput, 'generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
|
51
|
+
autoload :Operation, 'generated/azure_mgmt_cdn/models/operation.rb'
|
52
|
+
autoload :OperationDisplay, 'generated/azure_mgmt_cdn/models/operation_display.rb'
|
53
|
+
autoload :OperationListResult, 'generated/azure_mgmt_cdn/models/operation_list_result.rb'
|
54
|
+
autoload :ErrorResponse, 'generated/azure_mgmt_cdn/models/error_response.rb'
|
55
|
+
autoload :Origin, 'generated/azure_mgmt_cdn/models/origin.rb'
|
56
|
+
autoload :CustomDomain, 'generated/azure_mgmt_cdn/models/custom_domain.rb'
|
57
|
+
autoload :TrackedResource, 'generated/azure_mgmt_cdn/models/tracked_resource.rb'
|
58
|
+
autoload :Profile, 'generated/azure_mgmt_cdn/models/profile.rb'
|
59
|
+
autoload :Endpoint, 'generated/azure_mgmt_cdn/models/endpoint.rb'
|
60
|
+
autoload :SkuName, 'generated/azure_mgmt_cdn/models/sku_name.rb'
|
61
|
+
autoload :ProfileResourceState, 'generated/azure_mgmt_cdn/models/profile_resource_state.rb'
|
62
|
+
autoload :ProvisioningState, 'generated/azure_mgmt_cdn/models/provisioning_state.rb'
|
63
|
+
autoload :QueryStringCachingBehavior, 'generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb'
|
64
|
+
autoload :EndpointResourceState, 'generated/azure_mgmt_cdn/models/endpoint_resource_state.rb'
|
65
|
+
autoload :OriginResourceState, 'generated/azure_mgmt_cdn/models/origin_resource_state.rb'
|
66
|
+
autoload :CustomDomainResourceState, 'generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
|
67
|
+
autoload :ResourceType, 'generated/azure_mgmt_cdn/models/resource_type.rb'
|
68
|
+
end
|
69
|
+
end
|
@@ -8,13 +8,13 @@ module Azure::ARM::CDN
|
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
10
10
|
class CdnManagementClient < MsRestAzure::AzureServiceClient
|
11
|
-
include
|
11
|
+
include MsRest::Serialization
|
12
12
|
include MsRestAzure
|
13
13
|
|
14
14
|
# @return [String] the base URI of the service.
|
15
15
|
attr_accessor :base_url
|
16
16
|
|
17
|
-
# @return
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
18
|
attr_reader :credentials
|
19
19
|
|
20
20
|
# @return [String] Azure Subscription ID.
|
@@ -39,22 +39,22 @@ module Azure::ARM::CDN
|
|
39
39
|
# subscription.
|
40
40
|
attr_accessor :credentials
|
41
41
|
|
42
|
-
# @return profiles
|
42
|
+
# @return [Profiles] profiles
|
43
43
|
attr_reader :profiles
|
44
44
|
|
45
|
-
# @return endpoints
|
45
|
+
# @return [Endpoints] endpoints
|
46
46
|
attr_reader :endpoints
|
47
47
|
|
48
|
-
# @return origins
|
48
|
+
# @return [Origins] origins
|
49
49
|
attr_reader :origins
|
50
50
|
|
51
|
-
# @return custom_domains
|
51
|
+
# @return [CustomDomains] custom_domains
|
52
52
|
attr_reader :custom_domains
|
53
53
|
|
54
|
-
# @return name_availability
|
54
|
+
# @return [NameAvailability] name_availability
|
55
55
|
attr_reader :name_availability
|
56
56
|
|
57
|
-
# @return operations
|
57
|
+
# @return [Operations] operations
|
58
58
|
attr_reader :operations
|
59
59
|
|
60
60
|
#
|
@@ -80,6 +80,8 @@ module Azure::ARM::CDN
|
|
80
80
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
81
81
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
82
82
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
83
|
+
|
84
|
+
|
83
85
|
request_headers = {}
|
84
86
|
|
85
87
|
# Set Headers
|
@@ -115,10 +117,8 @@ module Azure::ARM::CDN
|
|
115
117
|
if status_code == 200
|
116
118
|
begin
|
117
119
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
118
|
-
|
119
|
-
|
120
|
-
end
|
121
|
-
result.body = parsed_response
|
120
|
+
result_mapper = CustomDomainListResult.mapper()
|
121
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
122
122
|
rescue Exception => e
|
123
123
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
124
124
|
end
|
@@ -191,6 +191,8 @@ module Azure::ARM::CDN
|
|
191
191
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
192
192
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
193
193
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
194
|
+
|
195
|
+
|
194
196
|
request_headers = {}
|
195
197
|
|
196
198
|
# Set Headers
|
@@ -226,10 +228,8 @@ module Azure::ARM::CDN
|
|
226
228
|
if status_code == 200
|
227
229
|
begin
|
228
230
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
229
|
-
|
230
|
-
|
231
|
-
end
|
232
|
-
result.body = parsed_response
|
231
|
+
result_mapper = CustomDomain.mapper()
|
232
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
233
233
|
rescue Exception => e
|
234
234
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
235
235
|
end
|
@@ -253,25 +253,41 @@ module Azure::ARM::CDN
|
|
253
253
|
# group.
|
254
254
|
# @param resource_group_name [String] Name of the resource group within the
|
255
255
|
# Azure subscription.
|
256
|
-
# @param
|
257
|
-
#
|
258
|
-
#
|
259
|
-
# @
|
260
|
-
#
|
256
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
257
|
+
# will be added to the HTTP request.
|
258
|
+
#
|
259
|
+
# @return [CustomDomain] operation results.
|
260
|
+
#
|
261
|
+
def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil)
|
262
|
+
response = create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value!
|
263
|
+
response.body unless response.nil?
|
264
|
+
end
|
265
|
+
|
266
|
+
#
|
267
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
268
|
+
# endpoint.
|
269
|
+
# @param custom_domain_properties [CustomDomainParameters] Custom domain
|
270
|
+
# properties required for creation.
|
271
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
272
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
273
|
+
# group.
|
274
|
+
# @param resource_group_name [String] Name of the resource group within the
|
275
|
+
# Azure subscription.
|
276
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
277
|
+
# will be added to the HTTP request.
|
261
278
|
#
|
262
279
|
# @return [Concurrent::Promise] promise which provides async access to http
|
263
280
|
# response.
|
264
281
|
#
|
265
|
-
def
|
282
|
+
def create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil)
|
266
283
|
# Send request
|
267
284
|
promise = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers)
|
268
285
|
|
269
286
|
promise = promise.then do |response|
|
270
287
|
# Defining deserialization method.
|
271
288
|
deserialize_method = lambda do |parsed_response|
|
272
|
-
|
273
|
-
|
274
|
-
end
|
289
|
+
result_mapper = CustomDomain.mapper()
|
290
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
275
291
|
end
|
276
292
|
|
277
293
|
# Waiting for response.
|
@@ -344,24 +360,26 @@ module Azure::ARM::CDN
|
|
344
360
|
def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil)
|
345
361
|
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
346
362
|
fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
|
347
|
-
custom_domain_properties.validate unless custom_domain_properties.nil?
|
348
363
|
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
349
364
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
350
365
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
351
366
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
352
367
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
368
|
+
|
369
|
+
|
353
370
|
request_headers = {}
|
354
371
|
|
355
372
|
# Set Headers
|
356
373
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
357
374
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
358
375
|
|
359
|
-
# Serialize Request
|
360
376
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
request_content =
|
377
|
+
|
378
|
+
# Serialize Request
|
379
|
+
request_mapper = CustomDomainParameters.mapper()
|
380
|
+
request_content = @client.serialize(request_mapper, custom_domain_properties, 'custom_domain_properties')
|
381
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
382
|
+
|
365
383
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
|
366
384
|
options = {
|
367
385
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -393,10 +411,8 @@ module Azure::ARM::CDN
|
|
393
411
|
if status_code == 200
|
394
412
|
begin
|
395
413
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
396
|
-
|
397
|
-
|
398
|
-
end
|
399
|
-
result.body = parsed_response
|
414
|
+
result_mapper = CustomDomain.mapper()
|
415
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
400
416
|
rescue Exception => e
|
401
417
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
402
418
|
end
|
@@ -405,10 +421,8 @@ module Azure::ARM::CDN
|
|
405
421
|
if status_code == 201
|
406
422
|
begin
|
407
423
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
408
|
-
|
409
|
-
|
410
|
-
end
|
411
|
-
result.body = parsed_response
|
424
|
+
result_mapper = CustomDomain.mapper()
|
425
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
412
426
|
rescue Exception => e
|
413
427
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
414
428
|
end
|
@@ -417,10 +431,8 @@ module Azure::ARM::CDN
|
|
417
431
|
if status_code == 202
|
418
432
|
begin
|
419
433
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
420
|
-
|
421
|
-
|
422
|
-
end
|
423
|
-
result.body = parsed_response
|
434
|
+
result_mapper = CustomDomain.mapper()
|
435
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
424
436
|
rescue Exception => e
|
425
437
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
426
438
|
end
|
@@ -495,24 +507,26 @@ module Azure::ARM::CDN
|
|
495
507
|
def update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil)
|
496
508
|
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
497
509
|
fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
|
498
|
-
custom_domain_properties.validate unless custom_domain_properties.nil?
|
499
510
|
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
500
511
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
501
512
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
502
513
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
503
514
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
515
|
+
|
516
|
+
|
504
517
|
request_headers = {}
|
505
518
|
|
506
519
|
# Set Headers
|
507
520
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
508
521
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
509
522
|
|
510
|
-
# Serialize Request
|
511
523
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
request_content =
|
524
|
+
|
525
|
+
# Serialize Request
|
526
|
+
request_mapper = CustomDomainParameters.mapper()
|
527
|
+
request_content = @client.serialize(request_mapper, custom_domain_properties, 'custom_domain_properties')
|
528
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
529
|
+
|
516
530
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
|
517
531
|
options = {
|
518
532
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -542,10 +556,8 @@ module Azure::ARM::CDN
|
|
542
556
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
543
557
|
begin
|
544
558
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
545
|
-
|
546
|
-
|
547
|
-
end
|
548
|
-
result.body = parsed_response
|
559
|
+
result_mapper = ErrorResponse.mapper()
|
560
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
549
561
|
rescue Exception => e
|
550
562
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
551
563
|
end
|
@@ -566,23 +578,43 @@ module Azure::ARM::CDN
|
|
566
578
|
# group.
|
567
579
|
# @param resource_group_name [String] Name of the resource group within the
|
568
580
|
# Azure subscription.
|
581
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
582
|
+
# will be added to the HTTP request.
|
583
|
+
#
|
584
|
+
# @return [CustomDomain] operation results.
|
585
|
+
#
|
586
|
+
def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil)
|
587
|
+
response = delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value!
|
588
|
+
response.body unless response.nil?
|
589
|
+
end
|
590
|
+
|
591
|
+
#
|
592
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
593
|
+
# endpoint.
|
594
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
595
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
596
|
+
# group.
|
597
|
+
# @param resource_group_name [String] Name of the resource group within the
|
598
|
+
# Azure subscription.
|
599
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
600
|
+
# will be added to the HTTP request.
|
601
|
+
#
|
569
602
|
# @return [Concurrent::Promise] promise which provides async access to http
|
570
603
|
# response.
|
571
604
|
#
|
572
|
-
def
|
605
|
+
def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil)
|
573
606
|
# Send request
|
574
607
|
promise = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers)
|
575
608
|
|
576
609
|
promise = promise.then do |response|
|
577
610
|
# Defining deserialization method.
|
578
611
|
deserialize_method = lambda do |parsed_response|
|
579
|
-
|
580
|
-
|
581
|
-
end
|
612
|
+
result_mapper = CustomDomain.mapper()
|
613
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
582
614
|
end
|
583
615
|
|
584
|
-
|
585
|
-
|
616
|
+
# Waiting for response.
|
617
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
586
618
|
end
|
587
619
|
|
588
620
|
promise
|
@@ -649,6 +681,8 @@ module Azure::ARM::CDN
|
|
649
681
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
650
682
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
651
683
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
684
|
+
|
685
|
+
|
652
686
|
request_headers = {}
|
653
687
|
|
654
688
|
# Set Headers
|
@@ -684,10 +718,8 @@ module Azure::ARM::CDN
|
|
684
718
|
if status_code == 202
|
685
719
|
begin
|
686
720
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
687
|
-
|
688
|
-
|
689
|
-
end
|
690
|
-
result.body = parsed_response
|
721
|
+
result_mapper = CustomDomain.mapper()
|
722
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
691
723
|
rescue Exception => e
|
692
724
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
693
725
|
end
|