azure_mgmt_storage 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-07-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-11-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2020-08-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2021-01-01/generated/azure_mgmt_storage.rb +223 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/blob_containers.rb +2046 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/blob_inventory_policies.rb +474 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/blob_services.rb +383 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/deleted_accounts.rb +321 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/encryption_scopes.rb +691 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/file_services.rb +377 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/file_shares.rb +957 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/management_policies.rb +361 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/access_tier.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +136 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/account_status.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/action.rb +15 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/active_directory_properties.rb +103 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb +77 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/azure_files_identity_based_authentication.rb +59 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_container.rb +290 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy.rb +101 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_definition.rb +49 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_filter.rb +100 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_rule.rb +73 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_schema.rb +93 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_restore_parameters.rb +66 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_restore_progress_status.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_restore_range.rb +59 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_restore_status.rb +88 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_items.rb +57 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +191 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/bypass.rb +18 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/change_feed.rb +65 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +77 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/cors_rule.rb +128 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/cors_rules.rb +57 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/created_by_type.rb +18 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/custom_domain.rb +60 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/date_after_creation.rb +50 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/date_after_modification.rb +70 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/default_action.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb +63 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/deleted_account.rb +123 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/deleted_account_list_result.rb +103 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/deleted_share.rb +59 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/dimension.rb +57 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/directory_service_options.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/enabled_protocols.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/encryption.rb +100 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_identity.rb +47 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope.rb +142 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope_key_vault_properties.rb +76 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope_list_result.rb +103 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope_source.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope_state.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_service.rb +76 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_services.rb +87 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/endpoints.rb +134 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/error_response.rb +48 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/error_response_body.rb +59 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/extended_location.rb +58 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/extended_location_types.rb +15 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/file_service_items.rb +57 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/file_service_properties.rb +115 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/file_share.rb +264 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/file_share_item.rb +263 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/file_share_items.rb +103 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/geo_replication_stats.rb +85 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/geo_replication_status.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/get_share_expand.rb +15 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/http_protocol.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/identity.rb +95 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/identity_type.rb +18 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/immutability_policy.rb +114 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +111 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/immutability_policy_state.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/immutability_policy_update_type.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/iprule.rb +61 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/key_permission.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/key_source.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/key_type.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +93 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/kind.rb +19 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/large_file_shares_state.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/last_access_time_tracking_policy.rb +94 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/lease_duration.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/lease_state.rb +19 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/lease_status.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/legal_hold.rb +71 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb +72 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +47 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_blob_inventory_policy.rb +56 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_container_item.rb +289 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_container_items.rb +103 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_containers_include.rb +15 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_key_expand.rb +15 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_queue.rb +83 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_queue_resource.rb +101 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_queue_services.rb +58 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +47 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_shares_expand.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_table_resource.rb +101 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/list_table_services.rb +58 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy.rb +89 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_action.rb +75 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_base_blob.rb +86 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_definition.rb +60 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_filter.rb +98 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_rule.rb +87 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_schema.rb +58 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_snap_shot.rb +73 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_version.rb +73 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/metric_specification.rb +145 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/minimum_tls_version.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/multichannel.rb +46 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/name.rb +15 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/network_rule_set.rb +126 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policies.rb +56 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy.rb +131 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy_filter.rb +70 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb +82 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/operation.rb +83 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/operation_display.rb +79 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/operation_list_result.rb +57 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/permissions.rb +22 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/private_endpoint.rb +47 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/private_endpoint_connection.rb +101 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/private_endpoint_connection_list_result.rb +57 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/private_endpoint_connection_provisioning_state.rb +18 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/private_endpoint_service_connection_status.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/private_link_resource.rb +115 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/private_link_resource_list_result.rb +55 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/private_link_service_connection_state.rb +72 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/protocol_settings.rb +47 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/provisioning_state.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/proxy_resource.rb +65 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/public_access.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/put_shares_expand.rb +15 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/queue_service_properties.rb +77 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/reason.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/reason_code.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/resource.rb +86 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/resource_access_rule.rb +57 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/restore_policy_properties.rb +87 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/restriction.rb +85 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/root_squash_type.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/routing_choice.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/routing_preference.rb +74 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +247 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/service_specification.rb +56 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/services.rb +18 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/share_access_tier.rb +18 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/sku.rb +60 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/sku_information.rb +153 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/sku_name.rb +22 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/sku_tier.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/skucapability.rb +63 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/smb_setting.rb +100 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/state.rb +19 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account.rb +500 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +63 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +294 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_expand.rb +16 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_internet_endpoints.rb +84 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_key.rb +73 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +57 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +103 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_microsoft_endpoints.rb +108 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +47 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +246 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_queue.rb +97 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +57 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/system_data.rb +105 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/table.rb +74 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/table_service_properties.rb +77 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/tag_filter.rb +80 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/tag_property.rb +97 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/tracked_resource.rb +95 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/update_history_property.rb +114 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/usage.rb +89 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/usage_list_result.rb +56 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/usage_name.rb +59 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/usage_unit.rb +20 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/user_assigned_identity.rb +59 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb +74 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/module_definition.rb +9 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/object_replication_policies_operations.rb +495 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/operations.rb +110 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/private_endpoint_connections.rb +501 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/private_link_resources.rb +138 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/queue.rb +805 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/queue_services.rb +386 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/skus.rb +116 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/storage_accounts.rb +2059 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/storage_management_client.rb +204 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/table_operations.rb +743 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/table_services.rb +386 -0
- data/lib/2021-01-01/generated/azure_mgmt_storage/usages.rb +120 -0
- data/lib/azure_mgmt_storage.rb +1 -0
- data/lib/profiles/latest/modules/storage_profile_module.rb +480 -394
- data/lib/version.rb +1 -1
- metadata +201 -2
@@ -0,0 +1,110 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Storage::Mgmt::V2021_01_01
|
7
|
+
#
|
8
|
+
# The Azure Storage Management API.
|
9
|
+
#
|
10
|
+
class Operations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Operations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [StorageManagementClient] reference to the StorageManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Lists all of the available Storage Rest API operations.
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [OperationListResult] operation results.
|
31
|
+
#
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
response = list_async(custom_headers:custom_headers).value!
|
34
|
+
response.body unless response.nil?
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Lists all of the available Storage Rest API operations.
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Lists all of the available Storage Rest API operations.
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def list_async(custom_headers:nil)
|
58
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
60
|
+
|
61
|
+
|
62
|
+
request_headers = {}
|
63
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
64
|
+
|
65
|
+
# Set Headers
|
66
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
67
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
68
|
+
path_template = 'providers/Microsoft.Storage/operations'
|
69
|
+
|
70
|
+
request_url = @base_url || @client.base_url
|
71
|
+
|
72
|
+
options = {
|
73
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
74
|
+
query_params: {'api-version' => @client.api_version},
|
75
|
+
headers: request_headers.merge(custom_headers || {}),
|
76
|
+
base_url: request_url
|
77
|
+
}
|
78
|
+
promise = @client.make_request_async(:get, path_template, options)
|
79
|
+
|
80
|
+
promise = promise.then do |result|
|
81
|
+
http_response = result.response
|
82
|
+
status_code = http_response.status
|
83
|
+
response_content = http_response.body
|
84
|
+
unless status_code == 200
|
85
|
+
error_model = JSON.load(response_content)
|
86
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
87
|
+
end
|
88
|
+
|
89
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
90
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
91
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
92
|
+
# Deserialize Response
|
93
|
+
if status_code == 200
|
94
|
+
begin
|
95
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
96
|
+
result_mapper = Azure::Storage::Mgmt::V2021_01_01::Models::OperationListResult.mapper()
|
97
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
98
|
+
rescue Exception => e
|
99
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
result
|
104
|
+
end
|
105
|
+
|
106
|
+
promise.execute
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
end
|
@@ -0,0 +1,501 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Storage::Mgmt::V2021_01_01
|
7
|
+
#
|
8
|
+
# The Azure Storage Management API.
|
9
|
+
#
|
10
|
+
class PrivateEndpointConnections
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the PrivateEndpointConnections class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [StorageManagementClient] reference to the StorageManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# List all the private endpoint connections associated with the storage
|
26
|
+
# account.
|
27
|
+
#
|
28
|
+
# @param resource_group_name [String] The name of the resource group within the
|
29
|
+
# user's subscription. The name is case insensitive.
|
30
|
+
# @param account_name [String] The name of the storage account within the
|
31
|
+
# specified resource group. Storage account names must be between 3 and 24
|
32
|
+
# characters in length and use numbers and lower-case letters only.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [PrivateEndpointConnectionListResult] operation results.
|
37
|
+
#
|
38
|
+
def list(resource_group_name, account_name, custom_headers:nil)
|
39
|
+
response = list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
40
|
+
response.body unless response.nil?
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# List all the private endpoint connections associated with the storage
|
45
|
+
# account.
|
46
|
+
#
|
47
|
+
# @param resource_group_name [String] The name of the resource group within the
|
48
|
+
# user's subscription. The name is case insensitive.
|
49
|
+
# @param account_name [String] The name of the storage account within the
|
50
|
+
# specified resource group. Storage account names must be between 3 and 24
|
51
|
+
# characters in length and use numbers and lower-case letters only.
|
52
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
|
+
# will be added to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
|
+
#
|
57
|
+
def list_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
58
|
+
list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# List all the private endpoint connections associated with the storage
|
63
|
+
# account.
|
64
|
+
#
|
65
|
+
# @param resource_group_name [String] The name of the resource group within the
|
66
|
+
# user's subscription. The name is case insensitive.
|
67
|
+
# @param account_name [String] The name of the storage account within the
|
68
|
+
# specified resource group. Storage account names must be between 3 and 24
|
69
|
+
# characters in length and use numbers and lower-case letters only.
|
70
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
71
|
+
# to the HTTP request.
|
72
|
+
#
|
73
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
|
+
#
|
75
|
+
def list_async(resource_group_name, account_name, custom_headers:nil)
|
76
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
77
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
78
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
79
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
80
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
81
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
82
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
83
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
84
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
85
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
86
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
87
|
+
|
88
|
+
|
89
|
+
request_headers = {}
|
90
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
91
|
+
|
92
|
+
# Set Headers
|
93
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
94
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
95
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections'
|
96
|
+
|
97
|
+
request_url = @base_url || @client.base_url
|
98
|
+
|
99
|
+
options = {
|
100
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
101
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
102
|
+
query_params: {'api-version' => @client.api_version},
|
103
|
+
headers: request_headers.merge(custom_headers || {}),
|
104
|
+
base_url: request_url
|
105
|
+
}
|
106
|
+
promise = @client.make_request_async(:get, path_template, options)
|
107
|
+
|
108
|
+
promise = promise.then do |result|
|
109
|
+
http_response = result.response
|
110
|
+
status_code = http_response.status
|
111
|
+
response_content = http_response.body
|
112
|
+
unless status_code == 200
|
113
|
+
error_model = JSON.load(response_content)
|
114
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
115
|
+
end
|
116
|
+
|
117
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
118
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
119
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
120
|
+
# Deserialize Response
|
121
|
+
if status_code == 200
|
122
|
+
begin
|
123
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
124
|
+
result_mapper = Azure::Storage::Mgmt::V2021_01_01::Models::PrivateEndpointConnectionListResult.mapper()
|
125
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
126
|
+
rescue Exception => e
|
127
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
result
|
132
|
+
end
|
133
|
+
|
134
|
+
promise.execute
|
135
|
+
end
|
136
|
+
|
137
|
+
#
|
138
|
+
# Gets the specified private endpoint connection associated with the storage
|
139
|
+
# account.
|
140
|
+
#
|
141
|
+
# @param resource_group_name [String] The name of the resource group within the
|
142
|
+
# user's subscription. The name is case insensitive.
|
143
|
+
# @param account_name [String] The name of the storage account within the
|
144
|
+
# specified resource group. Storage account names must be between 3 and 24
|
145
|
+
# characters in length and use numbers and lower-case letters only.
|
146
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
147
|
+
# endpoint connection associated with the Azure resource
|
148
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
149
|
+
# will be added to the HTTP request.
|
150
|
+
#
|
151
|
+
# @return [PrivateEndpointConnection] operation results.
|
152
|
+
#
|
153
|
+
def get(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:nil)
|
154
|
+
response = get_async(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
155
|
+
response.body unless response.nil?
|
156
|
+
end
|
157
|
+
|
158
|
+
#
|
159
|
+
# Gets the specified private endpoint connection associated with the storage
|
160
|
+
# account.
|
161
|
+
#
|
162
|
+
# @param resource_group_name [String] The name of the resource group within the
|
163
|
+
# user's subscription. The name is case insensitive.
|
164
|
+
# @param account_name [String] The name of the storage account within the
|
165
|
+
# specified resource group. Storage account names must be between 3 and 24
|
166
|
+
# characters in length and use numbers and lower-case letters only.
|
167
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
168
|
+
# endpoint connection associated with the Azure resource
|
169
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
170
|
+
# will be added to the HTTP request.
|
171
|
+
#
|
172
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
173
|
+
#
|
174
|
+
def get_with_http_info(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:nil)
|
175
|
+
get_async(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
176
|
+
end
|
177
|
+
|
178
|
+
#
|
179
|
+
# Gets the specified private endpoint connection associated with the storage
|
180
|
+
# account.
|
181
|
+
#
|
182
|
+
# @param resource_group_name [String] The name of the resource group within the
|
183
|
+
# user's subscription. The name is case insensitive.
|
184
|
+
# @param account_name [String] The name of the storage account within the
|
185
|
+
# specified resource group. Storage account names must be between 3 and 24
|
186
|
+
# characters in length and use numbers and lower-case letters only.
|
187
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
188
|
+
# endpoint connection associated with the Azure resource
|
189
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
190
|
+
# to the HTTP request.
|
191
|
+
#
|
192
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
193
|
+
#
|
194
|
+
def get_async(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:nil)
|
195
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
196
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
197
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
198
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
199
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
200
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
201
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
202
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
203
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
204
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
205
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
206
|
+
fail ArgumentError, 'private_endpoint_connection_name is nil' if private_endpoint_connection_name.nil?
|
207
|
+
|
208
|
+
|
209
|
+
request_headers = {}
|
210
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
211
|
+
|
212
|
+
# Set Headers
|
213
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
214
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
215
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'
|
216
|
+
|
217
|
+
request_url = @base_url || @client.base_url
|
218
|
+
|
219
|
+
options = {
|
220
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
221
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id,'privateEndpointConnectionName' => private_endpoint_connection_name},
|
222
|
+
query_params: {'api-version' => @client.api_version},
|
223
|
+
headers: request_headers.merge(custom_headers || {}),
|
224
|
+
base_url: request_url
|
225
|
+
}
|
226
|
+
promise = @client.make_request_async(:get, path_template, options)
|
227
|
+
|
228
|
+
promise = promise.then do |result|
|
229
|
+
http_response = result.response
|
230
|
+
status_code = http_response.status
|
231
|
+
response_content = http_response.body
|
232
|
+
unless status_code == 200
|
233
|
+
error_model = JSON.load(response_content)
|
234
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
235
|
+
end
|
236
|
+
|
237
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
238
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
239
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
240
|
+
# Deserialize Response
|
241
|
+
if status_code == 200
|
242
|
+
begin
|
243
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
244
|
+
result_mapper = Azure::Storage::Mgmt::V2021_01_01::Models::PrivateEndpointConnection.mapper()
|
245
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
246
|
+
rescue Exception => e
|
247
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
result
|
252
|
+
end
|
253
|
+
|
254
|
+
promise.execute
|
255
|
+
end
|
256
|
+
|
257
|
+
#
|
258
|
+
# Update the state of specified private endpoint connection associated with the
|
259
|
+
# storage account.
|
260
|
+
#
|
261
|
+
# @param resource_group_name [String] The name of the resource group within the
|
262
|
+
# user's subscription. The name is case insensitive.
|
263
|
+
# @param account_name [String] The name of the storage account within the
|
264
|
+
# specified resource group. Storage account names must be between 3 and 24
|
265
|
+
# characters in length and use numbers and lower-case letters only.
|
266
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
267
|
+
# endpoint connection associated with the Azure resource
|
268
|
+
# @param properties [PrivateEndpointConnection] The private endpoint connection
|
269
|
+
# properties.
|
270
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
271
|
+
# will be added to the HTTP request.
|
272
|
+
#
|
273
|
+
# @return [PrivateEndpointConnection] operation results.
|
274
|
+
#
|
275
|
+
def put(resource_group_name, account_name, private_endpoint_connection_name, properties, custom_headers:nil)
|
276
|
+
response = put_async(resource_group_name, account_name, private_endpoint_connection_name, properties, custom_headers:custom_headers).value!
|
277
|
+
response.body unless response.nil?
|
278
|
+
end
|
279
|
+
|
280
|
+
#
|
281
|
+
# Update the state of specified private endpoint connection associated with the
|
282
|
+
# storage account.
|
283
|
+
#
|
284
|
+
# @param resource_group_name [String] The name of the resource group within the
|
285
|
+
# user's subscription. The name is case insensitive.
|
286
|
+
# @param account_name [String] The name of the storage account within the
|
287
|
+
# specified resource group. Storage account names must be between 3 and 24
|
288
|
+
# characters in length and use numbers and lower-case letters only.
|
289
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
290
|
+
# endpoint connection associated with the Azure resource
|
291
|
+
# @param properties [PrivateEndpointConnection] The private endpoint connection
|
292
|
+
# properties.
|
293
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
294
|
+
# will be added to the HTTP request.
|
295
|
+
#
|
296
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
297
|
+
#
|
298
|
+
def put_with_http_info(resource_group_name, account_name, private_endpoint_connection_name, properties, custom_headers:nil)
|
299
|
+
put_async(resource_group_name, account_name, private_endpoint_connection_name, properties, custom_headers:custom_headers).value!
|
300
|
+
end
|
301
|
+
|
302
|
+
#
|
303
|
+
# Update the state of specified private endpoint connection associated with the
|
304
|
+
# storage account.
|
305
|
+
#
|
306
|
+
# @param resource_group_name [String] The name of the resource group within the
|
307
|
+
# user's subscription. The name is case insensitive.
|
308
|
+
# @param account_name [String] The name of the storage account within the
|
309
|
+
# specified resource group. Storage account names must be between 3 and 24
|
310
|
+
# characters in length and use numbers and lower-case letters only.
|
311
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
312
|
+
# endpoint connection associated with the Azure resource
|
313
|
+
# @param properties [PrivateEndpointConnection] The private endpoint connection
|
314
|
+
# properties.
|
315
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
316
|
+
# to the HTTP request.
|
317
|
+
#
|
318
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
319
|
+
#
|
320
|
+
def put_async(resource_group_name, account_name, private_endpoint_connection_name, properties, custom_headers:nil)
|
321
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
322
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
323
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
324
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
325
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
326
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
327
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
328
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
329
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
330
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
331
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
332
|
+
fail ArgumentError, 'private_endpoint_connection_name is nil' if private_endpoint_connection_name.nil?
|
333
|
+
fail ArgumentError, 'properties is nil' if properties.nil?
|
334
|
+
|
335
|
+
|
336
|
+
request_headers = {}
|
337
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
338
|
+
|
339
|
+
# Set Headers
|
340
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
341
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
342
|
+
|
343
|
+
# Serialize Request
|
344
|
+
request_mapper = Azure::Storage::Mgmt::V2021_01_01::Models::PrivateEndpointConnection.mapper()
|
345
|
+
request_content = @client.serialize(request_mapper, properties)
|
346
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
347
|
+
|
348
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'
|
349
|
+
|
350
|
+
request_url = @base_url || @client.base_url
|
351
|
+
|
352
|
+
options = {
|
353
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
354
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id,'privateEndpointConnectionName' => private_endpoint_connection_name},
|
355
|
+
query_params: {'api-version' => @client.api_version},
|
356
|
+
body: request_content,
|
357
|
+
headers: request_headers.merge(custom_headers || {}),
|
358
|
+
base_url: request_url
|
359
|
+
}
|
360
|
+
promise = @client.make_request_async(:put, path_template, options)
|
361
|
+
|
362
|
+
promise = promise.then do |result|
|
363
|
+
http_response = result.response
|
364
|
+
status_code = http_response.status
|
365
|
+
response_content = http_response.body
|
366
|
+
unless status_code == 200
|
367
|
+
error_model = JSON.load(response_content)
|
368
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
369
|
+
end
|
370
|
+
|
371
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
372
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
373
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
374
|
+
# Deserialize Response
|
375
|
+
if status_code == 200
|
376
|
+
begin
|
377
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
378
|
+
result_mapper = Azure::Storage::Mgmt::V2021_01_01::Models::PrivateEndpointConnection.mapper()
|
379
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
380
|
+
rescue Exception => e
|
381
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
385
|
+
result
|
386
|
+
end
|
387
|
+
|
388
|
+
promise.execute
|
389
|
+
end
|
390
|
+
|
391
|
+
#
|
392
|
+
# Deletes the specified private endpoint connection associated with the storage
|
393
|
+
# account.
|
394
|
+
#
|
395
|
+
# @param resource_group_name [String] The name of the resource group within the
|
396
|
+
# user's subscription. The name is case insensitive.
|
397
|
+
# @param account_name [String] The name of the storage account within the
|
398
|
+
# specified resource group. Storage account names must be between 3 and 24
|
399
|
+
# characters in length and use numbers and lower-case letters only.
|
400
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
401
|
+
# endpoint connection associated with the Azure resource
|
402
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
403
|
+
# will be added to the HTTP request.
|
404
|
+
#
|
405
|
+
#
|
406
|
+
def delete(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:nil)
|
407
|
+
response = delete_async(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
408
|
+
nil
|
409
|
+
end
|
410
|
+
|
411
|
+
#
|
412
|
+
# Deletes the specified private endpoint connection associated with the storage
|
413
|
+
# account.
|
414
|
+
#
|
415
|
+
# @param resource_group_name [String] The name of the resource group within the
|
416
|
+
# user's subscription. The name is case insensitive.
|
417
|
+
# @param account_name [String] The name of the storage account within the
|
418
|
+
# specified resource group. Storage account names must be between 3 and 24
|
419
|
+
# characters in length and use numbers and lower-case letters only.
|
420
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
421
|
+
# endpoint connection associated with the Azure resource
|
422
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
423
|
+
# will be added to the HTTP request.
|
424
|
+
#
|
425
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
426
|
+
#
|
427
|
+
def delete_with_http_info(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:nil)
|
428
|
+
delete_async(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
429
|
+
end
|
430
|
+
|
431
|
+
#
|
432
|
+
# Deletes the specified private endpoint connection associated with the storage
|
433
|
+
# account.
|
434
|
+
#
|
435
|
+
# @param resource_group_name [String] The name of the resource group within the
|
436
|
+
# user's subscription. The name is case insensitive.
|
437
|
+
# @param account_name [String] The name of the storage account within the
|
438
|
+
# specified resource group. Storage account names must be between 3 and 24
|
439
|
+
# characters in length and use numbers and lower-case letters only.
|
440
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
441
|
+
# endpoint connection associated with the Azure resource
|
442
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
443
|
+
# to the HTTP request.
|
444
|
+
#
|
445
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
446
|
+
#
|
447
|
+
def delete_async(resource_group_name, account_name, private_endpoint_connection_name, custom_headers:nil)
|
448
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
449
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
450
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
451
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
452
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
453
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
454
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
455
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
456
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
457
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
458
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
459
|
+
fail ArgumentError, 'private_endpoint_connection_name is nil' if private_endpoint_connection_name.nil?
|
460
|
+
|
461
|
+
|
462
|
+
request_headers = {}
|
463
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
464
|
+
|
465
|
+
# Set Headers
|
466
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
467
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
468
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'
|
469
|
+
|
470
|
+
request_url = @base_url || @client.base_url
|
471
|
+
|
472
|
+
options = {
|
473
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
474
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id,'privateEndpointConnectionName' => private_endpoint_connection_name},
|
475
|
+
query_params: {'api-version' => @client.api_version},
|
476
|
+
headers: request_headers.merge(custom_headers || {}),
|
477
|
+
base_url: request_url
|
478
|
+
}
|
479
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
480
|
+
|
481
|
+
promise = promise.then do |result|
|
482
|
+
http_response = result.response
|
483
|
+
status_code = http_response.status
|
484
|
+
response_content = http_response.body
|
485
|
+
unless status_code == 200 || status_code == 204
|
486
|
+
error_model = JSON.load(response_content)
|
487
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
488
|
+
end
|
489
|
+
|
490
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
491
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
492
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
493
|
+
|
494
|
+
result
|
495
|
+
end
|
496
|
+
|
497
|
+
promise.execute
|
498
|
+
end
|
499
|
+
|
500
|
+
end
|
501
|
+
end
|