azure_mgmt_netapp 0.20.0 → 0.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  3. data/lib/2019-05-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  4. data/lib/2019-06-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  5. data/lib/2019-07-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  6. data/lib/2019-08-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  7. data/lib/2019-10-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  8. data/lib/2019-11-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  9. data/lib/2020-02-01/generated/azure_mgmt_netapp.rb +71 -0
  10. data/lib/2020-02-01/generated/azure_mgmt_netapp/accounts.rb +709 -0
  11. data/lib/2020-02-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +153 -0
  12. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/active_directory.rb +160 -0
  13. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/authorize_request.rb +46 -0
  14. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/capacity_pool.rb +161 -0
  15. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/capacity_pool_list.rb +55 -0
  16. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb +133 -0
  17. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/check_name_resource_types.rb +18 -0
  18. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/dimension.rb +57 -0
  19. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/endpoint_type.rb +16 -0
  20. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/export_policy_rule.rb +115 -0
  21. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/in_availability_reason_type.rb +16 -0
  22. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/metric_specification.rb +145 -0
  23. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/mirror_state.rb +17 -0
  24. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/mount_target.rb +218 -0
  25. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/mount_target_properties.rb +152 -0
  26. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/net_app_account.rb +133 -0
  27. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/net_app_account_list.rb +55 -0
  28. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/net_app_account_patch.rb +133 -0
  29. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/operation.rb +83 -0
  30. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/operation_display.rb +79 -0
  31. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/operation_list_result.rb +57 -0
  32. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/relationship_status.rb +16 -0
  33. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/replication_object.rb +94 -0
  34. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/replication_schedule.rb +19 -0
  35. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/replication_status.rb +93 -0
  36. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb +78 -0
  37. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/resource_name_availability_request.rb +72 -0
  38. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/service_level.rb +17 -0
  39. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/service_specification.rb +56 -0
  40. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/snapshot.rb +123 -0
  41. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/snapshots_list.rb +55 -0
  42. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume.rb +328 -0
  43. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_list.rb +55 -0
  44. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_patch.rb +147 -0
  45. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb +58 -0
  46. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_properties_data_protection.rb +62 -0
  47. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb +58 -0
  48. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_revert.rb +46 -0
  49. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_snapshot_properties.rb +46 -0
  50. data/lib/2020-02-01/generated/azure_mgmt_netapp/module_definition.rb +9 -0
  51. data/lib/2020-02-01/generated/azure_mgmt_netapp/net_app_resource.rb +291 -0
  52. data/lib/2020-02-01/generated/azure_mgmt_netapp/operations.rb +115 -0
  53. data/lib/2020-02-01/generated/azure_mgmt_netapp/pools.rb +737 -0
  54. data/lib/2020-02-01/generated/azure_mgmt_netapp/snapshots.rb +794 -0
  55. data/lib/2020-02-01/generated/azure_mgmt_netapp/volumes.rb +1688 -0
  56. data/lib/azure_mgmt_netapp.rb +1 -0
  57. data/lib/profiles/latest/modules/netapp_profile_module.rb +101 -97
  58. data/lib/version.rb +1 -1
  59. metadata +49 -2
@@ -0,0 +1,153 @@
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::NetApp::Mgmt::V2020_02_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class AzureNetAppFilesManagementClient < 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] Version of the API to be used with the client request.
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 [Operations] operations
41
+ attr_reader :operations
42
+
43
+ # @return [NetAppResource] net_app_resource
44
+ attr_reader :net_app_resource
45
+
46
+ # @return [Accounts] accounts
47
+ attr_reader :accounts
48
+
49
+ # @return [Pools] pools
50
+ attr_reader :pools
51
+
52
+ # @return [Volumes] volumes
53
+ attr_reader :volumes
54
+
55
+ # @return [Snapshots] snapshots
56
+ attr_reader :snapshots
57
+
58
+ #
59
+ # Creates initializes a new instance of the AzureNetAppFilesManagementClient class.
60
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
61
+ # @param base_url [String] the base URI of the service.
62
+ # @param options [Array] filters to be applied to the HTTP requests.
63
+ #
64
+ def initialize(credentials = nil, base_url = nil, options = nil)
65
+ super(credentials, options)
66
+ @base_url = base_url || 'https://management.azure.com'
67
+
68
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
69
+ @credentials = credentials
70
+
71
+ @operations = Operations.new(self)
72
+ @net_app_resource = NetAppResource.new(self)
73
+ @accounts = Accounts.new(self)
74
+ @pools = Pools.new(self)
75
+ @volumes = Volumes.new(self)
76
+ @snapshots = Snapshots.new(self)
77
+ @api_version = '2020-02-01'
78
+ @accept_language = 'en-US'
79
+ @long_running_operation_retry_timeout = 30
80
+ @generate_client_request_id = true
81
+ add_telemetry
82
+ end
83
+
84
+ #
85
+ # Makes a request and returns the body of the response.
86
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
87
+ # @param path [String] the path, relative to {base_url}.
88
+ # @param options [Hash{String=>String}] specifying any request options like :body.
89
+ # @return [Hash{String=>String}] containing the body of the response.
90
+ # Example:
91
+ #
92
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
93
+ # path = "/path"
94
+ # options = {
95
+ # body: request_content,
96
+ # query_params: {'api-version' => '2016-02-01'}
97
+ # }
98
+ # result = @client.make_request(:put, path, options)
99
+ #
100
+ def make_request(method, path, options = {})
101
+ result = make_request_with_http_info(method, path, options)
102
+ result.body unless result.nil?
103
+ end
104
+
105
+ #
106
+ # Makes a request and returns the operation response.
107
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
108
+ # @param path [String] the path, relative to {base_url}.
109
+ # @param options [Hash{String=>String}] specifying any request options like :body.
110
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
111
+ #
112
+ def make_request_with_http_info(method, path, options = {})
113
+ result = make_request_async(method, path, options).value!
114
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
115
+ result
116
+ end
117
+
118
+ #
119
+ # Makes a request asynchronously.
120
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
121
+ # @param path [String] the path, relative to {base_url}.
122
+ # @param options [Hash{String=>String}] specifying any request options like :body.
123
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
124
+ #
125
+ def make_request_async(method, path, options = {})
126
+ fail ArgumentError, 'method is nil' if method.nil?
127
+ fail ArgumentError, 'path is nil' if path.nil?
128
+
129
+ request_url = options[:base_url] || @base_url
130
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
131
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
132
+ end
133
+
134
+ request_headers = @request_headers
135
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
136
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
137
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
138
+
139
+ super(request_url, method, path, options)
140
+ end
141
+
142
+
143
+ private
144
+ #
145
+ # Adds telemetry information.
146
+ #
147
+ def add_telemetry
148
+ sdk_information = 'azure_mgmt_netapp'
149
+ sdk_information = "#{sdk_information}/0.20.1"
150
+ add_user_agent_information(sdk_information)
151
+ end
152
+ end
153
+ end
@@ -0,0 +1,160 @@
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::NetApp::Mgmt::V2020_02_01
7
+ module Models
8
+ #
9
+ # Active Directory
10
+ #
11
+ class ActiveDirectory
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Id of the Active Directory
16
+ attr_accessor :active_directory_id
17
+
18
+ # @return [String] Username of Active Directory domain administrator
19
+ attr_accessor :username
20
+
21
+ # @return [String] Plain text password of Active Directory domain
22
+ # administrator
23
+ attr_accessor :password
24
+
25
+ # @return [String] Name of the Active Directory domain
26
+ attr_accessor :domain
27
+
28
+ # @return [String] Comma separated list of DNS server IP addresses (IPv4
29
+ # only) for the Active Directory domain
30
+ attr_accessor :dns
31
+
32
+ # @return [String] Status of the Active Directory
33
+ attr_accessor :status
34
+
35
+ # @return [String] NetBIOS name of the SMB server. This name will be
36
+ # registered as a computer account in the AD and used to mount volumes
37
+ attr_accessor :smb_server_name
38
+
39
+ # @return [String] The Organizational Unit (OU) within the Windows Active
40
+ # Directory
41
+ attr_accessor :organizational_unit
42
+
43
+ # @return [String] The Active Directory site the service will limit
44
+ # Domain Controller discovery to
45
+ attr_accessor :site
46
+
47
+ # @return [Array<String>] Users to be added to the Built-in Backup
48
+ # Operator active directory group. A list of unique usernames without
49
+ # domain specifier
50
+ attr_accessor :backup_operators
51
+
52
+
53
+ #
54
+ # Mapper for ActiveDirectory class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'activeDirectory',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'ActiveDirectory',
65
+ model_properties: {
66
+ active_directory_id: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'activeDirectoryId',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ username: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'username',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ password: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'password',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ domain: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'domain',
94
+ type: {
95
+ name: 'String'
96
+ }
97
+ },
98
+ dns: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ serialized_name: 'dns',
102
+ type: {
103
+ name: 'String'
104
+ }
105
+ },
106
+ status: {
107
+ client_side_validation: true,
108
+ required: false,
109
+ serialized_name: 'status',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ smb_server_name: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'smbServerName',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ organizational_unit: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ serialized_name: 'organizationalUnit',
126
+ type: {
127
+ name: 'String'
128
+ }
129
+ },
130
+ site: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ serialized_name: 'site',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ },
138
+ backup_operators: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ serialized_name: 'backupOperators',
142
+ type: {
143
+ name: 'Sequence',
144
+ element: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ serialized_name: 'StringElementType',
148
+ type: {
149
+ name: 'String'
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ end
158
+ end
159
+ end
160
+ 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::NetApp::Mgmt::V2020_02_01
7
+ module Models
8
+ #
9
+ # Authorize request
10
+ #
11
+ class AuthorizeRequest
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource id of the remote volume
16
+ attr_accessor :remote_volume_resource_id
17
+
18
+
19
+ #
20
+ # Mapper for AuthorizeRequest 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: 'authorizeRequest',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'AuthorizeRequest',
31
+ model_properties: {
32
+ remote_volume_resource_id: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'remoteVolumeResourceId',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,161 @@
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::NetApp::Mgmt::V2020_02_01
7
+ module Models
8
+ #
9
+ # Capacity pool resource
10
+ #
11
+ class CapacityPool
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource location
16
+ attr_accessor :location
17
+
18
+ # @return [String] Resource Id
19
+ attr_accessor :id
20
+
21
+ # @return [String] Resource name
22
+ attr_accessor :name
23
+
24
+ # @return [String] Resource type
25
+ attr_accessor :type
26
+
27
+ # @return [Hash{String => String}] Resource tags
28
+ attr_accessor :tags
29
+
30
+ # @return [String] poolId. UUID v4 used to identify the Pool
31
+ attr_accessor :pool_id
32
+
33
+ # @return [Integer] size. Provisioned size of the pool (in bytes).
34
+ # Allowed values are in 4TiB chunks (value must be multiply of
35
+ # 4398046511104).
36
+ attr_accessor :size
37
+
38
+ # @return [ServiceLevel] serviceLevel. The service level of the file
39
+ # system. Possible values include: 'Standard', 'Premium', 'Ultra'.
40
+ # Default value: 'Premium' .
41
+ attr_accessor :service_level
42
+
43
+ # @return [String] Azure lifecycle management
44
+ attr_accessor :provisioning_state
45
+
46
+
47
+ #
48
+ # Mapper for CapacityPool class as Ruby Hash.
49
+ # This will be used for serialization/deserialization.
50
+ #
51
+ def self.mapper()
52
+ {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'capacityPool',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'CapacityPool',
59
+ model_properties: {
60
+ location: {
61
+ client_side_validation: true,
62
+ required: true,
63
+ serialized_name: 'location',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ id: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'id',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ name: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'name',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ type: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'type',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ tags: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'tags',
99
+ type: {
100
+ name: 'Dictionary',
101
+ value: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'StringElementType',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ }
109
+ }
110
+ },
111
+ pool_id: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'properties.poolId',
116
+ constraints: {
117
+ MaxLength: 36,
118
+ MinLength: 36,
119
+ Pattern: '^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'
120
+ },
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ },
125
+ size: {
126
+ client_side_validation: true,
127
+ required: true,
128
+ serialized_name: 'properties.size',
129
+ constraints: {
130
+ InclusiveMaximum: 549755813888000,
131
+ InclusiveMinimum: 4398046511104
132
+ },
133
+ type: {
134
+ name: 'Number'
135
+ }
136
+ },
137
+ service_level: {
138
+ client_side_validation: true,
139
+ required: true,
140
+ serialized_name: 'properties.serviceLevel',
141
+ default_value: 'Premium',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ },
146
+ provisioning_state: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ read_only: true,
150
+ serialized_name: 'properties.provisioningState',
151
+ type: {
152
+ name: 'String'
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+ end
159
+ end
160
+ end
161
+ end