Release 20200103 (#2743)
This commit is contained in:
Родитель
234962e91e
Коммит
71fd44fd6a
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure
|
||||
VERSION = '0.49.0'
|
||||
VERSION = '0.49.1'
|
||||
end
|
||||
|
|
|
@ -7,46 +7,52 @@ require 'azure_mgmt_netapp'
|
|||
module Azure::Profiles::Latest
|
||||
module NetApp
|
||||
module Mgmt
|
||||
Operations = Azure::NetApp::Mgmt::V2019_08_01::Operations
|
||||
NetAppResource = Azure::NetApp::Mgmt::V2019_08_01::NetAppResource
|
||||
Accounts = Azure::NetApp::Mgmt::V2019_08_01::Accounts
|
||||
Pools = Azure::NetApp::Mgmt::V2019_08_01::Pools
|
||||
Volumes = Azure::NetApp::Mgmt::V2019_08_01::Volumes
|
||||
MountTargets = Azure::NetApp::Mgmt::V2019_08_01::MountTargets
|
||||
Snapshots = Azure::NetApp::Mgmt::V2019_08_01::Snapshots
|
||||
Operations = Azure::NetApp::Mgmt::V2019_10_01::Operations
|
||||
NetAppResource = Azure::NetApp::Mgmt::V2019_10_01::NetAppResource
|
||||
Accounts = Azure::NetApp::Mgmt::V2019_10_01::Accounts
|
||||
Pools = Azure::NetApp::Mgmt::V2019_10_01::Pools
|
||||
Volumes = Azure::NetApp::Mgmt::V2019_10_01::Volumes
|
||||
MountTargets = Azure::NetApp::Mgmt::V2019_10_01::MountTargets
|
||||
Snapshots = Azure::NetApp::Mgmt::V2019_10_01::Snapshots
|
||||
|
||||
module Models
|
||||
CapacityPoolPatch = Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPoolPatch
|
||||
OperationDisplay = Azure::NetApp::Mgmt::V2019_08_01::Models::OperationDisplay
|
||||
ExportPolicyRule = Azure::NetApp::Mgmt::V2019_08_01::Models::ExportPolicyRule
|
||||
MetricSpecification = Azure::NetApp::Mgmt::V2019_08_01::Models::MetricSpecification
|
||||
VolumePropertiesExportPolicy = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePropertiesExportPolicy
|
||||
Operation = Azure::NetApp::Mgmt::V2019_08_01::Models::Operation
|
||||
ReplicationObject = Azure::NetApp::Mgmt::V2019_08_01::Models::ReplicationObject
|
||||
ResourceNameAvailability = Azure::NetApp::Mgmt::V2019_08_01::Models::ResourceNameAvailability
|
||||
VolumePropertiesDataProtection = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePropertiesDataProtection
|
||||
ActiveDirectory = Azure::NetApp::Mgmt::V2019_08_01::Models::ActiveDirectory
|
||||
Volume = Azure::NetApp::Mgmt::V2019_08_01::Models::Volume
|
||||
NetAppAccountList = Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccountList
|
||||
VolumeList = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumeList
|
||||
CapacityPool = Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPool
|
||||
VolumePatchPropertiesExportPolicy = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePatchPropertiesExportPolicy
|
||||
Dimension = Azure::NetApp::Mgmt::V2019_08_01::Models::Dimension
|
||||
VolumePatch = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePatch
|
||||
OperationListResult = Azure::NetApp::Mgmt::V2019_08_01::Models::OperationListResult
|
||||
MountTarget = Azure::NetApp::Mgmt::V2019_08_01::Models::MountTarget
|
||||
NetAppAccount = Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccount
|
||||
MountTargetList = Azure::NetApp::Mgmt::V2019_08_01::Models::MountTargetList
|
||||
CapacityPoolList = Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPoolList
|
||||
Snapshot = Azure::NetApp::Mgmt::V2019_08_01::Models::Snapshot
|
||||
ResourceNameAvailabilityRequest = Azure::NetApp::Mgmt::V2019_08_01::Models::ResourceNameAvailabilityRequest
|
||||
SnapshotsList = Azure::NetApp::Mgmt::V2019_08_01::Models::SnapshotsList
|
||||
ServiceSpecification = Azure::NetApp::Mgmt::V2019_08_01::Models::ServiceSpecification
|
||||
SnapshotPatch = Azure::NetApp::Mgmt::V2019_08_01::Models::SnapshotPatch
|
||||
NetAppAccountPatch = Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccountPatch
|
||||
InAvailabilityReasonType = Azure::NetApp::Mgmt::V2019_08_01::Models::InAvailabilityReasonType
|
||||
CheckNameResourceTypes = Azure::NetApp::Mgmt::V2019_08_01::Models::CheckNameResourceTypes
|
||||
ServiceLevel = Azure::NetApp::Mgmt::V2019_08_01::Models::ServiceLevel
|
||||
ExportPolicyRule = Azure::NetApp::Mgmt::V2019_10_01::Models::ExportPolicyRule
|
||||
OperationDisplay = Azure::NetApp::Mgmt::V2019_10_01::Models::OperationDisplay
|
||||
VolumePropertiesExportPolicy = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePropertiesExportPolicy
|
||||
MetricSpecification = Azure::NetApp::Mgmt::V2019_10_01::Models::MetricSpecification
|
||||
ReplicationObject = Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationObject
|
||||
Operation = Azure::NetApp::Mgmt::V2019_10_01::Models::Operation
|
||||
VolumePropertiesDataProtection = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePropertiesDataProtection
|
||||
ResourceNameAvailability = Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailability
|
||||
Volume = Azure::NetApp::Mgmt::V2019_10_01::Models::Volume
|
||||
ActiveDirectory = Azure::NetApp::Mgmt::V2019_10_01::Models::ActiveDirectory
|
||||
VolumeList = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumeList
|
||||
NetAppAccountList = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountList
|
||||
ReplicationStatus = Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationStatus
|
||||
CapacityPool = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool
|
||||
VolumePatchPropertiesExportPolicy = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePatchPropertiesExportPolicy
|
||||
CapacityPoolPatch = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolPatch
|
||||
VolumePatch = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePatch
|
||||
ServiceSpecification = Azure::NetApp::Mgmt::V2019_10_01::Models::ServiceSpecification
|
||||
MountTarget = Azure::NetApp::Mgmt::V2019_10_01::Models::MountTarget
|
||||
ResourceNameAvailabilityRequest = Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailabilityRequest
|
||||
MountTargetList = Azure::NetApp::Mgmt::V2019_10_01::Models::MountTargetList
|
||||
NetAppAccountPatch = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountPatch
|
||||
Snapshot = Azure::NetApp::Mgmt::V2019_10_01::Models::Snapshot
|
||||
Dimension = Azure::NetApp::Mgmt::V2019_10_01::Models::Dimension
|
||||
SnapshotsList = Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotsList
|
||||
NetAppAccount = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount
|
||||
SnapshotPatch = Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotPatch
|
||||
OperationListResult = Azure::NetApp::Mgmt::V2019_10_01::Models::OperationListResult
|
||||
AuthorizeRequest = Azure::NetApp::Mgmt::V2019_10_01::Models::AuthorizeRequest
|
||||
CapacityPoolList = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolList
|
||||
InAvailabilityReasonType = Azure::NetApp::Mgmt::V2019_10_01::Models::InAvailabilityReasonType
|
||||
CheckNameResourceTypes = Azure::NetApp::Mgmt::V2019_10_01::Models::CheckNameResourceTypes
|
||||
ServiceLevel = Azure::NetApp::Mgmt::V2019_10_01::Models::ServiceLevel
|
||||
EndpointType = Azure::NetApp::Mgmt::V2019_10_01::Models::EndpointType
|
||||
ReplicationSchedule = Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationSchedule
|
||||
RelationshipStatus = Azure::NetApp::Mgmt::V2019_10_01::Models::RelationshipStatus
|
||||
MirrorState = Azure::NetApp::Mgmt::V2019_10_01::Models::MirrorState
|
||||
end
|
||||
|
||||
class NetAppManagementClass
|
||||
|
@ -55,7 +61,7 @@ module Azure::Profiles::Latest
|
|||
def initialize(configurable, base_url=nil, options=nil)
|
||||
@configurable, @base_url, @options = configurable, base_url, options
|
||||
|
||||
@client_0 = Azure::NetApp::Mgmt::V2019_08_01::AzureNetAppFilesManagementClient.new(configurable.credentials, base_url, options)
|
||||
@client_0 = Azure::NetApp::Mgmt::V2019_10_01::AzureNetAppFilesManagementClient.new(configurable.credentials, base_url, options)
|
||||
if(@client_0.respond_to?(:subscription_id))
|
||||
@client_0.subscription_id = configurable.subscription_id
|
||||
end
|
||||
|
@ -85,98 +91,116 @@ module Azure::Profiles::Latest
|
|||
end
|
||||
|
||||
class ModelClasses
|
||||
def capacity_pool_patch
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPoolPatch
|
||||
def export_policy_rule
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ExportPolicyRule
|
||||
end
|
||||
def operation_display
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::OperationDisplay
|
||||
end
|
||||
def export_policy_rule
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ExportPolicyRule
|
||||
end
|
||||
def metric_specification
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::MetricSpecification
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::OperationDisplay
|
||||
end
|
||||
def volume_properties_export_policy
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePropertiesExportPolicy
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePropertiesExportPolicy
|
||||
end
|
||||
def operation
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::Operation
|
||||
def metric_specification
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::MetricSpecification
|
||||
end
|
||||
def replication_object
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ReplicationObject
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationObject
|
||||
end
|
||||
def resource_name_availability
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ResourceNameAvailability
|
||||
def operation
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::Operation
|
||||
end
|
||||
def volume_properties_data_protection
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePropertiesDataProtection
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePropertiesDataProtection
|
||||
end
|
||||
def active_directory
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ActiveDirectory
|
||||
def resource_name_availability
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailability
|
||||
end
|
||||
def volume
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::Volume
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::Volume
|
||||
end
|
||||
def net_app_account_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccountList
|
||||
def active_directory
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ActiveDirectory
|
||||
end
|
||||
def volume_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumeList
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumeList
|
||||
end
|
||||
def net_app_account_list
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountList
|
||||
end
|
||||
def replication_status
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationStatus
|
||||
end
|
||||
def capacity_pool
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPool
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool
|
||||
end
|
||||
def volume_patch_properties_export_policy
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePatchPropertiesExportPolicy
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePatchPropertiesExportPolicy
|
||||
end
|
||||
def dimension
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::Dimension
|
||||
def capacity_pool_patch
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolPatch
|
||||
end
|
||||
def volume_patch
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePatch
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::OperationListResult
|
||||
end
|
||||
def mount_target
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::MountTarget
|
||||
end
|
||||
def net_app_account
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccount
|
||||
end
|
||||
def mount_target_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::MountTargetList
|
||||
end
|
||||
def capacity_pool_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPoolList
|
||||
end
|
||||
def snapshot
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::Snapshot
|
||||
end
|
||||
def resource_name_availability_request
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ResourceNameAvailabilityRequest
|
||||
end
|
||||
def snapshots_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::SnapshotsList
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePatch
|
||||
end
|
||||
def service_specification
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ServiceSpecification
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ServiceSpecification
|
||||
end
|
||||
def snapshot_patch
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::SnapshotPatch
|
||||
def mount_target
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::MountTarget
|
||||
end
|
||||
def resource_name_availability_request
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailabilityRequest
|
||||
end
|
||||
def mount_target_list
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::MountTargetList
|
||||
end
|
||||
def net_app_account_patch
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccountPatch
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountPatch
|
||||
end
|
||||
def snapshot
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::Snapshot
|
||||
end
|
||||
def dimension
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::Dimension
|
||||
end
|
||||
def snapshots_list
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotsList
|
||||
end
|
||||
def net_app_account
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount
|
||||
end
|
||||
def snapshot_patch
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotPatch
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::OperationListResult
|
||||
end
|
||||
def authorize_request
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::AuthorizeRequest
|
||||
end
|
||||
def capacity_pool_list
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolList
|
||||
end
|
||||
def in_availability_reason_type
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::InAvailabilityReasonType
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::InAvailabilityReasonType
|
||||
end
|
||||
def check_name_resource_types
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::CheckNameResourceTypes
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::CheckNameResourceTypes
|
||||
end
|
||||
def service_level
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ServiceLevel
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ServiceLevel
|
||||
end
|
||||
def endpoint_type
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::EndpointType
|
||||
end
|
||||
def replication_schedule
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationSchedule
|
||||
end
|
||||
def relationship_status
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::RelationshipStatus
|
||||
end
|
||||
def mirror_state
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::MirrorState
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"management":[
|
||||
"azure_mgmt_media_services"
|
||||
"azure_mgmt_netapp"
|
||||
],
|
||||
"rollup":[
|
||||
"azure_sdk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"rollup": {
|
||||
"azure_sdk": "0.49.0"
|
||||
"azure_sdk": "0.49.1"
|
||||
},
|
||||
"data": {
|
||||
"azure_cognitiveservices_anomalydetector": "0.17.0",
|
||||
|
@ -95,7 +95,7 @@
|
|||
"azure_mgmt_monitor": "0.17.5",
|
||||
"azure_mgmt_msi": "0.17.1",
|
||||
"azure_mgmt_mysql": "0.17.0",
|
||||
"azure_mgmt_netapp": "0.18.2",
|
||||
"azure_mgmt_netapp": "0.18.3",
|
||||
"azure_mgmt_network": "0.23.0",
|
||||
"azure_mgmt_notification_hubs": "0.17.2",
|
||||
"azure_mgmt_operational_insights": "0.17.2",
|
||||
|
|
|
@ -1348,6 +1348,11 @@
|
|||
}
|
||||
},
|
||||
"azure_mgmt_netapp": {
|
||||
"azure_mgmt_netapp_2019_10_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91e257ee832b4007e40c5b543ce71a5fd7399e9b/specification/netapp/resource-manager/readme.md",
|
||||
"namespace": "Azure::NetApp::Mgmt::V2019_10_01",
|
||||
"tag": "package-netapp-2019-10-01"
|
||||
},
|
||||
"azure_mgmt_netapp_2019_08_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/6aff279e49224004298ca3a77d43b7daa5a0acd6/specification/netapp/resource-manager/readme.md",
|
||||
"namespace": "Azure::NetApp::Mgmt::V2019_08_01",
|
||||
|
|
|
@ -562,7 +562,7 @@
|
|||
},
|
||||
"Microsoft.NetApp": {
|
||||
"management": {
|
||||
"2019-08-01": ["*"]
|
||||
"2019-10-01": ["*"]
|
||||
}
|
||||
},
|
||||
"Microsoft.Network": {
|
||||
|
@ -2034,7 +2034,7 @@
|
|||
"resourceTypes": {
|
||||
"Microsoft.NetApp": {
|
||||
"management": {
|
||||
"2019-08-01": ["*"]
|
||||
"2019-10-01": ["*"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -146,7 +146,7 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_netapp'
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
sdk_information = "#{sdk_information}/0.18.3"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -412,7 +412,7 @@ module Azure::NetApp::Mgmt::V2019_05_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_netapp'
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
sdk_information = "#{sdk_information}/0.18.3"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -412,7 +412,7 @@ module Azure::NetApp::Mgmt::V2019_06_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_netapp'
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
sdk_information = "#{sdk_information}/0.18.3"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -412,7 +412,7 @@ module Azure::NetApp::Mgmt::V2019_07_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_netapp'
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
sdk_information = "#{sdk_information}/0.18.3"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -150,7 +150,7 @@ module Azure::NetApp::Mgmt::V2019_08_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_netapp'
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
sdk_information = "#{sdk_information}/0.18.3"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,71 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
require 'uri'
|
||||
require 'cgi'
|
||||
require 'date'
|
||||
require 'json'
|
||||
require 'base64'
|
||||
require 'erb'
|
||||
require 'securerandom'
|
||||
require 'time'
|
||||
require 'timeliness'
|
||||
require 'faraday'
|
||||
require 'faraday-cookie_jar'
|
||||
require 'concurrent'
|
||||
require 'ms_rest'
|
||||
require '2019-10-01/generated/azure_mgmt_netapp/module_definition'
|
||||
require 'ms_rest_azure'
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
autoload :Operations, '2019-10-01/generated/azure_mgmt_netapp/operations.rb'
|
||||
autoload :NetAppResource, '2019-10-01/generated/azure_mgmt_netapp/net_app_resource.rb'
|
||||
autoload :Accounts, '2019-10-01/generated/azure_mgmt_netapp/accounts.rb'
|
||||
autoload :Pools, '2019-10-01/generated/azure_mgmt_netapp/pools.rb'
|
||||
autoload :Volumes, '2019-10-01/generated/azure_mgmt_netapp/volumes.rb'
|
||||
autoload :MountTargets, '2019-10-01/generated/azure_mgmt_netapp/mount_targets.rb'
|
||||
autoload :Snapshots, '2019-10-01/generated/azure_mgmt_netapp/snapshots.rb'
|
||||
autoload :AzureNetAppFilesManagementClient, '2019-10-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb'
|
||||
|
||||
module Models
|
||||
autoload :ExportPolicyRule, '2019-10-01/generated/azure_mgmt_netapp/models/export_policy_rule.rb'
|
||||
autoload :OperationDisplay, '2019-10-01/generated/azure_mgmt_netapp/models/operation_display.rb'
|
||||
autoload :VolumePropertiesExportPolicy, '2019-10-01/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb'
|
||||
autoload :MetricSpecification, '2019-10-01/generated/azure_mgmt_netapp/models/metric_specification.rb'
|
||||
autoload :ReplicationObject, '2019-10-01/generated/azure_mgmt_netapp/models/replication_object.rb'
|
||||
autoload :Operation, '2019-10-01/generated/azure_mgmt_netapp/models/operation.rb'
|
||||
autoload :VolumePropertiesDataProtection, '2019-10-01/generated/azure_mgmt_netapp/models/volume_properties_data_protection.rb'
|
||||
autoload :ResourceNameAvailability, '2019-10-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb'
|
||||
autoload :Volume, '2019-10-01/generated/azure_mgmt_netapp/models/volume.rb'
|
||||
autoload :ActiveDirectory, '2019-10-01/generated/azure_mgmt_netapp/models/active_directory.rb'
|
||||
autoload :VolumeList, '2019-10-01/generated/azure_mgmt_netapp/models/volume_list.rb'
|
||||
autoload :NetAppAccountList, '2019-10-01/generated/azure_mgmt_netapp/models/net_app_account_list.rb'
|
||||
autoload :ReplicationStatus, '2019-10-01/generated/azure_mgmt_netapp/models/replication_status.rb'
|
||||
autoload :CapacityPool, '2019-10-01/generated/azure_mgmt_netapp/models/capacity_pool.rb'
|
||||
autoload :VolumePatchPropertiesExportPolicy, '2019-10-01/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb'
|
||||
autoload :CapacityPoolPatch, '2019-10-01/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb'
|
||||
autoload :VolumePatch, '2019-10-01/generated/azure_mgmt_netapp/models/volume_patch.rb'
|
||||
autoload :ServiceSpecification, '2019-10-01/generated/azure_mgmt_netapp/models/service_specification.rb'
|
||||
autoload :MountTarget, '2019-10-01/generated/azure_mgmt_netapp/models/mount_target.rb'
|
||||
autoload :ResourceNameAvailabilityRequest, '2019-10-01/generated/azure_mgmt_netapp/models/resource_name_availability_request.rb'
|
||||
autoload :MountTargetList, '2019-10-01/generated/azure_mgmt_netapp/models/mount_target_list.rb'
|
||||
autoload :NetAppAccountPatch, '2019-10-01/generated/azure_mgmt_netapp/models/net_app_account_patch.rb'
|
||||
autoload :Snapshot, '2019-10-01/generated/azure_mgmt_netapp/models/snapshot.rb'
|
||||
autoload :Dimension, '2019-10-01/generated/azure_mgmt_netapp/models/dimension.rb'
|
||||
autoload :SnapshotsList, '2019-10-01/generated/azure_mgmt_netapp/models/snapshots_list.rb'
|
||||
autoload :NetAppAccount, '2019-10-01/generated/azure_mgmt_netapp/models/net_app_account.rb'
|
||||
autoload :SnapshotPatch, '2019-10-01/generated/azure_mgmt_netapp/models/snapshot_patch.rb'
|
||||
autoload :OperationListResult, '2019-10-01/generated/azure_mgmt_netapp/models/operation_list_result.rb'
|
||||
autoload :AuthorizeRequest, '2019-10-01/generated/azure_mgmt_netapp/models/authorize_request.rb'
|
||||
autoload :CapacityPoolList, '2019-10-01/generated/azure_mgmt_netapp/models/capacity_pool_list.rb'
|
||||
autoload :InAvailabilityReasonType, '2019-10-01/generated/azure_mgmt_netapp/models/in_availability_reason_type.rb'
|
||||
autoload :CheckNameResourceTypes, '2019-10-01/generated/azure_mgmt_netapp/models/check_name_resource_types.rb'
|
||||
autoload :ServiceLevel, '2019-10-01/generated/azure_mgmt_netapp/models/service_level.rb'
|
||||
autoload :EndpointType, '2019-10-01/generated/azure_mgmt_netapp/models/endpoint_type.rb'
|
||||
autoload :ReplicationSchedule, '2019-10-01/generated/azure_mgmt_netapp/models/replication_schedule.rb'
|
||||
autoload :RelationshipStatus, '2019-10-01/generated/azure_mgmt_netapp/models/relationship_status.rb'
|
||||
autoload :MirrorState, '2019-10-01/generated/azure_mgmt_netapp/models/mirror_state.rb'
|
||||
end
|
||||
end
|
|
@ -0,0 +1,651 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
#
|
||||
# Microsoft NetApp Azure Resource Provider specification
|
||||
#
|
||||
class Accounts
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Accounts class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [AzureNetAppFilesManagementClient] reference to the AzureNetAppFilesManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Describe all NetApp Accounts in a resource group
|
||||
#
|
||||
# List and describe all NetApp accounts in the resource group.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [NetAppAccountList] operation results.
|
||||
#
|
||||
def list(resource_group_name, custom_headers:nil)
|
||||
response = list_async(resource_group_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Describe all NetApp Accounts in a resource group
|
||||
#
|
||||
# List and describe all NetApp accounts in the resource group.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(resource_group_name, custom_headers:nil)
|
||||
list_async(resource_group_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Describe all NetApp Accounts in a resource group
|
||||
#
|
||||
# List and describe all NetApp accounts in the resource group.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(resource_group_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Describe a NetApp Account
|
||||
#
|
||||
# Get the NetApp account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [NetAppAccount] operation results.
|
||||
#
|
||||
def get(resource_group_name, account_name, custom_headers:nil)
|
||||
response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Describe a NetApp Account
|
||||
#
|
||||
# Get the NetApp account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
||||
get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Describe a NetApp Account
|
||||
#
|
||||
# Get the NetApp account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(resource_group_name, account_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Create or update a NetApp account
|
||||
#
|
||||
# Create or update the specified NetApp account within the resource group
|
||||
#
|
||||
# @param body [NetAppAccount] NetApp Account object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [NetAppAccount] operation results.
|
||||
#
|
||||
def create_or_update(body, resource_group_name, account_name, custom_headers:nil)
|
||||
response = create_or_update_async(body, resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# @param body [NetAppAccount] NetApp Account object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def create_or_update_async(body, resource_group_name, account_name, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_create_or_update_async(body, resource_group_name, account_name, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount.mapper()
|
||||
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a NetApp account
|
||||
#
|
||||
# Delete the specified NetApp account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
def delete(resource_group_name, account_name, custom_headers:nil)
|
||||
response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def delete_async(resource_group_name, account_name, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Update a NetApp account
|
||||
#
|
||||
# Patch the specified NetApp account
|
||||
#
|
||||
# @param body [NetAppAccountPatch] NetApp Account object supplied in the body
|
||||
# of the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [NetAppAccount] operation results.
|
||||
#
|
||||
def update(body, resource_group_name, account_name, custom_headers:nil)
|
||||
response = update_async(body, resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Update a NetApp account
|
||||
#
|
||||
# Patch the specified NetApp account
|
||||
#
|
||||
# @param body [NetAppAccountPatch] NetApp Account object supplied in the body
|
||||
# of the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def update_with_http_info(body, resource_group_name, account_name, custom_headers:nil)
|
||||
update_async(body, resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Update a NetApp account
|
||||
#
|
||||
# Patch the specified NetApp account
|
||||
#
|
||||
# @param body [NetAppAccountPatch] NetApp Account object supplied in the body
|
||||
# of the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def update_async(body, resource_group_name, account_name, custom_headers:nil)
|
||||
fail ArgumentError, 'body is nil' if body.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountPatch.mapper()
|
||||
request_content = @client.serialize(request_mapper, body)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:patch, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Create or update a NetApp account
|
||||
#
|
||||
# Create or update the specified NetApp account within the resource group
|
||||
#
|
||||
# @param body [NetAppAccount] NetApp Account object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [NetAppAccount] operation results.
|
||||
#
|
||||
def begin_create_or_update(body, resource_group_name, account_name, custom_headers:nil)
|
||||
response = begin_create_or_update_async(body, resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Create or update a NetApp account
|
||||
#
|
||||
# Create or update the specified NetApp account within the resource group
|
||||
#
|
||||
# @param body [NetAppAccount] NetApp Account object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_create_or_update_with_http_info(body, resource_group_name, account_name, custom_headers:nil)
|
||||
begin_create_or_update_async(body, resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Create or update a NetApp account
|
||||
#
|
||||
# Create or update the specified NetApp account within the resource group
|
||||
#
|
||||
# @param body [NetAppAccount] NetApp Account object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_create_or_update_async(body, resource_group_name, account_name, custom_headers:nil)
|
||||
fail ArgumentError, 'body is nil' if body.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount.mapper()
|
||||
request_content = @client.serialize(request_mapper, body)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:put, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 201 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
# Deserialize Response
|
||||
if status_code == 201
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a NetApp account
|
||||
#
|
||||
# Delete the specified NetApp account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def begin_delete(resource_group_name, account_name, custom_headers:nil)
|
||||
response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a NetApp account
|
||||
#
|
||||
# Delete the specified NetApp account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
||||
begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a NetApp account
|
||||
#
|
||||
# Delete the specified NetApp account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_delete_async(resource_group_name, account_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:delete, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 202 || status_code == 204
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,157 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
#
|
||||
# A service client - single point of access to the REST API.
|
||||
#
|
||||
class AzureNetAppFilesManagementClient < MsRestAzure::AzureServiceClient
|
||||
include MsRestAzure
|
||||
include MsRestAzure::Serialization
|
||||
|
||||
# @return [String] the base URI of the service.
|
||||
attr_accessor :base_url
|
||||
|
||||
# @return Credentials needed for the client to connect to Azure.
|
||||
attr_reader :credentials
|
||||
|
||||
# @return [String] Subscription credentials which uniquely identify
|
||||
# Microsoft Azure subscription. The subscription ID forms part of the URI
|
||||
# for every service call.
|
||||
attr_accessor :subscription_id
|
||||
|
||||
# @return [String] Version of the API to be used with the client request.
|
||||
attr_reader :api_version
|
||||
|
||||
# @return [String] The preferred language for the response.
|
||||
attr_accessor :accept_language
|
||||
|
||||
# @return [Integer] The retry timeout in seconds for Long Running
|
||||
# Operations. Default value is 30.
|
||||
attr_accessor :long_running_operation_retry_timeout
|
||||
|
||||
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
||||
# generated. When set to true a unique x-ms-client-request-id value is
|
||||
# generated and included in each request. Default is true.
|
||||
attr_accessor :generate_client_request_id
|
||||
|
||||
# @return [Operations] operations
|
||||
attr_reader :operations
|
||||
|
||||
# @return [NetAppResource] net_app_resource
|
||||
attr_reader :net_app_resource
|
||||
|
||||
# @return [Accounts] accounts
|
||||
attr_reader :accounts
|
||||
|
||||
# @return [Pools] pools
|
||||
attr_reader :pools
|
||||
|
||||
# @return [Volumes] volumes
|
||||
attr_reader :volumes
|
||||
|
||||
# @return [MountTargets] mount_targets
|
||||
attr_reader :mount_targets
|
||||
|
||||
# @return [Snapshots] snapshots
|
||||
attr_reader :snapshots
|
||||
|
||||
#
|
||||
# Creates initializes a new instance of the AzureNetAppFilesManagementClient class.
|
||||
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
||||
# @param base_url [String] the base URI of the service.
|
||||
# @param options [Array] filters to be applied to the HTTP requests.
|
||||
#
|
||||
def initialize(credentials = nil, base_url = nil, options = nil)
|
||||
super(credentials, options)
|
||||
@base_url = base_url || 'https://management.azure.com'
|
||||
|
||||
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
||||
@credentials = credentials
|
||||
|
||||
@operations = Operations.new(self)
|
||||
@net_app_resource = NetAppResource.new(self)
|
||||
@accounts = Accounts.new(self)
|
||||
@pools = Pools.new(self)
|
||||
@volumes = Volumes.new(self)
|
||||
@mount_targets = MountTargets.new(self)
|
||||
@snapshots = Snapshots.new(self)
|
||||
@api_version = '2019-10-01'
|
||||
@accept_language = 'en-US'
|
||||
@long_running_operation_retry_timeout = 30
|
||||
@generate_client_request_id = true
|
||||
add_telemetry
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request and returns the body of the response.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [Hash{String=>String}] containing the body of the response.
|
||||
# Example:
|
||||
#
|
||||
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
||||
# path = "/path"
|
||||
# options = {
|
||||
# body: request_content,
|
||||
# query_params: {'api-version' => '2016-02-01'}
|
||||
# }
|
||||
# result = @client.make_request(:put, path, options)
|
||||
#
|
||||
def make_request(method, path, options = {})
|
||||
result = make_request_with_http_info(method, path, options)
|
||||
result.body unless result.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request and returns the operation response.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
||||
#
|
||||
def make_request_with_http_info(method, path, options = {})
|
||||
result = make_request_async(method, path, options).value!
|
||||
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
||||
result
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request asynchronously.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def make_request_async(method, path, options = {})
|
||||
fail ArgumentError, 'method is nil' if method.nil?
|
||||
fail ArgumentError, 'path is nil' if path.nil?
|
||||
|
||||
request_url = options[:base_url] || @base_url
|
||||
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
||||
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
||||
end
|
||||
|
||||
request_headers = @request_headers
|
||||
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
||||
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
||||
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
||||
|
||||
super(request_url, method, path, options)
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
#
|
||||
# Adds telemetry information.
|
||||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_netapp'
|
||||
sdk_information = "#{sdk_information}/0.18.3"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,127 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Active Directory
|
||||
#
|
||||
class ActiveDirectory
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Id of the Active Directory
|
||||
attr_accessor :active_directory_id
|
||||
|
||||
# @return [String] Username of Active Directory domain administrator
|
||||
attr_accessor :username
|
||||
|
||||
# @return [String] Plain text password of Active Directory domain
|
||||
# administrator
|
||||
attr_accessor :password
|
||||
|
||||
# @return [String] Name of the Active Directory domain
|
||||
attr_accessor :domain
|
||||
|
||||
# @return [String] Comma separated list of DNS server IP addresses (IPv4
|
||||
# only) for the Active Directory domain
|
||||
attr_accessor :dns
|
||||
|
||||
# @return [String] Status of the Active Directory
|
||||
attr_accessor :status
|
||||
|
||||
# @return [String] NetBIOS name of the SMB server. This name will be
|
||||
# registered as a computer account in the AD and used to mount volumes
|
||||
attr_accessor :smb_server_name
|
||||
|
||||
# @return [String] The Organizational Unit (OU) within the Windows Active
|
||||
# Directory
|
||||
attr_accessor :organizational_unit
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ActiveDirectory class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'activeDirectory',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ActiveDirectory',
|
||||
model_properties: {
|
||||
active_directory_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'activeDirectoryId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
username: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'username',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
password: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'password',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
domain: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'domain',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
dns: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'dns',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'status',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
smb_server_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'smbServerName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
organizational_unit: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'organizationalUnit',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,46 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Authorize request
|
||||
#
|
||||
class AuthorizeRequest
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource id
|
||||
attr_accessor :remote_volume_resource_id
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AuthorizeRequest class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'authorizeRequest',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AuthorizeRequest',
|
||||
model_properties: {
|
||||
remote_volume_resource_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'remoteVolumeResourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,161 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Capacity pool resource
|
||||
#
|
||||
class CapacityPool
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource location
|
||||
attr_accessor :location
|
||||
|
||||
# @return [String] Resource Id
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type
|
||||
attr_accessor :type
|
||||
|
||||
# @return [Hash{String => String}] Resource tags
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [String] poolId. UUID v4 used to identify the Pool
|
||||
attr_accessor :pool_id
|
||||
|
||||
# @return [Integer] size. Provisioned size of the pool (in bytes).
|
||||
# Allowed values are in 4TiB chunks (value must be multiply of
|
||||
# 4398046511104).
|
||||
attr_accessor :size
|
||||
|
||||
# @return [ServiceLevel] serviceLevel. The service level of the file
|
||||
# system. Possible values include: 'Standard', 'Premium', 'Ultra'.
|
||||
# Default value: 'Premium' .
|
||||
attr_accessor :service_level
|
||||
|
||||
# @return [String] Azure lifecycle management
|
||||
attr_accessor :provisioning_state
|
||||
|
||||
|
||||
#
|
||||
# Mapper for CapacityPool class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'capacityPool',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CapacityPool',
|
||||
model_properties: {
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
pool_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.poolId',
|
||||
constraints: {
|
||||
MaxLength: 36,
|
||||
MinLength: 36,
|
||||
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}$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
size: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties.size',
|
||||
constraints: {
|
||||
InclusiveMaximum: 549755813888000,
|
||||
InclusiveMinimum: 4398046511104
|
||||
},
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
service_level: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties.serviceLevel',
|
||||
default_value: 'Premium',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
provisioning_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.provisioningState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# List of capacity pool resources
|
||||
#
|
||||
class CapacityPoolList
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<CapacityPool>] List of Capacity pools
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for CapacityPoolList class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'capacityPoolList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CapacityPoolList',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'CapacityPoolElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CapacityPool'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,133 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Capacity pool patch resource
|
||||
#
|
||||
class CapacityPoolPatch
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource location
|
||||
attr_accessor :location
|
||||
|
||||
# @return [String] Resource Id
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type
|
||||
attr_accessor :type
|
||||
|
||||
# @return [Hash{String => String}] Resource tags
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [Integer] size. Provisioned size of the pool (in bytes).
|
||||
# Allowed values are in 4TiB chunks (value must be multiply of
|
||||
# 4398046511104). Default value: 4398046511104 .
|
||||
attr_accessor :size
|
||||
|
||||
# @return [ServiceLevel] serviceLevel. The service level of the file
|
||||
# system. Possible values include: 'Standard', 'Premium', 'Ultra'.
|
||||
# Default value: 'Premium' .
|
||||
attr_accessor :service_level
|
||||
|
||||
|
||||
#
|
||||
# Mapper for CapacityPoolPatch class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'capacityPoolPatch',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CapacityPoolPatch',
|
||||
model_properties: {
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
size: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.size',
|
||||
default_value: 4398046511104,
|
||||
constraints: {
|
||||
InclusiveMaximum: 549755813888000,
|
||||
InclusiveMinimum: 4398046511104
|
||||
},
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
service_level: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.serviceLevel',
|
||||
default_value: 'Premium',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,18 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for CheckNameResourceTypes
|
||||
#
|
||||
module CheckNameResourceTypes
|
||||
MicrosoftNetAppnetAppAccounts = "Microsoft.NetApp/netAppAccounts"
|
||||
MicrosoftNetAppnetAppAccountscapacityPools = "Microsoft.NetApp/netAppAccounts/capacityPools"
|
||||
MicrosoftNetAppnetAppAccountscapacityPoolsvolumes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes"
|
||||
MicrosoftNetAppnetAppAccountscapacityPoolsvolumessnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,57 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Dimension of blobs, possibly be blob type or access tier.
|
||||
#
|
||||
class Dimension
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Display name of dimension.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Display name of dimension.
|
||||
attr_accessor :display_name
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Dimension class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Dimension',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Dimension',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'displayName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for EndpointType
|
||||
#
|
||||
module EndpointType
|
||||
Src = "src"
|
||||
Dst = "dst"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,113 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Volume Export Policy Rule
|
||||
#
|
||||
class ExportPolicyRule
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Integer] Order index
|
||||
attr_accessor :rule_index
|
||||
|
||||
# @return [Boolean] Read only access
|
||||
attr_accessor :unix_read_only
|
||||
|
||||
# @return [Boolean] Read and write access
|
||||
attr_accessor :unix_read_write
|
||||
|
||||
# @return [Boolean] Allows CIFS protocol
|
||||
attr_accessor :cifs
|
||||
|
||||
# @return [Boolean] Allows NFSv3 protocol
|
||||
attr_accessor :nfsv3
|
||||
|
||||
# @return [Boolean] Allows NFSv4.1 protocol
|
||||
attr_accessor :nfsv41
|
||||
|
||||
# @return [String] Client ingress specification as comma separated string
|
||||
# with IPv4 CIDRs, IPv4 host addresses and host names
|
||||
attr_accessor :allowed_clients
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ExportPolicyRule class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'exportPolicyRule',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ExportPolicyRule',
|
||||
model_properties: {
|
||||
rule_index: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ruleIndex',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
unix_read_only: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'unixReadOnly',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
unix_read_write: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'unixReadWrite',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
cifs: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'cifs',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
nfsv3: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'nfsv3',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
nfsv41: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'nfsv41',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
allowed_clients: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'allowedClients',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for InAvailabilityReasonType
|
||||
#
|
||||
module InAvailabilityReasonType
|
||||
Invalid = "Invalid"
|
||||
AlreadyExists = "AlreadyExists"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,145 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Metric specification of operation.
|
||||
#
|
||||
class MetricSpecification
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Name of metric specification.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Display name of metric specification.
|
||||
attr_accessor :display_name
|
||||
|
||||
# @return [String] Display description of metric specification.
|
||||
attr_accessor :display_description
|
||||
|
||||
# @return [String] Unit could be Bytes or Count.
|
||||
attr_accessor :unit
|
||||
|
||||
# @return [Array<Dimension>] Dimensions of blobs, including blob type and
|
||||
# access tier.
|
||||
attr_accessor :dimensions
|
||||
|
||||
# @return [String] Aggregation type could be Average.
|
||||
attr_accessor :aggregation_type
|
||||
|
||||
# @return [Boolean] The property to decide fill gap with zero or not.
|
||||
attr_accessor :fill_gap_with_zero
|
||||
|
||||
# @return [String] The category this metric specification belong to,
|
||||
# could be Capacity.
|
||||
attr_accessor :category
|
||||
|
||||
# @return [String] Account Resource Id.
|
||||
attr_accessor :resource_id_dimension_name_override
|
||||
|
||||
|
||||
#
|
||||
# Mapper for MetricSpecification class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'MetricSpecification',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'MetricSpecification',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'displayName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display_description: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'displayDescription',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
unit: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'unit',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
dimensions: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'dimensions',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'DimensionElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Dimension'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
aggregation_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'aggregationType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
fill_gap_with_zero: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'fillGapWithZero',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource_id_dimension_name_override: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'resourceIdDimensionNameOverride',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,17 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for MirrorState
|
||||
#
|
||||
module MirrorState
|
||||
Uninitialized = "Uninitialized"
|
||||
Mirrored = "Mirrored"
|
||||
Broken = "Broken"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,230 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Mount Target
|
||||
#
|
||||
class MountTarget
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource location
|
||||
attr_accessor :location
|
||||
|
||||
# @return [String] Resource Id
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type
|
||||
attr_accessor :type
|
||||
|
||||
# @return [Hash{String => String}] Resource tags
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [String] mountTargetId. UUID v4 used to identify the
|
||||
# MountTarget
|
||||
attr_accessor :mount_target_id
|
||||
|
||||
# @return [String] fileSystemId. UUID v4 used to identify the MountTarget
|
||||
attr_accessor :file_system_id
|
||||
|
||||
# @return [String] ipAddress. The mount target's IPv4 address
|
||||
attr_accessor :ip_address
|
||||
|
||||
# @return [String] subnet. The subnet
|
||||
attr_accessor :subnet
|
||||
|
||||
# @return [String] startIp. The start of IPv4 address range to use when
|
||||
# creating a new mount target
|
||||
attr_accessor :start_ip
|
||||
|
||||
# @return [String] endIp. The end of IPv4 address range to use when
|
||||
# creating a new mount target
|
||||
attr_accessor :end_ip
|
||||
|
||||
# @return [String] gateway. The gateway of the IPv4 address range to use
|
||||
# when creating a new mount target
|
||||
attr_accessor :gateway
|
||||
|
||||
# @return [String] netmask. The netmask of the IPv4 address range to use
|
||||
# when creating a new mount target
|
||||
attr_accessor :netmask
|
||||
|
||||
# @return [String] smbServerFQDN. The SMB server's Fully Qualified Domain
|
||||
# Name, FQDN
|
||||
attr_accessor :smb_server_fqdn
|
||||
|
||||
# @return [String] Azure lifecycle management
|
||||
attr_accessor :provisioning_state
|
||||
|
||||
|
||||
#
|
||||
# Mapper for MountTarget class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'mountTarget',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'MountTarget',
|
||||
model_properties: {
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mount_target_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.mountTargetId',
|
||||
constraints: {
|
||||
MaxLength: 36,
|
||||
MinLength: 36,
|
||||
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}$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
file_system_id: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties.fileSystemId',
|
||||
constraints: {
|
||||
MaxLength: 36,
|
||||
MinLength: 36,
|
||||
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}$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ip_address: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.ipAddress',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
subnet: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.subnet',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
start_ip: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.startIp',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
end_ip: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.endIp',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
gateway: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.gateway',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
netmask: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.netmask',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
smb_server_fqdn: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.smbServerFqdn',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
provisioning_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.provisioningState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# List of Mount Targets
|
||||
#
|
||||
class MountTargetList
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<MountTarget>] A list of Mount targets
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for MountTargetList class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'mountTargetList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'MountTargetList',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'MountTargetElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'MountTarget'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,133 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# NetApp account resource
|
||||
#
|
||||
class NetAppAccount
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource location
|
||||
attr_accessor :location
|
||||
|
||||
# @return [String] Resource Id
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type
|
||||
attr_accessor :type
|
||||
|
||||
# @return [Hash{String => String}] Resource tags
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [String] Azure lifecycle management
|
||||
attr_accessor :provisioning_state
|
||||
|
||||
# @return [Array<ActiveDirectory>] Active Directories
|
||||
attr_accessor :active_directories
|
||||
|
||||
|
||||
#
|
||||
# Mapper for NetAppAccount class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'netAppAccount',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NetAppAccount',
|
||||
model_properties: {
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
provisioning_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.provisioningState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
active_directories: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.activeDirectories',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ActiveDirectoryElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ActiveDirectory'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# List of NetApp account resources
|
||||
#
|
||||
class NetAppAccountList
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<NetAppAccount>] Multiple NetApp accounts
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for NetAppAccountList class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'netAppAccountList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NetAppAccountList',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'NetAppAccountElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NetAppAccount'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,133 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# NetApp account patch resource
|
||||
#
|
||||
class NetAppAccountPatch
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource location
|
||||
attr_accessor :location
|
||||
|
||||
# @return [String] Resource Id
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type
|
||||
attr_accessor :type
|
||||
|
||||
# @return [Hash{String => String}] Resource tags
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [String] Azure lifecycle management
|
||||
attr_accessor :provisioning_state
|
||||
|
||||
# @return [Array<ActiveDirectory>] Active Directories
|
||||
attr_accessor :active_directories
|
||||
|
||||
|
||||
#
|
||||
# Mapper for NetAppAccountPatch class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'netAppAccountPatch',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NetAppAccountPatch',
|
||||
model_properties: {
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
provisioning_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.provisioningState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
active_directories: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.activeDirectories',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ActiveDirectoryElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ActiveDirectory'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,83 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Microsoft.NetApp REST API operation definition.
|
||||
#
|
||||
class Operation
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Operation name: {provider}/{resource}/{operation}
|
||||
attr_accessor :name
|
||||
|
||||
# @return [OperationDisplay] Display metadata associated with the
|
||||
# operation.
|
||||
attr_accessor :display
|
||||
|
||||
# @return [String] The origin of operations.
|
||||
attr_accessor :origin
|
||||
|
||||
# @return [ServiceSpecification] One property of operation, include
|
||||
# metric specifications.
|
||||
attr_accessor :service_specification
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Operation class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Operation',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Operation',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'display',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'OperationDisplay'
|
||||
}
|
||||
},
|
||||
origin: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'origin',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
service_specification: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.serviceSpecification',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServiceSpecification'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,79 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Display metadata associated with the operation.
|
||||
#
|
||||
class OperationDisplay
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Service provider: Microsoft NetApp.
|
||||
attr_accessor :provider
|
||||
|
||||
# @return [String] Resource on which the operation is performed etc.
|
||||
attr_accessor :resource
|
||||
|
||||
# @return [String] Type of operation: get, read, delete, etc.
|
||||
attr_accessor :operation
|
||||
|
||||
# @return [String] Operation description.
|
||||
attr_accessor :description
|
||||
|
||||
|
||||
#
|
||||
# Mapper for OperationDisplay class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Operation_display',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'OperationDisplay',
|
||||
model_properties: {
|
||||
provider: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'provider',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'resource',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operation: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'operation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,57 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Result of the request to list Cloud Volume operations. It contains a list
|
||||
# of operations and a URL link to get the next set of results.
|
||||
#
|
||||
class OperationListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Operation>] List of Storage operations supported by the
|
||||
# Storage resource provider.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for OperationListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'OperationListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'OperationListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'OperationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Operation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for RelationshipStatus
|
||||
#
|
||||
module RelationshipStatus
|
||||
Idle = "Idle"
|
||||
Transferring = "Transferring"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,94 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Replication properties
|
||||
#
|
||||
class ReplicationObject
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Id
|
||||
attr_accessor :replication_id
|
||||
|
||||
# @return [EndpointType] Indicates whether the local volume is the source
|
||||
# or destination for the Volume Replication. Possible values include:
|
||||
# 'src', 'dst'
|
||||
attr_accessor :endpoint_type
|
||||
|
||||
# @return [ReplicationSchedule] Schedule. Possible values include:
|
||||
# '_10minutely', 'hourly', 'daily', 'weekly', 'monthly'
|
||||
attr_accessor :replication_schedule
|
||||
|
||||
# @return [String] The resource ID of the remote volume.
|
||||
attr_accessor :remote_volume_resource_id
|
||||
|
||||
# @return [String] The remote region for the other end of the Volume
|
||||
# Replication.
|
||||
attr_accessor :remote_volume_region
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ReplicationObject class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'replicationObject',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ReplicationObject',
|
||||
model_properties: {
|
||||
replication_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'replicationId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
endpoint_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'endpointType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
replication_schedule: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'replicationSchedule',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
remote_volume_resource_id: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'remoteVolumeResourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
remote_volume_region: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'remoteVolumeRegion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,19 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for ReplicationSchedule
|
||||
#
|
||||
module ReplicationSchedule
|
||||
_10minutely = "_10minutely"
|
||||
Hourly = "hourly"
|
||||
Daily = "daily"
|
||||
Weekly = "weekly"
|
||||
Monthly = "monthly"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,93 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Replication status
|
||||
#
|
||||
class ReplicationStatus
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Boolean] Replication health check
|
||||
attr_accessor :healthy
|
||||
|
||||
# @return [RelationshipStatus] Status of the mirror relationship.
|
||||
# Possible values include: 'Idle', 'Transferring'
|
||||
attr_accessor :relationship_status
|
||||
|
||||
# @return [MirrorState] The status of the replication. Possible values
|
||||
# include: 'Uninitialized', 'Mirrored', 'Broken'
|
||||
attr_accessor :mirror_state
|
||||
|
||||
# @return [String] The progress of the replication
|
||||
attr_accessor :total_progress
|
||||
|
||||
# @return [String] Displays error message if the replication is in an
|
||||
# error state
|
||||
attr_accessor :error_message
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ReplicationStatus class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'replicationStatus',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ReplicationStatus',
|
||||
model_properties: {
|
||||
healthy: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'healthy',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
relationship_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'relationshipStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
mirror_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'mirrorState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
total_progress: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'totalProgress',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
error_message: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'errorMessage',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,78 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Information regarding availability of a resource name.
|
||||
#
|
||||
class ResourceNameAvailability
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Boolean] <code>true</code> indicates name is valid and
|
||||
# available. <code>false</code> indicates the name is invalid,
|
||||
# unavailable, or both.
|
||||
attr_accessor :is_available
|
||||
|
||||
# @return [InAvailabilityReasonType] <code>Invalid</code> indicates the
|
||||
# name provided does not match Azure App Service naming requirements.
|
||||
# <code>AlreadyExists</code> indicates that the name is already in use
|
||||
# and is therefore unavailable. Possible values include: 'Invalid',
|
||||
# 'AlreadyExists'
|
||||
attr_accessor :reason
|
||||
|
||||
# @return [String] If reason == invalid, provide the user with the reason
|
||||
# why the given name is invalid, and provide the resource naming
|
||||
# requirements so that the user can select a valid name. If reason ==
|
||||
# AlreadyExists, explain that resource name is already in use, and direct
|
||||
# them to select a different name.
|
||||
attr_accessor :message
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ResourceNameAvailability class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ResourceNameAvailability',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ResourceNameAvailability',
|
||||
model_properties: {
|
||||
is_available: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isAvailable',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
reason: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'reason',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
message: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'message',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,72 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Resource name availability request content.
|
||||
#
|
||||
class ResourceNameAvailabilityRequest
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource name to verify.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [CheckNameResourceTypes] Resource type used for verification.
|
||||
# Possible values include: 'Microsoft.NetApp/netAppAccounts',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
||||
attr_accessor :type
|
||||
|
||||
# @return [String] Resource group name.
|
||||
attr_accessor :resource_group
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ResourceNameAvailabilityRequest class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ResourceNameAvailabilityRequest',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ResourceNameAvailabilityRequest',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource_group: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'resourceGroup',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,17 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for ServiceLevel
|
||||
#
|
||||
module ServiceLevel
|
||||
Standard = "Standard"
|
||||
Premium = "Premium"
|
||||
Ultra = "Ultra"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,56 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# One property of operation, include metric specifications.
|
||||
#
|
||||
class ServiceSpecification
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<MetricSpecification>] Metric specifications of
|
||||
# operation.
|
||||
attr_accessor :metric_specifications
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServiceSpecification class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ServiceSpecification',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServiceSpecification',
|
||||
model_properties: {
|
||||
metric_specifications: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'metricSpecifications',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'MetricSpecificationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'MetricSpecification'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,158 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Snapshot of a Volume
|
||||
#
|
||||
class Snapshot
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource location
|
||||
attr_accessor :location
|
||||
|
||||
# @return [String] Resource Id
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type
|
||||
attr_accessor :type
|
||||
|
||||
# @return [Hash{String => String}] Resource tags
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [String] snapshotId. UUID v4 used to identify the Snapshot
|
||||
attr_accessor :snapshot_id
|
||||
|
||||
# @return [String] fileSystemId. UUID v4 used to identify the FileSystem
|
||||
attr_accessor :file_system_id
|
||||
|
||||
# @return [DateTime] name. The creation date of the snapshot
|
||||
attr_accessor :created
|
||||
|
||||
# @return [String] Azure lifecycle management
|
||||
attr_accessor :provisioning_state
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Snapshot class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'snapshot',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Snapshot',
|
||||
model_properties: {
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
snapshot_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.snapshotId',
|
||||
constraints: {
|
||||
MaxLength: 36,
|
||||
MinLength: 36,
|
||||
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}$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
file_system_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.fileSystemId',
|
||||
constraints: {
|
||||
MaxLength: 36,
|
||||
MinLength: 36,
|
||||
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}$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
created: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.created',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
provisioning_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.provisioningState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,54 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Snapshot patch
|
||||
#
|
||||
class SnapshotPatch
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Hash{String => String}] Resource tags
|
||||
attr_accessor :tags
|
||||
|
||||
|
||||
#
|
||||
# Mapper for SnapshotPatch class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'snapshotPatch',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'SnapshotPatch',
|
||||
model_properties: {
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# List of Snapshots
|
||||
#
|
||||
class SnapshotsList
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Snapshot>] A list of Snapshots
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for SnapshotsList class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'snapshotsList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'SnapshotsList',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'SnapshotElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Snapshot'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,300 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Volume resource
|
||||
#
|
||||
class Volume
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource location
|
||||
attr_accessor :location
|
||||
|
||||
# @return [String] Resource Id
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type
|
||||
attr_accessor :type
|
||||
|
||||
# @return [Hash{String => String}] Resource tags
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [String] FileSystem ID. Unique FileSystem Identifier.
|
||||
attr_accessor :file_system_id
|
||||
|
||||
# @return [String] Creation Token or File Path. A unique file path for
|
||||
# the volume. Used when creating mount targets
|
||||
attr_accessor :creation_token
|
||||
|
||||
# @return [ServiceLevel] serviceLevel. The service level of the file
|
||||
# system. Possible values include: 'Standard', 'Premium', 'Ultra'.
|
||||
# Default value: 'Premium' .
|
||||
attr_accessor :service_level
|
||||
|
||||
# @return [Integer] usageThreshold. Maximum storage quota allowed for a
|
||||
# file system in bytes. This is a soft quota used for alerting only.
|
||||
# Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.
|
||||
# Default value: 107374182400 .
|
||||
attr_accessor :usage_threshold
|
||||
|
||||
# @return [VolumePropertiesExportPolicy] exportPolicy. Set of export
|
||||
# policy rules
|
||||
attr_accessor :export_policy
|
||||
|
||||
# @return [Array<String>] protocolTypes. Set of protocol types
|
||||
attr_accessor :protocol_types
|
||||
|
||||
# @return [String] Azure lifecycle management
|
||||
attr_accessor :provisioning_state
|
||||
|
||||
# @return [String] Snapshot ID. UUID v4 or resource identifier used to
|
||||
# identify the Snapshot.
|
||||
attr_accessor :snapshot_id
|
||||
|
||||
# @return [String] Baremetal Tenant ID. Unique Baremetal Tenant
|
||||
# Identifier.
|
||||
attr_accessor :baremetal_tenant_id
|
||||
|
||||
# @return [String] The Azure Resource URI for a delegated subnet. Must
|
||||
# have the delegation Microsoft.NetApp/volumes
|
||||
attr_accessor :subnet_id
|
||||
|
||||
# @return mountTargets. List of mount targets
|
||||
attr_accessor :mount_targets
|
||||
|
||||
# @return [String] What type of volume is this
|
||||
attr_accessor :volume_type
|
||||
|
||||
# @return [VolumePropertiesDataProtection] DataProtection. DataProtection
|
||||
# type volumes include an object containing details of the replication
|
||||
attr_accessor :data_protection
|
||||
|
||||
# @return [Boolean] Restoring
|
||||
attr_accessor :is_restoring
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Volume class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'volume',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Volume',
|
||||
model_properties: {
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
file_system_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.fileSystemId',
|
||||
constraints: {
|
||||
MaxLength: 36,
|
||||
MinLength: 36,
|
||||
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}$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
creation_token: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties.creationToken',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
service_level: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.serviceLevel',
|
||||
default_value: 'Premium',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
usage_threshold: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties.usageThreshold',
|
||||
default_value: 107374182400,
|
||||
constraints: {
|
||||
InclusiveMaximum: 109951162777600,
|
||||
InclusiveMinimum: 107374182400
|
||||
},
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
export_policy: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.exportPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VolumePropertiesExportPolicy'
|
||||
}
|
||||
},
|
||||
protocol_types: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.protocolTypes',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
provisioning_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.provisioningState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
snapshot_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.snapshotId',
|
||||
constraints: {
|
||||
MaxLength: 36,
|
||||
MinLength: 36,
|
||||
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}|(\\?([^\/]*[\/])*)([^\/]+)$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
baremetal_tenant_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.baremetalTenantId',
|
||||
constraints: {
|
||||
MaxLength: 36,
|
||||
MinLength: 36,
|
||||
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}$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
subnet_id: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties.subnetId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
mount_targets: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.mountTargets',
|
||||
type: {
|
||||
name: 'Object'
|
||||
}
|
||||
},
|
||||
volume_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.volumeType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
data_protection: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.dataProtection',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VolumePropertiesDataProtection'
|
||||
}
|
||||
},
|
||||
is_restoring: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.isRestoring',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# List of volume resources
|
||||
#
|
||||
class VolumeList
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Volume>] List of volumes
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for VolumeList class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'volumeList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VolumeList',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'VolumeElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Volume'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,147 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# Volume patch resource
|
||||
#
|
||||
class VolumePatch
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource location
|
||||
attr_accessor :location
|
||||
|
||||
# @return [String] Resource Id
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type
|
||||
attr_accessor :type
|
||||
|
||||
# @return [Hash{String => String}] Resource tags
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [ServiceLevel] serviceLevel. The service level of the file
|
||||
# system. Possible values include: 'Standard', 'Premium', 'Ultra'.
|
||||
# Default value: 'Premium' .
|
||||
attr_accessor :service_level
|
||||
|
||||
# @return [Integer] usageThreshold. Maximum storage quota allowed for a
|
||||
# file system in bytes. This is a soft quota used for alerting only.
|
||||
# Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.
|
||||
# Default value: 107374182400 .
|
||||
attr_accessor :usage_threshold
|
||||
|
||||
# @return [VolumePatchPropertiesExportPolicy] exportPolicy. Set of export
|
||||
# policy rules
|
||||
attr_accessor :export_policy
|
||||
|
||||
|
||||
#
|
||||
# Mapper for VolumePatch class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'volumePatch',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VolumePatch',
|
||||
model_properties: {
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
service_level: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.serviceLevel',
|
||||
default_value: 'Premium',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
usage_threshold: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.usageThreshold',
|
||||
default_value: 107374182400,
|
||||
constraints: {
|
||||
InclusiveMaximum: 109951162777600,
|
||||
InclusiveMinimum: 107374182400
|
||||
},
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
export_policy: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.exportPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VolumePatchPropertiesExportPolicy'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,58 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# exportPolicy
|
||||
|
||||
# Set of export policy rules
|
||||
#
|
||||
class VolumePatchPropertiesExportPolicy
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<ExportPolicyRule>] Export policy rule. Export policy
|
||||
# rule
|
||||
attr_accessor :rules
|
||||
|
||||
|
||||
#
|
||||
# Mapper for VolumePatchPropertiesExportPolicy class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'volumePatchProperties_exportPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VolumePatchPropertiesExportPolicy',
|
||||
model_properties: {
|
||||
rules: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'rules',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ExportPolicyRuleElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ExportPolicyRule'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,50 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# DataProtection
|
||||
|
||||
# DataProtection type volumes include an object containing details of the
|
||||
# replication
|
||||
#
|
||||
class VolumePropertiesDataProtection
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [ReplicationObject] Replication. Replication properties
|
||||
attr_accessor :replication
|
||||
|
||||
|
||||
#
|
||||
# Mapper for VolumePropertiesDataProtection class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'volumeProperties_dataProtection',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VolumePropertiesDataProtection',
|
||||
model_properties: {
|
||||
replication: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'replication',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ReplicationObject'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,58 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
module Models
|
||||
#
|
||||
# exportPolicy
|
||||
|
||||
# Set of export policy rules
|
||||
#
|
||||
class VolumePropertiesExportPolicy
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<ExportPolicyRule>] Export policy rule. Export policy
|
||||
# rule
|
||||
attr_accessor :rules
|
||||
|
||||
|
||||
#
|
||||
# Mapper for VolumePropertiesExportPolicy class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'volumeProperties_exportPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VolumePropertiesExportPolicy',
|
||||
model_properties: {
|
||||
rules: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'rules',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ExportPolicyRuleElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ExportPolicyRule'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,9 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure end
|
||||
module Azure::NetApp end
|
||||
module Azure::NetApp::Mgmt end
|
||||
module Azure::NetApp::Mgmt::V2019_10_01 end
|
|
@ -0,0 +1,136 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
#
|
||||
# Microsoft NetApp Azure Resource Provider specification
|
||||
#
|
||||
class MountTargets
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the MountTargets class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [AzureNetAppFilesManagementClient] reference to the AzureNetAppFilesManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Describe all mount targets
|
||||
#
|
||||
# List all mount targets associated with the volume
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MountTargetList] operation results.
|
||||
#
|
||||
def list(resource_group_name, account_name, pool_name, volume_name, custom_headers:nil)
|
||||
response = list_async(resource_group_name, account_name, pool_name, volume_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Describe all mount targets
|
||||
#
|
||||
# List all mount targets associated with the volume
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(resource_group_name, account_name, pool_name, volume_name, custom_headers:nil)
|
||||
list_async(resource_group_name, account_name, pool_name, volume_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Describe all mount targets
|
||||
#
|
||||
# List all mount targets associated with the volume
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(resource_group_name, account_name, pool_name, volume_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, 'volume_name is nil' if volume_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'volumeName' => volume_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::MountTargetList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,291 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
#
|
||||
# Microsoft NetApp Azure Resource Provider specification
|
||||
#
|
||||
class NetAppResource
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the NetAppResource class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [AzureNetAppFilesManagementClient] reference to the AzureNetAppFilesManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Check resource name availability
|
||||
#
|
||||
# Check if a resource name is available.
|
||||
#
|
||||
# @param location [String] The location
|
||||
# @param name [String] Resource name to verify.
|
||||
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
||||
# Possible values include: 'Microsoft.NetApp/netAppAccounts',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
||||
# @param resource_group [String] Resource group name.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [ResourceNameAvailability] operation results.
|
||||
#
|
||||
def check_name_availability(location, name, type, resource_group, custom_headers:nil)
|
||||
response = check_name_availability_async(location, name, type, resource_group, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Check resource name availability
|
||||
#
|
||||
# Check if a resource name is available.
|
||||
#
|
||||
# @param location [String] The location
|
||||
# @param name [String] Resource name to verify.
|
||||
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
||||
# Possible values include: 'Microsoft.NetApp/netAppAccounts',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
||||
# @param resource_group [String] Resource group name.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def check_name_availability_with_http_info(location, name, type, resource_group, custom_headers:nil)
|
||||
check_name_availability_async(location, name, type, resource_group, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Check resource name availability
|
||||
#
|
||||
# Check if a resource name is available.
|
||||
#
|
||||
# @param location [String] The location
|
||||
# @param name [String] Resource name to verify.
|
||||
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
||||
# Possible values include: 'Microsoft.NetApp/netAppAccounts',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
||||
# @param resource_group [String] Resource group name.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def check_name_availability_async(location, name, type, resource_group, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'location is nil' if location.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'name is nil' if name.nil?
|
||||
fail ArgumentError, 'type is nil' if type.nil?
|
||||
fail ArgumentError, 'resource_group is nil' if resource_group.nil?
|
||||
|
||||
body = ResourceNameAvailabilityRequest.new
|
||||
unless name.nil? && type.nil? && resource_group.nil?
|
||||
body.name = name
|
||||
body.type = type
|
||||
body.resource_group = resource_group
|
||||
end
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailabilityRequest.mapper()
|
||||
request_content = @client.serialize(request_mapper, body)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:post, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailability.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Check file path availability
|
||||
#
|
||||
# Check if a file path is available.
|
||||
#
|
||||
# @param location [String] The location
|
||||
# @param name [String] Resource name to verify.
|
||||
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
||||
# Possible values include: 'Microsoft.NetApp/netAppAccounts',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
||||
# @param resource_group [String] Resource group name.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [ResourceNameAvailability] operation results.
|
||||
#
|
||||
def check_file_path_availability(location, name, type, resource_group, custom_headers:nil)
|
||||
response = check_file_path_availability_async(location, name, type, resource_group, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Check file path availability
|
||||
#
|
||||
# Check if a file path is available.
|
||||
#
|
||||
# @param location [String] The location
|
||||
# @param name [String] Resource name to verify.
|
||||
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
||||
# Possible values include: 'Microsoft.NetApp/netAppAccounts',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
||||
# @param resource_group [String] Resource group name.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def check_file_path_availability_with_http_info(location, name, type, resource_group, custom_headers:nil)
|
||||
check_file_path_availability_async(location, name, type, resource_group, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Check file path availability
|
||||
#
|
||||
# Check if a file path is available.
|
||||
#
|
||||
# @param location [String] The location
|
||||
# @param name [String] Resource name to verify.
|
||||
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
||||
# Possible values include: 'Microsoft.NetApp/netAppAccounts',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
||||
# 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
||||
# @param resource_group [String] Resource group name.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def check_file_path_availability_async(location, name, type, resource_group, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'location is nil' if location.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'name is nil' if name.nil?
|
||||
fail ArgumentError, 'type is nil' if type.nil?
|
||||
fail ArgumentError, 'resource_group is nil' if resource_group.nil?
|
||||
|
||||
body = ResourceNameAvailabilityRequest.new
|
||||
unless name.nil? && type.nil? && resource_group.nil?
|
||||
body.name = name
|
||||
body.type = type
|
||||
body.resource_group = resource_group
|
||||
end
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailabilityRequest.mapper()
|
||||
request_content = @client.serialize(request_mapper, body)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:post, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailability.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,115 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
#
|
||||
# Microsoft NetApp Azure Resource Provider specification
|
||||
#
|
||||
class Operations
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Operations class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [AzureNetAppFilesManagementClient] reference to the AzureNetAppFilesManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Describes the Resource Provider
|
||||
#
|
||||
# Lists all of the available Microsoft.NetApp Rest API operations
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [OperationListResult] operation results.
|
||||
#
|
||||
def list(custom_headers:nil)
|
||||
response = list_async(custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Describes the Resource Provider
|
||||
#
|
||||
# Lists all of the available Microsoft.NetApp Rest API operations
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(custom_headers:nil)
|
||||
list_async(custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Describes the Resource Provider
|
||||
#
|
||||
# Lists all of the available Microsoft.NetApp Rest API operations
|
||||
#
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'providers/Microsoft.NetApp/operations'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::OperationListResult.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,675 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
#
|
||||
# Microsoft NetApp Azure Resource Provider specification
|
||||
#
|
||||
class Pools
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Pools class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [AzureNetAppFilesManagementClient] reference to the AzureNetAppFilesManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Describe all Capacity Pools
|
||||
#
|
||||
# List all capacity pools in the NetApp Account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [CapacityPoolList] operation results.
|
||||
#
|
||||
def list(resource_group_name, account_name, custom_headers:nil)
|
||||
response = list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Describe all Capacity Pools
|
||||
#
|
||||
# List all capacity pools in the NetApp Account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
||||
list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Describe all Capacity Pools
|
||||
#
|
||||
# List all capacity pools in the NetApp Account
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(resource_group_name, account_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Describe a Capacity Pool
|
||||
#
|
||||
# Get details of the specified capacity pool
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [CapacityPool] operation results.
|
||||
#
|
||||
def get(resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
response = get_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Describe a Capacity Pool
|
||||
#
|
||||
# Get details of the specified capacity pool
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
get_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Describe a Capacity Pool
|
||||
#
|
||||
# Get details of the specified capacity pool
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Create or Update the specified capacity pool within the resource group
|
||||
#
|
||||
# Create or Update a capacity pool
|
||||
#
|
||||
# @param body [CapacityPool] Capacity pool object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [CapacityPool] operation results.
|
||||
#
|
||||
def create_or_update(body, resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
response = create_or_update_async(body, resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# @param body [CapacityPool] Capacity pool object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def create_or_update_async(body, resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_create_or_update_async(body, resource_group_name, account_name, pool_name, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool.mapper()
|
||||
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Update a capacity pool
|
||||
#
|
||||
# Patch the specified capacity pool
|
||||
#
|
||||
# @param body [CapacityPoolPatch] Capacity pool object supplied in the body of
|
||||
# the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [CapacityPool] operation results.
|
||||
#
|
||||
def update(body, resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
response = update_async(body, resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Update a capacity pool
|
||||
#
|
||||
# Patch the specified capacity pool
|
||||
#
|
||||
# @param body [CapacityPoolPatch] Capacity pool object supplied in the body of
|
||||
# the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def update_with_http_info(body, resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
update_async(body, resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Update a capacity pool
|
||||
#
|
||||
# Patch the specified capacity pool
|
||||
#
|
||||
# @param body [CapacityPoolPatch] Capacity pool object supplied in the body of
|
||||
# the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def update_async(body, resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
fail ArgumentError, 'body is nil' if body.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolPatch.mapper()
|
||||
request_content = @client.serialize(request_mapper, body)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:patch, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a capacity pool
|
||||
#
|
||||
# Delete the specified capacity pool
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
def delete(resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
response = delete_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def delete_async(resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_delete_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Create or Update the specified capacity pool within the resource group
|
||||
#
|
||||
# Create or Update a capacity pool
|
||||
#
|
||||
# @param body [CapacityPool] Capacity pool object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [CapacityPool] operation results.
|
||||
#
|
||||
def begin_create_or_update(body, resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
response = begin_create_or_update_async(body, resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Create or Update the specified capacity pool within the resource group
|
||||
#
|
||||
# Create or Update a capacity pool
|
||||
#
|
||||
# @param body [CapacityPool] Capacity pool object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_create_or_update_with_http_info(body, resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
begin_create_or_update_async(body, resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Create or Update the specified capacity pool within the resource group
|
||||
#
|
||||
# Create or Update a capacity pool
|
||||
#
|
||||
# @param body [CapacityPool] Capacity pool object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_create_or_update_async(body, resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
fail ArgumentError, 'body is nil' if body.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool.mapper()
|
||||
request_content = @client.serialize(request_mapper, body)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:put, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 201 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
# Deserialize Response
|
||||
if status_code == 201
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a capacity pool
|
||||
#
|
||||
# Delete the specified capacity pool
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def begin_delete(resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
response = begin_delete_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a capacity pool
|
||||
#
|
||||
# Delete the specified capacity pool
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_delete_with_http_info(resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
begin_delete_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a capacity pool
|
||||
#
|
||||
# Delete the specified capacity pool
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_delete_async(resource_group_name, account_name, pool_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:delete, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 202 || status_code == 204
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,708 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::NetApp::Mgmt::V2019_10_01
|
||||
#
|
||||
# Microsoft NetApp Azure Resource Provider specification
|
||||
#
|
||||
class Snapshots
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Snapshots class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [AzureNetAppFilesManagementClient] reference to the AzureNetAppFilesManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Describe all snapshots
|
||||
#
|
||||
# List all snapshots associated with the volume
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [SnapshotsList] operation results.
|
||||
#
|
||||
def list(resource_group_name, account_name, pool_name, volume_name, custom_headers:nil)
|
||||
response = list_async(resource_group_name, account_name, pool_name, volume_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Describe all snapshots
|
||||
#
|
||||
# List all snapshots associated with the volume
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(resource_group_name, account_name, pool_name, volume_name, custom_headers:nil)
|
||||
list_async(resource_group_name, account_name, pool_name, volume_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Describe all snapshots
|
||||
#
|
||||
# List all snapshots associated with the volume
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(resource_group_name, account_name, pool_name, volume_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, 'volume_name is nil' if volume_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'volumeName' => volume_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotsList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Describe a snapshot
|
||||
#
|
||||
# Get details of the specified snapshot
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Snapshot] operation results.
|
||||
#
|
||||
def get(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
response = get_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Describe a snapshot
|
||||
#
|
||||
# Get details of the specified snapshot
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
get_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Describe a snapshot
|
||||
#
|
||||
# Get details of the specified snapshot
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, 'volume_name is nil' if volume_name.nil?
|
||||
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'volumeName' => volume_name,'snapshotName' => snapshot_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::Snapshot.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Create a snapshot
|
||||
#
|
||||
# Create the specified snapshot within the given volume
|
||||
#
|
||||
# @param body [Snapshot] Snapshot object supplied in the body of the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Snapshot] operation results.
|
||||
#
|
||||
def create(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
response = create_async(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# @param body [Snapshot] Snapshot object supplied in the body of the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def create_async(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_create_async(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::Snapshot.mapper()
|
||||
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Update a snapshot
|
||||
#
|
||||
# Patch a snapshot
|
||||
#
|
||||
# @param body [SnapshotPatch] Snapshot object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Snapshot] operation results.
|
||||
#
|
||||
def update(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
response = update_async(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Update a snapshot
|
||||
#
|
||||
# Patch a snapshot
|
||||
#
|
||||
# @param body [SnapshotPatch] Snapshot object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def update_with_http_info(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
update_async(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Update a snapshot
|
||||
#
|
||||
# Patch a snapshot
|
||||
#
|
||||
# @param body [SnapshotPatch] Snapshot object supplied in the body of the
|
||||
# operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def update_async(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
fail ArgumentError, 'body is nil' if body.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, 'volume_name is nil' if volume_name.nil?
|
||||
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotPatch.mapper()
|
||||
request_content = @client.serialize(request_mapper, body)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'volumeName' => volume_name,'snapshotName' => snapshot_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:patch, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::Snapshot.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a snapshot
|
||||
#
|
||||
# Delete snapshot
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
def delete(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
response = delete_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def delete_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_delete_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Create a snapshot
|
||||
#
|
||||
# Create the specified snapshot within the given volume
|
||||
#
|
||||
# @param body [Snapshot] Snapshot object supplied in the body of the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Snapshot] operation results.
|
||||
#
|
||||
def begin_create(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
response = begin_create_async(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Create a snapshot
|
||||
#
|
||||
# Create the specified snapshot within the given volume
|
||||
#
|
||||
# @param body [Snapshot] Snapshot object supplied in the body of the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_create_with_http_info(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
begin_create_async(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Create a snapshot
|
||||
#
|
||||
# Create the specified snapshot within the given volume
|
||||
#
|
||||
# @param body [Snapshot] Snapshot object supplied in the body of the operation.
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_create_async(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
fail ArgumentError, 'body is nil' if body.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, 'volume_name is nil' if volume_name.nil?
|
||||
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::Snapshot.mapper()
|
||||
request_content = @client.serialize(request_mapper, body)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'volumeName' => volume_name,'snapshotName' => snapshot_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:put, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 201 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 201
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::NetApp::Mgmt::V2019_10_01::Models::Snapshot.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a snapshot
|
||||
#
|
||||
# Delete snapshot
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def begin_delete(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
response = begin_delete_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a snapshot
|
||||
#
|
||||
# Delete snapshot
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_delete_with_http_info(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
begin_delete_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Delete a snapshot
|
||||
#
|
||||
# Delete snapshot
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param account_name [String] The name of the NetApp account
|
||||
# @param pool_name [String] The name of the capacity pool
|
||||
# @param volume_name [String] The name of the volume
|
||||
# @param snapshot_name [String] The name of the mount target
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_delete_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
||||
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
||||
fail ArgumentError, 'pool_name is nil' if pool_name.nil?
|
||||
fail ArgumentError, 'volume_name is nil' if volume_name.nil?
|
||||
fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'volumeName' => volume_name,'snapshotName' => snapshot_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:delete, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 202 || status_code == 204
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -4,7 +4,8 @@
|
|||
|
||||
require '2017-08-15-preview/generated/azure_mgmt_netapp'
|
||||
require '2019-05-01/generated/azure_mgmt_netapp'
|
||||
require '2019-07-01/generated/azure_mgmt_netapp'
|
||||
require '2019-06-01/generated/azure_mgmt_netapp'
|
||||
require '2019-07-01/generated/azure_mgmt_netapp'
|
||||
require '2019-08-01/generated/azure_mgmt_netapp'
|
||||
require '2019-10-01/generated/azure_mgmt_netapp'
|
||||
require 'profiles/latest/netapp_latest_profile_client'
|
||||
|
|
|
@ -6,46 +6,52 @@ require 'azure_mgmt_netapp'
|
|||
|
||||
module Azure::NetApp::Profiles::Latest
|
||||
module Mgmt
|
||||
Operations = Azure::NetApp::Mgmt::V2019_08_01::Operations
|
||||
NetAppResource = Azure::NetApp::Mgmt::V2019_08_01::NetAppResource
|
||||
Accounts = Azure::NetApp::Mgmt::V2019_08_01::Accounts
|
||||
Pools = Azure::NetApp::Mgmt::V2019_08_01::Pools
|
||||
Volumes = Azure::NetApp::Mgmt::V2019_08_01::Volumes
|
||||
MountTargets = Azure::NetApp::Mgmt::V2019_08_01::MountTargets
|
||||
Snapshots = Azure::NetApp::Mgmt::V2019_08_01::Snapshots
|
||||
Operations = Azure::NetApp::Mgmt::V2019_10_01::Operations
|
||||
NetAppResource = Azure::NetApp::Mgmt::V2019_10_01::NetAppResource
|
||||
Accounts = Azure::NetApp::Mgmt::V2019_10_01::Accounts
|
||||
Pools = Azure::NetApp::Mgmt::V2019_10_01::Pools
|
||||
Volumes = Azure::NetApp::Mgmt::V2019_10_01::Volumes
|
||||
MountTargets = Azure::NetApp::Mgmt::V2019_10_01::MountTargets
|
||||
Snapshots = Azure::NetApp::Mgmt::V2019_10_01::Snapshots
|
||||
|
||||
module Models
|
||||
CapacityPoolPatch = Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPoolPatch
|
||||
OperationDisplay = Azure::NetApp::Mgmt::V2019_08_01::Models::OperationDisplay
|
||||
ExportPolicyRule = Azure::NetApp::Mgmt::V2019_08_01::Models::ExportPolicyRule
|
||||
MetricSpecification = Azure::NetApp::Mgmt::V2019_08_01::Models::MetricSpecification
|
||||
VolumePropertiesExportPolicy = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePropertiesExportPolicy
|
||||
Operation = Azure::NetApp::Mgmt::V2019_08_01::Models::Operation
|
||||
ReplicationObject = Azure::NetApp::Mgmt::V2019_08_01::Models::ReplicationObject
|
||||
ResourceNameAvailability = Azure::NetApp::Mgmt::V2019_08_01::Models::ResourceNameAvailability
|
||||
VolumePropertiesDataProtection = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePropertiesDataProtection
|
||||
ActiveDirectory = Azure::NetApp::Mgmt::V2019_08_01::Models::ActiveDirectory
|
||||
Volume = Azure::NetApp::Mgmt::V2019_08_01::Models::Volume
|
||||
NetAppAccountList = Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccountList
|
||||
VolumeList = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumeList
|
||||
CapacityPool = Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPool
|
||||
VolumePatchPropertiesExportPolicy = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePatchPropertiesExportPolicy
|
||||
Dimension = Azure::NetApp::Mgmt::V2019_08_01::Models::Dimension
|
||||
VolumePatch = Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePatch
|
||||
OperationListResult = Azure::NetApp::Mgmt::V2019_08_01::Models::OperationListResult
|
||||
MountTarget = Azure::NetApp::Mgmt::V2019_08_01::Models::MountTarget
|
||||
NetAppAccount = Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccount
|
||||
MountTargetList = Azure::NetApp::Mgmt::V2019_08_01::Models::MountTargetList
|
||||
CapacityPoolList = Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPoolList
|
||||
Snapshot = Azure::NetApp::Mgmt::V2019_08_01::Models::Snapshot
|
||||
ResourceNameAvailabilityRequest = Azure::NetApp::Mgmt::V2019_08_01::Models::ResourceNameAvailabilityRequest
|
||||
SnapshotsList = Azure::NetApp::Mgmt::V2019_08_01::Models::SnapshotsList
|
||||
ServiceSpecification = Azure::NetApp::Mgmt::V2019_08_01::Models::ServiceSpecification
|
||||
SnapshotPatch = Azure::NetApp::Mgmt::V2019_08_01::Models::SnapshotPatch
|
||||
NetAppAccountPatch = Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccountPatch
|
||||
InAvailabilityReasonType = Azure::NetApp::Mgmt::V2019_08_01::Models::InAvailabilityReasonType
|
||||
CheckNameResourceTypes = Azure::NetApp::Mgmt::V2019_08_01::Models::CheckNameResourceTypes
|
||||
ServiceLevel = Azure::NetApp::Mgmt::V2019_08_01::Models::ServiceLevel
|
||||
ExportPolicyRule = Azure::NetApp::Mgmt::V2019_10_01::Models::ExportPolicyRule
|
||||
OperationDisplay = Azure::NetApp::Mgmt::V2019_10_01::Models::OperationDisplay
|
||||
VolumePropertiesExportPolicy = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePropertiesExportPolicy
|
||||
MetricSpecification = Azure::NetApp::Mgmt::V2019_10_01::Models::MetricSpecification
|
||||
ReplicationObject = Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationObject
|
||||
Operation = Azure::NetApp::Mgmt::V2019_10_01::Models::Operation
|
||||
VolumePropertiesDataProtection = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePropertiesDataProtection
|
||||
ResourceNameAvailability = Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailability
|
||||
Volume = Azure::NetApp::Mgmt::V2019_10_01::Models::Volume
|
||||
ActiveDirectory = Azure::NetApp::Mgmt::V2019_10_01::Models::ActiveDirectory
|
||||
VolumeList = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumeList
|
||||
NetAppAccountList = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountList
|
||||
ReplicationStatus = Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationStatus
|
||||
CapacityPool = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool
|
||||
VolumePatchPropertiesExportPolicy = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePatchPropertiesExportPolicy
|
||||
CapacityPoolPatch = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolPatch
|
||||
VolumePatch = Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePatch
|
||||
ServiceSpecification = Azure::NetApp::Mgmt::V2019_10_01::Models::ServiceSpecification
|
||||
MountTarget = Azure::NetApp::Mgmt::V2019_10_01::Models::MountTarget
|
||||
ResourceNameAvailabilityRequest = Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailabilityRequest
|
||||
MountTargetList = Azure::NetApp::Mgmt::V2019_10_01::Models::MountTargetList
|
||||
NetAppAccountPatch = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountPatch
|
||||
Snapshot = Azure::NetApp::Mgmt::V2019_10_01::Models::Snapshot
|
||||
Dimension = Azure::NetApp::Mgmt::V2019_10_01::Models::Dimension
|
||||
SnapshotsList = Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotsList
|
||||
NetAppAccount = Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount
|
||||
SnapshotPatch = Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotPatch
|
||||
OperationListResult = Azure::NetApp::Mgmt::V2019_10_01::Models::OperationListResult
|
||||
AuthorizeRequest = Azure::NetApp::Mgmt::V2019_10_01::Models::AuthorizeRequest
|
||||
CapacityPoolList = Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolList
|
||||
InAvailabilityReasonType = Azure::NetApp::Mgmt::V2019_10_01::Models::InAvailabilityReasonType
|
||||
CheckNameResourceTypes = Azure::NetApp::Mgmt::V2019_10_01::Models::CheckNameResourceTypes
|
||||
ServiceLevel = Azure::NetApp::Mgmt::V2019_10_01::Models::ServiceLevel
|
||||
EndpointType = Azure::NetApp::Mgmt::V2019_10_01::Models::EndpointType
|
||||
ReplicationSchedule = Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationSchedule
|
||||
RelationshipStatus = Azure::NetApp::Mgmt::V2019_10_01::Models::RelationshipStatus
|
||||
MirrorState = Azure::NetApp::Mgmt::V2019_10_01::Models::MirrorState
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -67,7 +73,7 @@ module Azure::NetApp::Profiles::Latest
|
|||
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
||||
@options = options[:options].nil? ? nil:options[:options]
|
||||
|
||||
@client_0 = Azure::NetApp::Mgmt::V2019_08_01::AzureNetAppFilesManagementClient.new(configurable.credentials, base_url, options)
|
||||
@client_0 = Azure::NetApp::Mgmt::V2019_10_01::AzureNetAppFilesManagementClient.new(configurable.credentials, base_url, options)
|
||||
if(@client_0.respond_to?(:subscription_id))
|
||||
@client_0.subscription_id = configurable.subscription_id
|
||||
end
|
||||
|
@ -99,98 +105,116 @@ module Azure::NetApp::Profiles::Latest
|
|||
end
|
||||
|
||||
class ModelClasses
|
||||
def capacity_pool_patch
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPoolPatch
|
||||
def export_policy_rule
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ExportPolicyRule
|
||||
end
|
||||
def operation_display
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::OperationDisplay
|
||||
end
|
||||
def export_policy_rule
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ExportPolicyRule
|
||||
end
|
||||
def metric_specification
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::MetricSpecification
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::OperationDisplay
|
||||
end
|
||||
def volume_properties_export_policy
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePropertiesExportPolicy
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePropertiesExportPolicy
|
||||
end
|
||||
def operation
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::Operation
|
||||
def metric_specification
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::MetricSpecification
|
||||
end
|
||||
def replication_object
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ReplicationObject
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationObject
|
||||
end
|
||||
def resource_name_availability
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ResourceNameAvailability
|
||||
def operation
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::Operation
|
||||
end
|
||||
def volume_properties_data_protection
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePropertiesDataProtection
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePropertiesDataProtection
|
||||
end
|
||||
def active_directory
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ActiveDirectory
|
||||
def resource_name_availability
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailability
|
||||
end
|
||||
def volume
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::Volume
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::Volume
|
||||
end
|
||||
def net_app_account_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccountList
|
||||
def active_directory
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ActiveDirectory
|
||||
end
|
||||
def volume_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumeList
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumeList
|
||||
end
|
||||
def net_app_account_list
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountList
|
||||
end
|
||||
def replication_status
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationStatus
|
||||
end
|
||||
def capacity_pool
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPool
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPool
|
||||
end
|
||||
def volume_patch_properties_export_policy
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePatchPropertiesExportPolicy
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePatchPropertiesExportPolicy
|
||||
end
|
||||
def dimension
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::Dimension
|
||||
def capacity_pool_patch
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolPatch
|
||||
end
|
||||
def volume_patch
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::VolumePatch
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::OperationListResult
|
||||
end
|
||||
def mount_target
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::MountTarget
|
||||
end
|
||||
def net_app_account
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccount
|
||||
end
|
||||
def mount_target_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::MountTargetList
|
||||
end
|
||||
def capacity_pool_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::CapacityPoolList
|
||||
end
|
||||
def snapshot
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::Snapshot
|
||||
end
|
||||
def resource_name_availability_request
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ResourceNameAvailabilityRequest
|
||||
end
|
||||
def snapshots_list
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::SnapshotsList
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::VolumePatch
|
||||
end
|
||||
def service_specification
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ServiceSpecification
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ServiceSpecification
|
||||
end
|
||||
def snapshot_patch
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::SnapshotPatch
|
||||
def mount_target
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::MountTarget
|
||||
end
|
||||
def resource_name_availability_request
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ResourceNameAvailabilityRequest
|
||||
end
|
||||
def mount_target_list
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::MountTargetList
|
||||
end
|
||||
def net_app_account_patch
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::NetAppAccountPatch
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccountPatch
|
||||
end
|
||||
def snapshot
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::Snapshot
|
||||
end
|
||||
def dimension
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::Dimension
|
||||
end
|
||||
def snapshots_list
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotsList
|
||||
end
|
||||
def net_app_account
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::NetAppAccount
|
||||
end
|
||||
def snapshot_patch
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::SnapshotPatch
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::OperationListResult
|
||||
end
|
||||
def authorize_request
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::AuthorizeRequest
|
||||
end
|
||||
def capacity_pool_list
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::CapacityPoolList
|
||||
end
|
||||
def in_availability_reason_type
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::InAvailabilityReasonType
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::InAvailabilityReasonType
|
||||
end
|
||||
def check_name_resource_types
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::CheckNameResourceTypes
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::CheckNameResourceTypes
|
||||
end
|
||||
def service_level
|
||||
Azure::NetApp::Mgmt::V2019_08_01::Models::ServiceLevel
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ServiceLevel
|
||||
end
|
||||
def endpoint_type
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::EndpointType
|
||||
end
|
||||
def replication_schedule
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::ReplicationSchedule
|
||||
end
|
||||
def relationship_status
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::RelationshipStatus
|
||||
end
|
||||
def mirror_state
|
||||
Azure::NetApp::Mgmt::V2019_10_01::Models::MirrorState
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure::NetApp::Mgmt
|
||||
VERSION = '0.18.2'
|
||||
VERSION = '0.18.3'
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче