azure_mgmt_kubernetes_configuration 0.17.1 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/source_control_configuration_client.rb +1 -1
  3. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration.rb +50 -0
  4. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/azure_entity_resource.rb +77 -0
  5. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/compliance_state_type.rb +19 -0
  6. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/compliance_status.rb +83 -0
  7. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/created_by_type.rb +18 -0
  8. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/error_definition.rb +58 -0
  9. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/error_response.rb +47 -0
  10. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/helm_operator_properties.rb +57 -0
  11. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/message_level_type.rb +17 -0
  12. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/operator_scope_type.rb +16 -0
  13. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/operator_type.rb +15 -0
  14. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/provisioning_state_type.rb +19 -0
  15. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/proxy_resource.rb +65 -0
  16. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/resource.rb +86 -0
  17. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/resource_provider_operation.rb +73 -0
  18. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/resource_provider_operation_display.rb +79 -0
  19. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/resource_provider_operation_list.rb +100 -0
  20. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/result.rb +46 -0
  21. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/source_control_configuration.rb +247 -0
  22. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/source_control_configuration_list.rb +104 -0
  23. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/system_data.rb +105 -0
  24. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/tracked_resource.rb +95 -0
  25. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/module_definition.rb +9 -0
  26. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/operations.rb +227 -0
  27. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/source_control_configuration_client.rb +136 -0
  28. data/lib/2021-03-01/generated/azure_mgmt_kubernetes_configuration/source_control_configurations.rb +722 -0
  29. data/lib/azure_mgmt_kubernetes_configuration.rb +1 -0
  30. data/lib/profiles/latest/modules/kubernetesconfiguration_profile_module.rb +67 -55
  31. data/lib/version.rb +1 -1
  32. metadata +29 -3
