azure_mgmt_cdn 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +4 -1
- data/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +38 -37
- data/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +88 -88
- data/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +6 -7
- data/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +6 -5
- data/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +42 -41
- data/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +54 -51
- data/lib/2016-04-02/generated/azure_mgmt_cdn.rb +70 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +151 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb +719 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb +1456 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +103 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +57 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +47 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +82 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +249 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +185 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +56 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +152 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb +58 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +70 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +57 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb +128 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +56 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb +71 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb +128 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +77 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +56 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb +72 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku_name.rb +18 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb +130 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb +110 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb +778 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +899 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +46 -38
- data/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +53 -48
- data/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +15 -13
- data/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +112 -109
- data/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +31 -29
- data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +93 -85
- data/lib/2017-04-02/generated/azure_mgmt_cdn.rb +18 -16
- data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +16 -15
- data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +53 -48
- data/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +15 -13
- data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +136 -113
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +1 -25
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb +1 -25
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +6 -3
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +5 -2
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb +1 -1
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb +1 -1
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +1 -1
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb +1 -31
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +15 -13
- data/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +31 -29
- data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +93 -85
- data/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +15 -13
- data/lib/2017-10-12/generated/azure_mgmt_cdn.rb +93 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +358 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +970 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +223 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +1922 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +89 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb +91 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb +96 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +46 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +47 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb +318 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +223 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb +59 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb +158 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb +125 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb +71 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb +49 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb +19 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb +70 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +217 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +556 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +1460 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +226 -0
- data/lib/azure_mgmt_cdn.rb +2 -0
- data/lib/profiles/latest/cdn_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/cdn_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/cdn_profile_module.rb +277 -210
- data/lib/version.rb +1 -1
- metadata +119 -2
@@ -0,0 +1,226 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CDN::Mgmt::V2017_10_12
|
7
|
+
#
|
8
|
+
# Use these APIs to manage Azure CDN resources through the Azure Resource
|
9
|
+
# Manager. You must make sure that requests made to these resources are
|
10
|
+
# secure.
|
11
|
+
#
|
12
|
+
class ResourceUsageOperations
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
#
|
16
|
+
# Creates and initializes a new instance of the ResourceUsageOperations class.
|
17
|
+
# @param client service class for accessing basic functionality.
|
18
|
+
#
|
19
|
+
def initialize(client)
|
20
|
+
@client = client
|
21
|
+
end
|
22
|
+
|
23
|
+
# @return [CdnManagementClient] reference to the CdnManagementClient
|
24
|
+
attr_reader :client
|
25
|
+
|
26
|
+
#
|
27
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
28
|
+
# subscription.
|
29
|
+
#
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [Array<ResourceUsage>] operation results.
|
34
|
+
#
|
35
|
+
def list(custom_headers:nil)
|
36
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
37
|
+
first_page.get_all_items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
42
|
+
# subscription.
|
43
|
+
#
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def list_with_http_info(custom_headers:nil)
|
50
|
+
list_async(custom_headers:custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
55
|
+
# subscription.
|
56
|
+
#
|
57
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
58
|
+
# to the HTTP request.
|
59
|
+
#
|
60
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
61
|
+
#
|
62
|
+
def list_async(custom_headers:nil)
|
63
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
64
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
65
|
+
|
66
|
+
|
67
|
+
request_headers = {}
|
68
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
69
|
+
|
70
|
+
# Set Headers
|
71
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
72
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
73
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage'
|
74
|
+
|
75
|
+
request_url = @base_url || @client.base_url
|
76
|
+
|
77
|
+
options = {
|
78
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
79
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
80
|
+
query_params: {'api-version' => @client.api_version},
|
81
|
+
headers: request_headers.merge(custom_headers || {}),
|
82
|
+
base_url: request_url
|
83
|
+
}
|
84
|
+
promise = @client.make_request_async(:post, path_template, options)
|
85
|
+
|
86
|
+
promise = promise.then do |result|
|
87
|
+
http_response = result.response
|
88
|
+
status_code = http_response.status
|
89
|
+
response_content = http_response.body
|
90
|
+
unless status_code == 200
|
91
|
+
error_model = JSON.load(response_content)
|
92
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
93
|
+
end
|
94
|
+
|
95
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
96
|
+
# Deserialize Response
|
97
|
+
if status_code == 200
|
98
|
+
begin
|
99
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
100
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsageListResult.mapper()
|
101
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
102
|
+
rescue Exception => e
|
103
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
result
|
108
|
+
end
|
109
|
+
|
110
|
+
promise.execute
|
111
|
+
end
|
112
|
+
|
113
|
+
#
|
114
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
115
|
+
# subscription.
|
116
|
+
#
|
117
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
118
|
+
# to List operation.
|
119
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
120
|
+
# will be added to the HTTP request.
|
121
|
+
#
|
122
|
+
# @return [ResourceUsageListResult] operation results.
|
123
|
+
#
|
124
|
+
def list_next(next_page_link, custom_headers:nil)
|
125
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
126
|
+
response.body unless response.nil?
|
127
|
+
end
|
128
|
+
|
129
|
+
#
|
130
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
131
|
+
# subscription.
|
132
|
+
#
|
133
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
134
|
+
# to List operation.
|
135
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
136
|
+
# will be added to the HTTP request.
|
137
|
+
#
|
138
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
139
|
+
#
|
140
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
141
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
142
|
+
end
|
143
|
+
|
144
|
+
#
|
145
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
146
|
+
# subscription.
|
147
|
+
#
|
148
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
149
|
+
# to List operation.
|
150
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
151
|
+
# to the HTTP request.
|
152
|
+
#
|
153
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
154
|
+
#
|
155
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
156
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
157
|
+
|
158
|
+
|
159
|
+
request_headers = {}
|
160
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
161
|
+
|
162
|
+
# Set Headers
|
163
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
164
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
165
|
+
path_template = '{nextLink}'
|
166
|
+
|
167
|
+
request_url = @base_url || @client.base_url
|
168
|
+
|
169
|
+
options = {
|
170
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
171
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
172
|
+
headers: request_headers.merge(custom_headers || {}),
|
173
|
+
base_url: request_url
|
174
|
+
}
|
175
|
+
promise = @client.make_request_async(:post, path_template, options)
|
176
|
+
|
177
|
+
promise = promise.then do |result|
|
178
|
+
http_response = result.response
|
179
|
+
status_code = http_response.status
|
180
|
+
response_content = http_response.body
|
181
|
+
unless status_code == 200
|
182
|
+
error_model = JSON.load(response_content)
|
183
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
184
|
+
end
|
185
|
+
|
186
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
187
|
+
# Deserialize Response
|
188
|
+
if status_code == 200
|
189
|
+
begin
|
190
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
191
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsageListResult.mapper()
|
192
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
193
|
+
rescue Exception => e
|
194
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
result
|
199
|
+
end
|
200
|
+
|
201
|
+
promise.execute
|
202
|
+
end
|
203
|
+
|
204
|
+
#
|
205
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
206
|
+
# subscription.
|
207
|
+
#
|
208
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
209
|
+
# will be added to the HTTP request.
|
210
|
+
#
|
211
|
+
# @return [ResourceUsageListResult] which provide lazy access to pages of the
|
212
|
+
# response.
|
213
|
+
#
|
214
|
+
def list_as_lazy(custom_headers:nil)
|
215
|
+
response = list_async(custom_headers:custom_headers).value!
|
216
|
+
unless response.nil?
|
217
|
+
page = response.body
|
218
|
+
page.next_method = Proc.new do |next_page_link|
|
219
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
220
|
+
end
|
221
|
+
page
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
end
|
226
|
+
end
|
data/lib/azure_mgmt_cdn.rb
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
5
|
require '2015-06-01/generated/azure_mgmt_cdn'
|
6
|
+
require '2016-04-02/generated/azure_mgmt_cdn'
|
6
7
|
require '2016-10-02/generated/azure_mgmt_cdn'
|
7
8
|
require '2017-04-02/generated/azure_mgmt_cdn'
|
9
|
+
require '2017-10-12/generated/azure_mgmt_cdn'
|
8
10
|
require 'profiles/latest/cdn_latest_profile_client'
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/cdn_module_definition'
|
6
6
|
require 'profiles/latest/modules/cdn_profile_module'
|
7
7
|
|
8
|
-
module Azure::CDN::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::CDN::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < CDNManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
@@ -4,69 +4,82 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_cdn'
|
6
6
|
|
7
|
-
module Azure::CDN::Profiles::Latest
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
module Azure::CDN::Profiles::Latest
|
8
|
+
module Mgmt
|
9
|
+
Profiles = Azure::CDN::Mgmt::V2017_10_12::Profiles
|
10
|
+
Endpoints = Azure::CDN::Mgmt::V2017_10_12::Endpoints
|
11
|
+
Origins = Azure::CDN::Mgmt::V2017_10_12::Origins
|
12
|
+
CustomDomains = Azure::CDN::Mgmt::V2017_10_12::CustomDomains
|
13
|
+
ResourceUsageOperations = Azure::CDN::Mgmt::V2017_10_12::ResourceUsageOperations
|
14
|
+
Operations = Azure::CDN::Mgmt::V2017_10_12::Operations
|
15
|
+
EdgeNodes = Azure::CDN::Mgmt::V2017_10_12::EdgeNodes
|
15
16
|
|
16
17
|
module Models
|
17
|
-
|
18
|
-
Sku = Azure::CDN::Mgmt::
|
19
|
-
|
20
|
-
ProfileListResult = Azure::CDN::Mgmt::
|
21
|
-
|
22
|
-
SsoUri = Azure::CDN::Mgmt::
|
23
|
-
|
24
|
-
DeepCreatedOrigin = Azure::CDN::Mgmt::
|
25
|
-
|
26
|
-
EndpointListResult = Azure::CDN::Mgmt::
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
18
|
+
OriginUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::OriginUpdateParameters
|
19
|
+
Sku = Azure::CDN::Mgmt::V2017_10_12::Models::Sku
|
20
|
+
OriginListResult = Azure::CDN::Mgmt::V2017_10_12::Models::OriginListResult
|
21
|
+
ProfileListResult = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileListResult
|
22
|
+
PurgeParameters = Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
23
|
+
SsoUri = Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri
|
24
|
+
LoadParameters = Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
25
|
+
DeepCreatedOrigin = Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
26
|
+
CidrIpAddress = Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
27
|
+
EndpointListResult = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
28
|
+
OperationsListResult = Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
29
|
+
DeliveryRuleAction = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
30
|
+
ProfileUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
31
|
+
DeliveryRule = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
32
|
+
EndpointUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
33
|
+
CustomDomainParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters
|
34
|
+
EdgenodeResult = Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
35
|
+
CustomDomainListResult = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
36
|
+
ErrorResponse = Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse
|
37
|
+
ValidateCustomDomainInput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput
|
38
|
+
IpAddressGroup = Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
39
|
+
ValidateCustomDomainOutput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput
|
40
|
+
Resource = Azure::CDN::Mgmt::V2017_10_12::Models::Resource
|
41
|
+
CheckNameAvailabilityInput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
42
|
+
DeliveryRuleCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCondition
|
43
|
+
CheckNameAvailabilityOutput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput
|
44
|
+
UrlPathConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
45
|
+
ValidateProbeInput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeInput
|
46
|
+
CacheExpirationActionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
47
|
+
ValidateProbeOutput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeOutput
|
48
|
+
GeoFilter = Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilter
|
49
|
+
ResourceUsage = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsage
|
50
|
+
UrlFileExtensionConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
51
|
+
ResourceUsageListResult = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsageListResult
|
52
|
+
EndpointPropertiesUpdateParametersDeliveryPolicy = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
53
|
+
OperationDisplay = Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
54
|
+
SupportedOptimizationTypesListResult = Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
55
|
+
Operation = Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
56
|
+
Profile = Azure::CDN::Mgmt::V2017_10_12::Models::Profile
|
57
|
+
Endpoint = Azure::CDN::Mgmt::V2017_10_12::Models::Endpoint
|
58
|
+
DeliveryRuleUrlPathCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleUrlPathCondition
|
59
|
+
DeliveryRuleUrlFileExtensionCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleUrlFileExtensionCondition
|
60
|
+
DeliveryRuleCacheExpirationAction = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCacheExpirationAction
|
61
|
+
Origin = Azure::CDN::Mgmt::V2017_10_12::Models::Origin
|
62
|
+
ProxyResource = Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource
|
63
|
+
CustomDomain = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain
|
64
|
+
EdgeNode = Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode
|
65
|
+
TrackedResource = Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource
|
66
|
+
SkuName = Azure::CDN::Mgmt::V2017_10_12::Models::SkuName
|
67
|
+
ProfileResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileResourceState
|
68
|
+
OptimizationType = Azure::CDN::Mgmt::V2017_10_12::Models::OptimizationType
|
69
|
+
EndpointResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState
|
70
|
+
QueryStringCachingBehavior = Azure::CDN::Mgmt::V2017_10_12::Models::QueryStringCachingBehavior
|
71
|
+
GeoFilterActions = Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilterActions
|
72
|
+
OriginResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::OriginResourceState
|
73
|
+
CustomDomainResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState
|
74
|
+
CustomHttpsProvisioningState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState
|
75
|
+
CustomHttpsProvisioningSubstate = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate
|
76
|
+
ResourceType = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType
|
64
77
|
end
|
65
78
|
|
66
79
|
#
|
67
|
-
#
|
80
|
+
# CDNManagementClass
|
68
81
|
#
|
69
|
-
class
|
82
|
+
class CDNManagementClass
|
70
83
|
attr_reader :profiles, :endpoints, :origins, :custom_domains, :resource_usage_operations, :operations, :edge_nodes, :configurable, :base_url, :options, :model_classes
|
71
84
|
|
72
85
|
def initialize(options = {})
|
@@ -78,165 +91,219 @@ module Azure::CDN::Profiles::Latest::Mgmt
|
|
78
91
|
|
79
92
|
reset!(options)
|
80
93
|
|
81
|
-
@configurable
|
94
|
+
@configurable = self
|
95
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
96
|
+
@options = options[:options].nil? ? nil:options[:options]
|
82
97
|
|
83
|
-
client_0 = Azure::CDN::Mgmt::
|
84
|
-
if(client_0.respond_to?(:subscription_id))
|
85
|
-
client_0.subscription_id = configurable.subscription_id
|
86
|
-
end
|
87
|
-
@
|
88
|
-
@
|
89
|
-
@
|
90
|
-
@
|
91
|
-
@
|
92
|
-
@
|
93
|
-
@
|
98
|
+
@client_0 = Azure::CDN::Mgmt::V2017_10_12::CdnManagementClient.new(configurable.credentials, base_url, options)
|
99
|
+
if(@client_0.respond_to?(:subscription_id))
|
100
|
+
@client_0.subscription_id = configurable.subscription_id
|
101
|
+
end
|
102
|
+
add_telemetry(@client_0)
|
103
|
+
@profiles = @client_0.profiles
|
104
|
+
@endpoints = @client_0.endpoints
|
105
|
+
@origins = @client_0.origins
|
106
|
+
@custom_domains = @client_0.custom_domains
|
107
|
+
@resource_usage_operations = @client_0.resource_usage_operations
|
108
|
+
@operations = @client_0.operations
|
109
|
+
@edge_nodes = @client_0.edge_nodes
|
94
110
|
|
95
111
|
@model_classes = ModelClasses.new
|
96
112
|
end
|
97
113
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
def profile_list_result
|
109
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ProfileListResult
|
110
|
-
end
|
111
|
-
def validate_custom_domain_output
|
112
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ValidateCustomDomainOutput
|
113
|
-
end
|
114
|
-
def sso_uri
|
115
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::SsoUri
|
116
|
-
end
|
117
|
-
def check_name_availability_input
|
118
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::CheckNameAvailabilityInput
|
119
|
-
end
|
120
|
-
def deep_created_origin
|
121
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::DeepCreatedOrigin
|
122
|
-
end
|
123
|
-
def check_name_availability_output
|
124
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::CheckNameAvailabilityOutput
|
125
|
-
end
|
126
|
-
def endpoint_list_result
|
127
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::EndpointListResult
|
128
|
-
end
|
129
|
-
def validate_probe_input
|
130
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ValidateProbeInput
|
131
|
-
end
|
132
|
-
def endpoint_update_parameters
|
133
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::EndpointUpdateParameters
|
134
|
-
end
|
135
|
-
def validate_probe_output
|
136
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ValidateProbeOutput
|
137
|
-
end
|
138
|
-
def load_parameters
|
139
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::LoadParameters
|
140
|
-
end
|
141
|
-
def resource_usage
|
142
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ResourceUsage
|
143
|
-
end
|
144
|
-
def origin_update_parameters
|
145
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::OriginUpdateParameters
|
146
|
-
end
|
147
|
-
def resource_usage_list_result
|
148
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ResourceUsageListResult
|
149
|
-
end
|
150
|
-
def origin_list_result
|
151
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::OriginListResult
|
152
|
-
end
|
153
|
-
def custom_domain_parameters
|
154
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomainParameters
|
155
|
-
end
|
156
|
-
def profile_update_parameters
|
157
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ProfileUpdateParameters
|
158
|
-
end
|
159
|
-
def error_response
|
160
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ErrorResponse
|
161
|
-
end
|
162
|
-
def resource
|
163
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::Resource
|
164
|
-
end
|
165
|
-
def operation_display
|
166
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::OperationDisplay
|
167
|
-
end
|
168
|
-
def purge_parameters
|
169
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::PurgeParameters
|
170
|
-
end
|
171
|
-
def operation
|
172
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::Operation
|
173
|
-
end
|
174
|
-
def supported_optimization_types_list_result
|
175
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::SupportedOptimizationTypesListResult
|
176
|
-
end
|
177
|
-
def operations_list_result
|
178
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::OperationsListResult
|
179
|
-
end
|
180
|
-
def edgenode_result
|
181
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::EdgenodeResult
|
182
|
-
end
|
183
|
-
def cidr_ip_address
|
184
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::CidrIpAddress
|
185
|
-
end
|
186
|
-
def geo_filter
|
187
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::GeoFilter
|
188
|
-
end
|
189
|
-
def ip_address_group
|
190
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::IpAddressGroup
|
191
|
-
end
|
192
|
-
def profile
|
193
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::Profile
|
194
|
-
end
|
195
|
-
def endpoint
|
196
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::Endpoint
|
197
|
-
end
|
198
|
-
def origin
|
199
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::Origin
|
200
|
-
end
|
201
|
-
def custom_domain
|
202
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain
|
203
|
-
end
|
204
|
-
def edge_node
|
205
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::EdgeNode
|
206
|
-
end
|
207
|
-
def sku_name
|
208
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::SkuName
|
209
|
-
end
|
210
|
-
def profile_resource_state
|
211
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ProfileResourceState
|
212
|
-
end
|
213
|
-
def optimization_type
|
214
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::OptimizationType
|
215
|
-
end
|
216
|
-
def endpoint_resource_state
|
217
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::EndpointResourceState
|
218
|
-
end
|
219
|
-
def query_string_caching_behavior
|
220
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::QueryStringCachingBehavior
|
221
|
-
end
|
222
|
-
def geo_filter_actions
|
223
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::GeoFilterActions
|
224
|
-
end
|
225
|
-
def origin_resource_state
|
226
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::OriginResourceState
|
227
|
-
end
|
228
|
-
def custom_domain_resource_state
|
229
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomainResourceState
|
230
|
-
end
|
231
|
-
def custom_https_provisioning_state
|
232
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::CustomHttpsProvisioningState
|
233
|
-
end
|
234
|
-
def custom_https_provisioning_substate
|
235
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::CustomHttpsProvisioningSubstate
|
236
|
-
end
|
237
|
-
def resource_type
|
238
|
-
Azure::CDN::Mgmt::V2017_04_02::Models::ResourceType
|
114
|
+
def add_telemetry(client)
|
115
|
+
profile_information = 'Profiles/Latest/CDN/Mgmt'
|
116
|
+
client.add_user_agent_information(profile_information)
|
117
|
+
end
|
118
|
+
|
119
|
+
def method_missing(method, *args)
|
120
|
+
if @client_0.respond_to?method
|
121
|
+
@client_0.send(method, *args)
|
122
|
+
else
|
123
|
+
super
|
239
124
|
end
|
240
125
|
end
|
126
|
+
|
127
|
+
end
|
128
|
+
|
129
|
+
class ModelClasses
|
130
|
+
def origin_update_parameters
|
131
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::OriginUpdateParameters
|
132
|
+
end
|
133
|
+
def sku
|
134
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::Sku
|
135
|
+
end
|
136
|
+
def origin_list_result
|
137
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::OriginListResult
|
138
|
+
end
|
139
|
+
def profile_list_result
|
140
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ProfileListResult
|
141
|
+
end
|
142
|
+
def purge_parameters
|
143
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
144
|
+
end
|
145
|
+
def sso_uri
|
146
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri
|
147
|
+
end
|
148
|
+
def load_parameters
|
149
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
150
|
+
end
|
151
|
+
def deep_created_origin
|
152
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
153
|
+
end
|
154
|
+
def cidr_ip_address
|
155
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
156
|
+
end
|
157
|
+
def endpoint_list_result
|
158
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
159
|
+
end
|
160
|
+
def operations_list_result
|
161
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
162
|
+
end
|
163
|
+
def delivery_rule_action
|
164
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
165
|
+
end
|
166
|
+
def profile_update_parameters
|
167
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
168
|
+
end
|
169
|
+
def delivery_rule
|
170
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
171
|
+
end
|
172
|
+
def endpoint_update_parameters
|
173
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
174
|
+
end
|
175
|
+
def custom_domain_parameters
|
176
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters
|
177
|
+
end
|
178
|
+
def edgenode_result
|
179
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
180
|
+
end
|
181
|
+
def custom_domain_list_result
|
182
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
183
|
+
end
|
184
|
+
def error_response
|
185
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse
|
186
|
+
end
|
187
|
+
def validate_custom_domain_input
|
188
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput
|
189
|
+
end
|
190
|
+
def ip_address_group
|
191
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
192
|
+
end
|
193
|
+
def validate_custom_domain_output
|
194
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput
|
195
|
+
end
|
196
|
+
def resource
|
197
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::Resource
|
198
|
+
end
|
199
|
+
def check_name_availability_input
|
200
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
201
|
+
end
|
202
|
+
def delivery_rule_condition
|
203
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCondition
|
204
|
+
end
|
205
|
+
def check_name_availability_output
|
206
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput
|
207
|
+
end
|
208
|
+
def url_path_condition_parameters
|
209
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
210
|
+
end
|
211
|
+
def validate_probe_input
|
212
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeInput
|
213
|
+
end
|
214
|
+
def cache_expiration_action_parameters
|
215
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
216
|
+
end
|
217
|
+
def validate_probe_output
|
218
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeOutput
|
219
|
+
end
|
220
|
+
def geo_filter
|
221
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilter
|
222
|
+
end
|
223
|
+
def resource_usage
|
224
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsage
|
225
|
+
end
|
226
|
+
def url_file_extension_condition_parameters
|
227
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
228
|
+
end
|
229
|
+
def resource_usage_list_result
|
230
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsageListResult
|
231
|
+
end
|
232
|
+
def endpoint_properties_update_parameters_delivery_policy
|
233
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
234
|
+
end
|
235
|
+
def operation_display
|
236
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
237
|
+
end
|
238
|
+
def supported_optimization_types_list_result
|
239
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
240
|
+
end
|
241
|
+
def operation
|
242
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
243
|
+
end
|
244
|
+
def profile
|
245
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::Profile
|
246
|
+
end
|
247
|
+
def endpoint
|
248
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::Endpoint
|
249
|
+
end
|
250
|
+
def delivery_rule_url_path_condition
|
251
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleUrlPathCondition
|
252
|
+
end
|
253
|
+
def delivery_rule_url_file_extension_condition
|
254
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleUrlFileExtensionCondition
|
255
|
+
end
|
256
|
+
def delivery_rule_cache_expiration_action
|
257
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCacheExpirationAction
|
258
|
+
end
|
259
|
+
def origin
|
260
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::Origin
|
261
|
+
end
|
262
|
+
def proxy_resource
|
263
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource
|
264
|
+
end
|
265
|
+
def custom_domain
|
266
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain
|
267
|
+
end
|
268
|
+
def edge_node
|
269
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode
|
270
|
+
end
|
271
|
+
def tracked_resource
|
272
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource
|
273
|
+
end
|
274
|
+
def sku_name
|
275
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::SkuName
|
276
|
+
end
|
277
|
+
def profile_resource_state
|
278
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ProfileResourceState
|
279
|
+
end
|
280
|
+
def optimization_type
|
281
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::OptimizationType
|
282
|
+
end
|
283
|
+
def endpoint_resource_state
|
284
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState
|
285
|
+
end
|
286
|
+
def query_string_caching_behavior
|
287
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::QueryStringCachingBehavior
|
288
|
+
end
|
289
|
+
def geo_filter_actions
|
290
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilterActions
|
291
|
+
end
|
292
|
+
def origin_resource_state
|
293
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::OriginResourceState
|
294
|
+
end
|
295
|
+
def custom_domain_resource_state
|
296
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState
|
297
|
+
end
|
298
|
+
def custom_https_provisioning_state
|
299
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState
|
300
|
+
end
|
301
|
+
def custom_https_provisioning_substate
|
302
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate
|
303
|
+
end
|
304
|
+
def resource_type
|
305
|
+
Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType
|
306
|
+
end
|
241
307
|
end
|
308
|
+
end
|
242
309
|
end
|