azure_mgmt_kubernetes_configuration 0.17.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 +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration.rb +47 -0
  4. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/compliance_state.rb +17 -0
  5. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/compliance_status.rb +82 -0
  6. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/enable_helm_operator.rb +16 -0
  7. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/error_definition.rb +81 -0
  8. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/error_response.rb +47 -0
  9. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/helm_operator_properties.rb +57 -0
  10. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/message_level.rb +17 -0
  11. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/operator_scope.rb +16 -0
  12. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/operator_type.rb +15 -0
  13. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/provisioning_state.rb +19 -0
  14. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/proxy_resource.rb +62 -0
  15. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/resource.rb +80 -0
  16. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/resource_provider_operation.rb +60 -0
  17. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/resource_provider_operation_display.rb +79 -0
  18. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/resource_provider_operation_list.rb +100 -0
  19. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/result.rb +46 -0
  20. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/source_control_configuration.rb +202 -0
  21. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/models/source_control_configuration_list.rb +104 -0
  22. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/module_definition.rb +9 -0
  23. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/operations.rb +231 -0
  24. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/source_control_configuration_client.rb +132 -0
  25. data/lib/2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration/source_control_configurations.rb +737 -0
  26. data/lib/azure_mgmt_kubernetes_configuration.rb +6 -0
  27. data/lib/module_definition.rb +7 -0
  28. data/lib/profiles/latest/kubernetesconfiguration_latest_profile_client.rb +40 -0
  29. data/lib/profiles/latest/kubernetesconfiguration_module_definition.rb +8 -0
  30. data/lib/profiles/latest/modules/kubernetesconfiguration_profile_module.rb +135 -0
  31. data/lib/version.rb +7 -0
  32. metadata +147 -0