@@ -0,0 +1,46 @@
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::KubernetesConfiguration::Mgmt::V2021_03_01
7
+ module Models
8
+ #
9
+ # Sample result definition
10
+ #
11
+ class Result
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Sample property of type string
16
+ attr_accessor :sample_property
17
+
18
+
19
+ #
20
+ # Mapper for Result class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'Result',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'Result',
31
+ model_properties: {
32
+ sample_property: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'sampleProperty',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,247 @@
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::KubernetesConfiguration::Mgmt::V2021_03_01
7
+ module Models
8
+ #
9
+ # The SourceControl Configuration object returned in Get & Put response.
10
+ #
11
+ class SourceControlConfiguration < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Url of the SourceControl Repository.
16
+ attr_accessor :repository_url
17
+
18
+ # @return [String] The namespace to which this operator is installed to.
19
+ # Maximum of 253 lower case alphanumeric characters, hyphen and period
20
+ # only. Default value: 'default' .
21
+ attr_accessor :operator_namespace
22
+
23
+ # @return [String] Instance name of the operator - identifying the
24
+ # specific configuration.
25
+ attr_accessor :operator_instance_name
26
+
27
+ # @return [OperatorType] Type of the operator. Possible values include:
28
+ # 'Flux'
29
+ attr_accessor :operator_type
30
+
31
+ # @return [String] Any Parameters for the Operator instance in string
32
+ # format.
33
+ attr_accessor :operator_params
34
+
35
+ # @return [Hash{String => String}] Name-value pairs of protected
36
+ # configuration settings for the configuration
37
+ attr_accessor :configuration_protected_settings
38
+
39
+ # @return [OperatorScopeType] Scope at which the operator will be
40
+ # installed. Possible values include: 'cluster', 'namespace'. Default
41
+ # value: 'cluster' .
42
+ attr_accessor :operator_scope
43
+
44
+ # @return [String] Public Key associated with this SourceControl
45
+ # configuration (either generated within the cluster or provided by the
46
+ # user).
47
+ attr_accessor :repository_public_key
48
+
49
+ # @return [String] Base64-encoded known_hosts contents containing public
50
+ # SSH keys required to access private Git instances
51
+ attr_accessor :ssh_known_hosts_contents
52
+
53
+ # @return [Boolean] Option to enable Helm Operator for this git
54
+ # configuration.
55
+ attr_accessor :enable_helm_operator
56
+
57
+ # @return [HelmOperatorProperties] Properties for Helm operator.
58
+ attr_accessor :helm_operator_properties
59
+
60
+ # @return [ProvisioningStateType] The provisioning state of the resource
61
+ # provider. Possible values include: 'Accepted', 'Deleting', 'Running',
62
+ # 'Succeeded', 'Failed'
63
+ attr_accessor :provisioning_state
64
+
65
+ # @return [ComplianceStatus] Compliance Status of the Configuration
66
+ attr_accessor :compliance_status
67
+
68
+ # @return [SystemData] Top level metadata
69
+ # https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
70
+ attr_accessor :system_data
71
+
72
+
73
+ #
74
+ # Mapper for SourceControlConfiguration class as Ruby Hash.
75
+ # This will be used for serialization/deserialization.
76
+ #
77
+ def self.mapper()
78
+ {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'SourceControlConfiguration',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'SourceControlConfiguration',
85
+ model_properties: {
86
+ id: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'id',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ name: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'name',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ type: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ read_only: true,
108
+ serialized_name: 'type',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ repository_url: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'properties.repositoryUrl',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ },
121
+ operator_namespace: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ serialized_name: 'properties.operatorNamespace',
125
+ default_value: 'default',
126
+ type: {
127
+ name: 'String'
128
+ }
129
+ },
130
+ operator_instance_name: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ serialized_name: 'properties.operatorInstanceName',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ },
138
+ operator_type: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ serialized_name: 'properties.operatorType',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ },
146
+ operator_params: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ serialized_name: 'properties.operatorParams',
150
+ type: {
151
+ name: 'String'
152
+ }
153
+ },
154
+ configuration_protected_settings: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ serialized_name: 'properties.configurationProtectedSettings',
158
+ type: {
159
+ name: 'Dictionary',
160
+ value: {
161
+ client_side_validation: true,
162
+ required: false,
163
+ serialized_name: 'StringElementType',
164
+ type: {
165
+ name: 'String'
166
+ }
167
+ }
168
+ }
169
+ },
170
+ operator_scope: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ serialized_name: 'properties.operatorScope',
174
+ default_value: 'cluster',
175
+ type: {
176
+ name: 'String'
177
+ }
178
+ },
179
+ repository_public_key: {
180
+ client_side_validation: true,
181
+ required: false,
182
+ read_only: true,
183
+ serialized_name: 'properties.repositoryPublicKey',
184
+ type: {
185
+ name: 'String'
186
+ }
187
+ },
188
+ ssh_known_hosts_contents: {
189
+ client_side_validation: true,
190
+ required: false,
191
+ serialized_name: 'properties.sshKnownHostsContents',
192
+ type: {
193
+ name: 'String'
194
+ }
195
+ },
196
+ enable_helm_operator: {
197
+ client_side_validation: true,
198
+ required: false,
199
+ serialized_name: 'properties.enableHelmOperator',
200
+ type: {
201
+ name: 'Boolean'
202
+ }
203
+ },
204
+ helm_operator_properties: {
205
+ client_side_validation: true,
206
+ required: false,
207
+ serialized_name: 'properties.helmOperatorProperties',
208
+ type: {
209
+ name: 'Composite',
210
+ class_name: 'HelmOperatorProperties'
211
+ }
212
+ },
213
+ provisioning_state: {
214
+ client_side_validation: true,
215
+ required: false,
216
+ read_only: true,
217
+ serialized_name: 'properties.provisioningState',
218
+ type: {
219
+ name: 'String'
220
+ }
221
+ },
222
+ compliance_status: {
223
+ client_side_validation: true,
224
+ required: false,
225
+ read_only: true,
226
+ serialized_name: 'properties.complianceStatus',
227
+ type: {
228
+ name: 'Composite',
229
+ class_name: 'ComplianceStatus'
230
+ }
231
+ },
232
+ system_data: {
233
+ client_side_validation: true,
234
+ required: false,
235
+ serialized_name: 'systemData',
236
+ type: {
237
+ name: 'Composite',
238
+ class_name: 'SystemData'
239
+ }
240
+ }
241
+ }
242
+ }
243
+ }
244
+ end
245
+ end
246
+ end
247
+ end
@@ -0,0 +1,104 @@
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::KubernetesConfiguration::Mgmt::V2021_03_01
7
+ module Models
8
+ #
9
+ # Result of the request to list Source Control Configurations. It contains
10
+ # a list of SourceControlConfiguration objects and a URL link to get the
11
+ # next set of results.
12
+ #
13
+ class SourceControlConfigurationList
14
+
15
+ include MsRestAzure
16
+
17
+ include MsRest::JSONable
18
+ # @return [Array<SourceControlConfiguration>] List of Source Control
19
+ # Configurations within a Kubernetes cluster.
20
+ attr_accessor :value
21
+
22
+ # @return [String] URL to get the next set of configuration objects, if
23
+ # any.
24
+ attr_accessor :next_link
25
+
26
+ # return [Proc] with next page method call.
27
+ attr_accessor :next_method
28
+
29
+ #
30
+ # Gets the rest of the items for the request, enabling auto-pagination.
31
+ #
32
+ # @return [Array<SourceControlConfiguration>] operation results.
33
+ #
34
+ def get_all_items
35
+ items = @value
36
+ page = self
37
+ while page.next_link != nil && !page.next_link.strip.empty? do
38
+ page = page.get_next_page
39
+ items.concat(page.value)
40
+ end
41
+ items
42
+ end
43
+
44
+ #
45
+ # Gets the next page of results.
46
+ #
47
+ # @return [SourceControlConfigurationList] with next page content.
48
+ #
49
+ def get_next_page
50
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
51
+ unless response.nil?
52
+ @next_link = response.body.next_link
53
+ @value = response.body.value
54
+ self
55
+ end
56
+ end
57
+
58
+ #
59
+ # Mapper for SourceControlConfigurationList class as Ruby Hash.
60
+ # This will be used for serialization/deserialization.
61
+ #
62
+ def self.mapper()
63
+ {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'SourceControlConfigurationList',
67
+ type: {
68
+ name: 'Composite',
69
+ class_name: 'SourceControlConfigurationList',
70
+ model_properties: {
71
+ value: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'value',
76
+ type: {
77
+ name: 'Sequence',
78
+ element: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'SourceControlConfigurationElementType',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'SourceControlConfiguration'
85
+ }
86
+ }
87
+ }
88
+ },
89
+ next_link: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'nextLink',
94
+ type: {
95
+ name: 'String'
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,105 @@
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::KubernetesConfiguration::Mgmt::V2021_03_01
7
+ module Models
8
+ #
9
+ # Metadata pertaining to creation and last modification of the resource.
10
+ #
11
+ class SystemData
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The identity that created the resource.
16
+ attr_accessor :created_by
17
+
18
+ # @return [CreatedByType] The type of identity that created the resource.
19
+ # Possible values include: 'User', 'Application', 'ManagedIdentity',
20
+ # 'Key'
21
+ attr_accessor :created_by_type
22
+
23
+ # @return [DateTime] The timestamp of resource creation (UTC).
24
+ attr_accessor :created_at
25
+
26
+ # @return [String] The identity that last modified the resource.
27
+ attr_accessor :last_modified_by
28
+
29
+ # @return [CreatedByType] The type of identity that last modified the
30
+ # resource. Possible values include: 'User', 'Application',
31
+ # 'ManagedIdentity', 'Key'
32
+ attr_accessor :last_modified_by_type
33
+
34
+ # @return [DateTime] The timestamp of resource last modification (UTC)
35
+ attr_accessor :last_modified_at
36
+
37
+
38
+ #
39
+ # Mapper for SystemData class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'systemData',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'SystemData',
50
+ model_properties: {
51
+ created_by: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'createdBy',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ created_by_type: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'createdByType',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ created_at: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'createdAt',
71
+ type: {
72
+ name: 'DateTime'
73
+ }
74
+ },
75
+ last_modified_by: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'lastModifiedBy',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ last_modified_by_type: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'lastModifiedByType',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ last_modified_at: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'lastModifiedAt',
95
+ type: {
96
+ name: 'DateTime'
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ end
103
+ end
104
+ end
105
+ end