azure_mgmt_container_service 0.20.3 → 0.20.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-03-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  3. data/lib/2016-09-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  4. data/lib/2017-01-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  5. data/lib/2017-07-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  6. data/lib/2017-08-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  7. data/lib/2017-09-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  8. data/lib/2018-03-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  9. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  10. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  11. data/lib/2019-02-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  12. data/lib/2019-04-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  13. data/lib/2019-04-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  14. data/lib/2019-06-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  15. data/lib/2019-08-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  16. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  17. data/lib/2019-10-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  18. data/lib/2020-02-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  19. data/lib/2020-06-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  20. data/lib/2020-07-01/generated/azure_mgmt_container_service.rb +99 -0
  21. data/lib/2020-07-01/generated/azure_mgmt_container_service/agent_pools.rb +900 -0
  22. data/lib/2020-07-01/generated/azure_mgmt_container_service/container_service_client.rb +145 -0
  23. data/lib/2020-07-01/generated/azure_mgmt_container_service/managed_clusters.rb +2197 -0
  24. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/agent_pool.rb +441 -0
  25. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  26. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  27. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  28. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/agent_pool_mode.rb +16 -0
  29. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  30. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +129 -0
  31. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  32. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_settings.rb +47 -0
  33. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/connection_status.rb +18 -0
  34. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  35. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  36. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  37. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +179 -0
  38. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  39. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  40. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  41. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  42. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  43. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  44. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  45. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/license_type.rb +16 -0
  46. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  47. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +389 -0
  48. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +123 -0
  49. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  50. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +80 -0
  51. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile_identity.rb +59 -0
  52. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +280 -0
  53. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +414 -0
  54. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
  55. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +104 -0
  56. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_identity_user_assigned_identities_value.rb +61 -0
  57. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  58. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +132 -0
  59. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
  60. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
  61. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
  62. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  63. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  64. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_auto_scaler_profile.rb +135 -0
  65. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_identity_profile_value.rb +61 -0
  66. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  67. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_sku.rb +60 -0
  68. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_skuname.rb +15 -0
  69. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_skutier.rb +16 -0
  70. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  71. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +76 -0
  72. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/network_mode.rb +16 -0
  73. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  74. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  75. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  76. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  77. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  78. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/outbound_type.rb +16 -0
  79. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/private_endpoint.rb +46 -0
  80. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/private_endpoint_connection.rb +111 -0
  81. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/private_endpoint_connection_list_result.rb +55 -0
  82. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/private_endpoint_connection_provisioning_state.rb +18 -0
  83. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/private_link_service_connection_state.rb +59 -0
  84. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  85. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +17 -0
  86. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
  87. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  88. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +16 -0
  89. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  90. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  91. data/lib/2020-07-01/generated/azure_mgmt_container_service/models/user_assigned_identity.rb +69 -0
  92. data/lib/2020-07-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  93. data/lib/2020-07-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  94. data/lib/2020-07-01/generated/azure_mgmt_container_service/private_endpoint_connections.rb +515 -0
  95. data/lib/azure_mgmt_container_service.rb +1 -0
  96. data/lib/profiles/latest/modules/containerservice_profile_module.rb +143 -139
  97. data/lib/version.rb +1 -1
  98. metadata +77 -2