@@ -0,0 +1,62 @@
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::V2019_11_01_preview
7
+ module Models
8
+ #
9
+ # ARM proxy resource.
10
+ #
11
+ class ProxyResource < Resource
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ #
17
+ # Mapper for ProxyResource class as Ruby Hash.
18
+ # This will be used for serialization/deserialization.
19
+ #
20
+ def self.mapper()
21
+ {
22
+ client_side_validation: true,
23
+ required: false,
24
+ serialized_name: 'ProxyResource',
25
+ type: {
26
+ name: 'Composite',
27
+ class_name: 'ProxyResource',
28
+ model_properties: {
29
+ id: {
30
+ client_side_validation: true,
31
+ required: false,
32
+ read_only: true,
33
+ serialized_name: 'id',
34
+ type: {
35
+ name: 'String'
36
+ }
37
+ },
38
+ name: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'name',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ type: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'type',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,80 @@
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::V2019_11_01_preview
7
+ module Models
8
+ #
9
+ # The Resource model definition.
10
+ #
11
+ class Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource Id
16
+ attr_accessor :id
17
+
18
+ # @return [String] Resource name
19
+ attr_accessor :name
20
+
21
+ # @return [String] Resource type
22
+ attr_accessor :type
23
+
24
+
25
+ # @return [String] the name of the resource group of the resource.
26
+ def resource_group
27
+ unless self.id.nil?
28
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
29
+ groups.captures[0].strip if groups
30
+ end
31
+ end
32
+
33
+
34
+ #
35
+ # Mapper for Resource 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: 'Resource',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'Resource',
46
+ model_properties: {
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ name: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'name',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ type: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'type',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,60 @@
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::V2019_11_01_preview
7
+ module Models
8
+ #
9
+ # Supported operation of this resource provider.
10
+ #
11
+ class ResourceProviderOperation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name, in format of
16
+ # {provider}/{resource}/{operation}
17
+ attr_accessor :name
18
+
19
+ # @return [ResourceProviderOperationDisplay] Display metadata associated
20
+ # with the operation.
21
+ attr_accessor :display
22
+
23
+
24
+ #
25
+ # Mapper for ResourceProviderOperation class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'ResourceProviderOperation',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'ResourceProviderOperation',
36
+ model_properties: {
37
+ name: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'name',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ display: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'display',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'ResourceProviderOperationDisplay'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ 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::KubernetesConfiguration::Mgmt::V2019_11_01_preview
7
+ module Models
8
+ #
9
+ # Display metadata associated with the operation.
10
+ #
11
+ class ResourceProviderOperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource provider: Microsoft KubernetesConfiguration.
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource on which the operation is performed.
19
+ attr_accessor :resource
20
+
21
+ # @return [String] Type of operation: get, read, delete, etc.
22
+ attr_accessor :operation
23
+
24
+ # @return [String] Description of this operation.
25
+ attr_accessor :description
26
+
27
+
28
+ #
29
+ # Mapper for ResourceProviderOperationDisplay class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'ResourceProviderOperation_display',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ResourceProviderOperationDisplay',
40
+ model_properties: {
41
+ provider: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'provider',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ resource: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'resource',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ operation: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'operation',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ description: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'description',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,100 @@
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::V2019_11_01_preview
7
+ module Models
8
+ #
9
+ # Result of the request to list operations.
10
+ #
11
+ class ResourceProviderOperationList
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<ResourceProviderOperation>] List of operations supported
17
+ # by this resource provider.
18
+ attr_accessor :value
19
+
20
+ # @return [String] URL to the next set of results, if any.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<ResourceProviderOperation>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [ResourceProviderOperationList] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for ResourceProviderOperationList class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'ResourceProviderOperationList',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'ResourceProviderOperationList',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'ResourceProviderOperationElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'ResourceProviderOperation'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -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::V2019_11_01_preview
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,202 @@
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::V2019_11_01_preview
7
+ module Models
8
+ #
9
+ # The SourceControl Configuration object.
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 [OperatorScope] Scope at which the operator will be installed.
36
+ # Possible values include: 'cluster', 'namespace'. Default value:
37
+ # 'cluster' .
38
+ attr_accessor :operator_scope
39
+
40
+ # @return [String] Public Key associated with this SourceControl
41
+ # configuration (either generated within the cluster or provided by the
42
+ # user).
43
+ attr_accessor :repository_public_key
44
+
45
+ # @return [EnableHelmOperator] Option to enable Helm Operator for this
46
+ # git configuration. Possible values include: 'true', 'false'
47
+ attr_accessor :enable_helm_operator
48
+
49
+ # @return [HelmOperatorProperties] Properties for Helm operator.
50
+ attr_accessor :helm_operator_properties
51
+
52
+ # @return [ProvisioningState] The provisioning state of the resource
53
+ # provider. Possible values include: 'Accepted', 'Deleting', 'Running',
54
+ # 'Succeeded', 'Failed'
55
+ attr_accessor :provisioning_state
56
+
57
+ # @return [ComplianceStatus] Compliance Status of the Configuration
58
+ attr_accessor :compliance_status
59
+
60
+
61
+ #
62
+ # Mapper for SourceControlConfiguration class as Ruby Hash.
63
+ # This will be used for serialization/deserialization.
64
+ #
65
+ def self.mapper()
66
+ {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'SourceControlConfiguration',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'SourceControlConfiguration',
73
+ model_properties: {
74
+ id: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'id',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ name: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'name',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ type: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'type',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ repository_url: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'properties.repositoryUrl',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ },
109
+ operator_namespace: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ serialized_name: 'properties.operatorNamespace',
113
+ default_value: 'default',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ operator_instance_name: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'properties.operatorInstanceName',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ operator_type: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ serialized_name: 'properties.operatorType',
130
+ type: {
131
+ name: 'String'
132
+ }
133
+ },
134
+ operator_params: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ serialized_name: 'properties.operatorParams',
138
+ type: {
139
+ name: 'String'
140
+ }
141
+ },
142
+ operator_scope: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ serialized_name: 'properties.operatorScope',
146
+ default_value: 'cluster',
147
+ type: {
148
+ name: 'String'
149
+ }
150
+ },
151
+ repository_public_key: {
152
+ client_side_validation: true,
153
+ required: false,
154
+ read_only: true,
155
+ serialized_name: 'properties.repositoryPublicKey',
156
+ type: {
157
+ name: 'String'
158
+ }
159
+ },
160
+ enable_helm_operator: {
161
+ client_side_validation: true,
162
+ required: false,
163
+ serialized_name: 'properties.enableHelmOperator',
164
+ type: {
165
+ name: 'String'
166
+ }
167
+ },
168
+ helm_operator_properties: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ serialized_name: 'properties.helmOperatorProperties',
172
+ type: {
173
+ name: 'Composite',
174
+ class_name: 'HelmOperatorProperties'
175
+ }
176
+ },
177
+ provisioning_state: {
178
+ client_side_validation: true,
179
+ required: false,
180
+ read_only: true,
181
+ serialized_name: 'properties.provisioningState',
182
+ type: {
183
+ name: 'String'
184
+ }
185
+ },
186
+ compliance_status: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ read_only: true,
190
+ serialized_name: 'properties.complianceStatus',
191
+ type: {
192
+ name: 'Composite',
193
+ class_name: 'ComplianceStatus'
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+ end
200
+ end
201
+ end
202
+ end