azure_mgmt_deployment_manager 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager.rb +70 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/artifact_sources.rb +339 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/azure_deployment_manager.rb +157 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/artifact_source.rb +130 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/artifact_source_properties_model.rb +79 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/authentication.rb +46 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/azure_entity_resource.rb +75 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/cloud_error_body.rb +90 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/deployment_mode.rb +16 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/identity.rb +65 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/message.rb +59 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/operation.rb +80 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/operation_detail.rb +80 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/pre_post_step.rb +46 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/proxy_resource.rb +63 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/resource.rb +83 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/resource_operation.rb +111 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout.rb +214 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_operation_info.rb +102 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_properties_model.rb +95 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_request.rb +154 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_step.rb +127 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/sas_authentication.rb +64 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service.rb +83 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_properties.rb +59 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_resource.rb +110 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_topology_properties.rb +47 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_topology_resource.rb +98 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit.rb +92 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_artifacts.rb +83 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_properties.rb +73 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_resource.rb +124 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/step.rb +121 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/step_operation_info.rb +109 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/step_properties.rb +46 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/step_resource.rb +100 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/tracked_resource.rb +92 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_attributes.rb +47 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_properties.rb +62 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/module_definition.rb +9 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/operations.rb +130 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/rollouts.rb +626 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/service_topologies.rb +340 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/service_units.rb +419 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/services.rb +346 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/steps.rb +333 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager.rb +84 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/artifact_sources.rb +451 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/azure_deployment_manager.rb +157 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/api_key_authentication.rb +86 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/artifact_source.rb +130 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/artifact_source_properties_model.rb +79 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/authentication.rb +46 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/azure_entity_resource.rb +75 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/cloud_error_body.rb +90 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/deployment_mode.rb +16 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/health_check_step_attributes.rb +86 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/health_check_step_properties.rb +64 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/identity.rb +65 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/message.rb +59 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/operation.rb +80 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/operation_detail.rb +80 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/operations_list.rb +47 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/pre_post_step.rb +46 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/proxy_resource.rb +63 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/resource.rb +83 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/resource_operation.rb +111 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_auth_location.rb +16 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_health_check.rb +72 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_health_check_step_attributes.rb +95 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_match_quantifier.rb +16 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_request.rb +74 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_request_authentication.rb +48 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_request_method.rb +16 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_response.rb +70 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_response_regex.rb +68 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout.rb +214 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_identity_authentication.rb +51 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_operation_info.rb +102 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_properties_model.rb +95 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_request.rb +154 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_step.rb +127 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/sas_authentication.rb +64 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service.rb +83 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_properties.rb +59 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_resource.rb +110 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_topology_properties.rb +47 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_topology_resource.rb +98 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit.rb +92 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_artifacts.rb +83 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_properties.rb +73 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_resource.rb +124 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/step_group.rb +121 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/step_operation_info.rb +109 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/step_properties.rb +47 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/step_resource.rb +100 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/tracked_resource.rb +92 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_attributes.rb +47 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_properties.rb +62 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/module_definition.rb +9 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/operations.rb +112 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/rollouts.rb +738 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/service_topologies.rb +452 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/service_units.rb +539 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/services.rb +462 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/steps.rb +445 -0
- data/lib/azure_mgmt_deployment_manager.rb +7 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/deploymentmanager_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/deploymentmanager_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/deploymentmanager_profile_module.rb +273 -0
- data/lib/version.rb +7 -0
- metadata +230 -0
data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/azure_deployment_manager.rb
ADDED
@@ -0,0 +1,157 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class AzureDeploymentManager < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Subscription credentials which uniquely identify
|
21
|
+
# Microsoft Azure subscription. The subscription ID forms part of the URI
|
22
|
+
# for every service call.
|
23
|
+
attr_accessor :subscription_id
|
24
|
+
|
25
|
+
# @return [String] The API version to use for this operation.
|
26
|
+
attr_reader :api_version
|
27
|
+
|
28
|
+
# @return [String] The preferred language for the response.
|
29
|
+
attr_accessor :accept_language
|
30
|
+
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
33
|
+
attr_accessor :long_running_operation_retry_timeout
|
34
|
+
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
38
|
+
attr_accessor :generate_client_request_id
|
39
|
+
|
40
|
+
# @return [ServiceTopologies] service_topologies
|
41
|
+
attr_reader :service_topologies
|
42
|
+
|
43
|
+
# @return [Services] services
|
44
|
+
attr_reader :services
|
45
|
+
|
46
|
+
# @return [ServiceUnits] service_units
|
47
|
+
attr_reader :service_units
|
48
|
+
|
49
|
+
# @return [Steps] steps
|
50
|
+
attr_reader :steps
|
51
|
+
|
52
|
+
# @return [Rollouts] rollouts
|
53
|
+
attr_reader :rollouts
|
54
|
+
|
55
|
+
# @return [ArtifactSources] artifact_sources
|
56
|
+
attr_reader :artifact_sources
|
57
|
+
|
58
|
+
# @return [Operations] operations
|
59
|
+
attr_reader :operations
|
60
|
+
|
61
|
+
#
|
62
|
+
# Creates initializes a new instance of the AzureDeploymentManager class.
|
63
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
64
|
+
# @param base_url [String] the base URI of the service.
|
65
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
66
|
+
#
|
67
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
68
|
+
super(credentials, options)
|
69
|
+
@base_url = base_url || 'https://management.azure.com'
|
70
|
+
|
71
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
72
|
+
@credentials = credentials
|
73
|
+
|
74
|
+
@service_topologies = ServiceTopologies.new(self)
|
75
|
+
@services = Services.new(self)
|
76
|
+
@service_units = ServiceUnits.new(self)
|
77
|
+
@steps = Steps.new(self)
|
78
|
+
@rollouts = Rollouts.new(self)
|
79
|
+
@artifact_sources = ArtifactSources.new(self)
|
80
|
+
@operations = Operations.new(self)
|
81
|
+
@api_version = '2019-11-01-preview'
|
82
|
+
@accept_language = 'en-US'
|
83
|
+
@long_running_operation_retry_timeout = 30
|
84
|
+
@generate_client_request_id = true
|
85
|
+
add_telemetry
|
86
|
+
end
|
87
|
+
|
88
|
+
#
|
89
|
+
# Makes a request and returns the body of the response.
|
90
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
91
|
+
# @param path [String] the path, relative to {base_url}.
|
92
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
93
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
94
|
+
# Example:
|
95
|
+
#
|
96
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
97
|
+
# path = "/path"
|
98
|
+
# options = {
|
99
|
+
# body: request_content,
|
100
|
+
# query_params: {'api-version' => '2016-02-01'}
|
101
|
+
# }
|
102
|
+
# result = @client.make_request(:put, path, options)
|
103
|
+
#
|
104
|
+
def make_request(method, path, options = {})
|
105
|
+
result = make_request_with_http_info(method, path, options)
|
106
|
+
result.body unless result.nil?
|
107
|
+
end
|
108
|
+
|
109
|
+
#
|
110
|
+
# Makes a request and returns the operation response.
|
111
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
112
|
+
# @param path [String] the path, relative to {base_url}.
|
113
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
114
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
115
|
+
#
|
116
|
+
def make_request_with_http_info(method, path, options = {})
|
117
|
+
result = make_request_async(method, path, options).value!
|
118
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
119
|
+
result
|
120
|
+
end
|
121
|
+
|
122
|
+
#
|
123
|
+
# Makes a request asynchronously.
|
124
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
125
|
+
# @param path [String] the path, relative to {base_url}.
|
126
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
127
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
128
|
+
#
|
129
|
+
def make_request_async(method, path, options = {})
|
130
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
131
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
132
|
+
|
133
|
+
request_url = options[:base_url] || @base_url
|
134
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
135
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
136
|
+
end
|
137
|
+
|
138
|
+
request_headers = @request_headers
|
139
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
140
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
141
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
142
|
+
|
143
|
+
super(request_url, method, path, options)
|
144
|
+
end
|
145
|
+
|
146
|
+
|
147
|
+
private
|
148
|
+
#
|
149
|
+
# Adds telemetry information.
|
150
|
+
#
|
151
|
+
def add_telemetry
|
152
|
+
sdk_information = 'azure_mgmt_deployment_manager'
|
153
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
154
|
+
add_user_agent_information(sdk_information)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/api_key_authentication.rb
ADDED
@@ -0,0 +1,86 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# ApiKey authentication gives a name and a value that can be included in
|
10
|
+
# either the request header or query parameters.
|
11
|
+
#
|
12
|
+
class ApiKeyAuthentication < RestRequestAuthentication
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@type = "ApiKey"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :type
|
22
|
+
|
23
|
+
# @return [String] The key name of the authentication key/value pair.
|
24
|
+
attr_accessor :name
|
25
|
+
|
26
|
+
# @return [RestAuthLocation] The location of the authentication key/value
|
27
|
+
# pair in the request. Possible values include: 'Query', 'Header'
|
28
|
+
attr_accessor :in_property
|
29
|
+
|
30
|
+
# @return [String] The value of the authentication key/value pair.
|
31
|
+
attr_accessor :value
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for ApiKeyAuthentication class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'ApiKey',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'ApiKeyAuthentication',
|
46
|
+
model_properties: {
|
47
|
+
type: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'type',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
name: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: true,
|
58
|
+
serialized_name: 'name',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
in_property: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: true,
|
66
|
+
serialized_name: 'in',
|
67
|
+
type: {
|
68
|
+
name: 'Enum',
|
69
|
+
module: 'RestAuthLocation'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
value: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: true,
|
75
|
+
serialized_name: 'value',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,130 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource that defines the source location where the artifacts are
|
10
|
+
# located.
|
11
|
+
#
|
12
|
+
class ArtifactSource < TrackedResource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The type of artifact source used.
|
17
|
+
attr_accessor :source_type
|
18
|
+
|
19
|
+
# @return [String] The path from the location that the 'authentication'
|
20
|
+
# property [say, a SAS URI to the blob container] refers to, to the
|
21
|
+
# location of the artifacts. This can be used to differentiate different
|
22
|
+
# versions of the artifacts. Or, different types of artifacts like
|
23
|
+
# binaries or templates. The location referenced by the authentication
|
24
|
+
# property concatenated with this optional artifactRoot path forms the
|
25
|
+
# artifact source location where the artifacts are expected to be found.
|
26
|
+
attr_accessor :artifact_root
|
27
|
+
|
28
|
+
# @return [Authentication] The authentication method to use to access the
|
29
|
+
# artifact source.
|
30
|
+
attr_accessor :authentication
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for ArtifactSource class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'ArtifactSource',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'ArtifactSource',
|
45
|
+
model_properties: {
|
46
|
+
id: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
read_only: true,
|
50
|
+
serialized_name: 'id',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
name: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'name',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
type: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'type',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
tags: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'tags',
|
77
|
+
type: {
|
78
|
+
name: 'Dictionary',
|
79
|
+
value: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'StringElementType',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
},
|
89
|
+
location: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: true,
|
92
|
+
serialized_name: 'location',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
},
|
97
|
+
source_type: {
|
98
|
+
client_side_validation: true,
|
99
|
+
required: true,
|
100
|
+
serialized_name: 'properties.sourceType',
|
101
|
+
type: {
|
102
|
+
name: 'String'
|
103
|
+
}
|
104
|
+
},
|
105
|
+
artifact_root: {
|
106
|
+
client_side_validation: true,
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'properties.artifactRoot',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
authentication: {
|
114
|
+
client_side_validation: true,
|
115
|
+
required: true,
|
116
|
+
serialized_name: 'properties.authentication',
|
117
|
+
type: {
|
118
|
+
name: 'Composite',
|
119
|
+
polymorphic_discriminator: 'type',
|
120
|
+
uber_parent: 'Authentication',
|
121
|
+
class_name: 'Authentication'
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
@@ -0,0 +1,79 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties that define the source location where the artifacts are
|
10
|
+
# located.
|
11
|
+
#
|
12
|
+
class ArtifactSourcePropertiesModel
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The type of artifact source used.
|
17
|
+
attr_accessor :source_type
|
18
|
+
|
19
|
+
# @return [String] The path from the location that the 'authentication'
|
20
|
+
# property [say, a SAS URI to the blob container] refers to, to the
|
21
|
+
# location of the artifacts. This can be used to differentiate different
|
22
|
+
# versions of the artifacts. Or, different types of artifacts like
|
23
|
+
# binaries or templates. The location referenced by the authentication
|
24
|
+
# property concatenated with this optional artifactRoot path forms the
|
25
|
+
# artifact source location where the artifacts are expected to be found.
|
26
|
+
attr_accessor :artifact_root
|
27
|
+
|
28
|
+
# @return [Authentication] The authentication method to use to access the
|
29
|
+
# artifact source.
|
30
|
+
attr_accessor :authentication
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for ArtifactSourcePropertiesModel class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'ArtifactSourceProperties',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'ArtifactSourcePropertiesModel',
|
45
|
+
model_properties: {
|
46
|
+
source_type: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: true,
|
49
|
+
serialized_name: 'sourceType',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
artifact_root: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'artifactRoot',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
authentication: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: true,
|
65
|
+
serialized_name: 'authentication',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
polymorphic_discriminator: 'type',
|
69
|
+
uber_parent: 'Authentication',
|
70
|
+
class_name: 'Authentication'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|