@@ -0,0 +1,108 @@
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::ContainerService::Mgmt::V2020_07_01
7
+ module Models
8
+ #
9
+ # Describes the properties of a Compute Operation value.
10
+ #
11
+ class OperationValue
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The origin of the compute operation.
16
+ attr_accessor :origin
17
+
18
+ # @return [String] The name of the compute operation.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The display name of the compute operation.
22
+ attr_accessor :operation
23
+
24
+ # @return [String] The display name of the resource the operation applies
25
+ # to.
26
+ attr_accessor :resource
27
+
28
+ # @return [String] The description of the operation.
29
+ attr_accessor :description
30
+
31
+ # @return [String] The resource provider for the operation.
32
+ attr_accessor :provider
33
+
34
+
35
+ #
36
+ # Mapper for OperationValue class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'OperationValue',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'OperationValue',
47
+ model_properties: {
48
+ origin: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'origin',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ name: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'name',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ operation: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'display.operation',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ resource: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'display.resource',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ description: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'display.description',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ provider: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'display.provider',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,16 @@
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::ContainerService::Mgmt::V2020_07_01
7
+ module Models
8
+ #
9
+ # Defines values for OSType
10
+ #
11
+ module OSType
12
+ Linux = "Linux"
13
+ Windows = "Windows"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
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::ContainerService::Mgmt::V2020_07_01
7
+ module Models
8
+ #
9
+ # Defines values for OutboundType
10
+ #
11
+ module OutboundType
12
+ LoadBalancer = "loadBalancer"
13
+ UserDefinedRouting = "userDefinedRouting"
14
+ end
15
+ end
16
+ 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::ContainerService::Mgmt::V2020_07_01
7
+ module Models
8
+ #
9
+ # Private endpoint which a connection belongs to.
10
+ #
11
+ class PrivateEndpoint
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource Id for private endpoint
16
+ attr_accessor :id
17
+
18
+
19
+ #
20
+ # Mapper for PrivateEndpoint 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: 'PrivateEndpoint',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'PrivateEndpoint',
31
+ model_properties: {
32
+ id: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'id',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,111 @@
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::ContainerService::Mgmt::V2020_07_01
7
+ module Models
8
+ #
9
+ # A private endpoint connection
10
+ #
11
+ class PrivateEndpointConnection
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The ID of the private endpoint connection.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The name of the private endpoint connection.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The resource type.
22
+ attr_accessor :type
23
+
24
+ # @return [PrivateEndpointConnectionProvisioningState] The current
25
+ # provisioning state. Possible values include: 'Succeeded', 'Creating',
26
+ # 'Deleting', 'Failed'
27
+ attr_accessor :provisioning_state
28
+
29
+ # @return [PrivateEndpoint] The resource of private endpoint.
30
+ attr_accessor :private_endpoint
31
+
32
+ # @return [PrivateLinkServiceConnectionState] A collection of information
33
+ # about the state of the connection between service consumer and
34
+ # provider.
35
+ attr_accessor :private_link_service_connection_state
36
+
37
+
38
+ #
39
+ # Mapper for PrivateEndpointConnection 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: 'PrivateEndpointConnection',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'PrivateEndpointConnection',
50
+ model_properties: {
51
+ id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ name: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'name',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ type: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ provisioning_state: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ read_only: true,
82
+ serialized_name: 'properties.provisioningState',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ private_endpoint: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'properties.privateEndpoint',
91
+ type: {
92
+ name: 'Composite',
93
+ class_name: 'PrivateEndpoint'
94
+ }
95
+ },
96
+ private_link_service_connection_state: {
97
+ client_side_validation: true,
98
+ required: true,
99
+ serialized_name: 'properties.privateLinkServiceConnectionState',
100
+ type: {
101
+ name: 'Composite',
102
+ class_name: 'PrivateLinkServiceConnectionState'
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,55 @@
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::ContainerService::Mgmt::V2020_07_01
7
+ module Models
8
+ #
9
+ # A list of private endpoint connections
10
+ #
11
+ class PrivateEndpointConnectionListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<PrivateEndpointConnection>] The collection value.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for PrivateEndpointConnectionListResult 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: 'PrivateEndpointConnectionListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'PrivateEndpointConnectionListResult',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'PrivateEndpointConnectionElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'PrivateEndpointConnection'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,18 @@
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::ContainerService::Mgmt::V2020_07_01
7
+ module Models
8
+ #
9
+ # Defines values for PrivateEndpointConnectionProvisioningState
10
+ #
11
+ module PrivateEndpointConnectionProvisioningState
12
+ Succeeded = "Succeeded"
13
+ Creating = "Creating"
14
+ Deleting = "Deleting"
15
+ Failed = "Failed"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,59 @@
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::ContainerService::Mgmt::V2020_07_01
7
+ module Models
8
+ #
9
+ # The state of a private link service connection.
10
+ #
11
+ class PrivateLinkServiceConnectionState
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ConnectionStatus] The private link service connection status.
16
+ # Possible values include: 'Pending', 'Approved', 'Rejected',
17
+ # 'Disconnected'
18
+ attr_accessor :status
19
+
20
+ # @return [String] The private link service connection description.
21
+ attr_accessor :description
22
+
23
+
24
+ #
25
+ # Mapper for PrivateLinkServiceConnectionState 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: 'PrivateLinkServiceConnectionState',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'PrivateLinkServiceConnectionState',
36
+ model_properties: {
37
+ status: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'status',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ description: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'description',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,110 @@
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::ContainerService::Mgmt::V2020_07_01
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
+ # @return [String] Resource location
25
+ attr_accessor :location
26
+
27
+ # @return [Hash{String => String}] Resource tags
28
+ attr_accessor :tags
29
+
30
+
31
+ # @return [String] the name of the resource group of the resource.
32
+ def resource_group
33
+ unless self.id.nil?
34
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
35
+ groups.captures[0].strip if groups
36
+ end
37
+ end
38
+
39
+
40
+ #
41
+ # Mapper for Resource class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'Resource',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'Resource',
52
+ model_properties: {
53
+ id: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'id',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ name: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'name',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ type: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'type',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ location: {
81
+ client_side_validation: true,
82
+ required: true,
83
+ serialized_name: 'location',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ tags: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'tags',
92
+ type: {
93
+ name: 'Dictionary',
94
+ value: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ serialized_name: 'StringElementType',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ end
108
+ end
109
+ end
110
+ end