repo
stringlengths 5
58
| path
stringlengths 9
168
| func_name
stringlengths 9
130
| original_string
stringlengths 66
10.5k
| language
stringclasses 1
value | code
stringlengths 66
10.5k
| code_tokens
sequence | docstring
stringlengths 8
16k
| docstring_tokens
sequence | sha
stringlengths 40
40
| url
stringlengths 94
266
| partition
stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|---|---|
amatsuda/active_decorator | lib/active_decorator/decorator.rb | ActiveDecorator.Decorator.decorate_association | def decorate_association(owner, target)
owner.is_a?(ActiveDecorator::Decorated) ? decorate(target) : target
end | ruby | def decorate_association(owner, target)
owner.is_a?(ActiveDecorator::Decorated) ? decorate(target) : target
end | [
"def",
"decorate_association",
"(",
"owner",
",",
"target",
")",
"owner",
".",
"is_a?",
"(",
"ActiveDecorator",
"::",
"Decorated",
")",
"?",
"decorate",
"(",
"target",
")",
":",
"target",
"end"
] | Decorates AR model object's association only when the object was decorated.
Returns the association instance. | [
"Decorates",
"AR",
"model",
"object",
"s",
"association",
"only",
"when",
"the",
"object",
"was",
"decorated",
".",
"Returns",
"the",
"association",
"instance",
"."
] | e7cfa764e657ea8bbb4cbe92cb220ee67ebae58e | https://github.com/amatsuda/active_decorator/blob/e7cfa764e657ea8bbb4cbe92cb220ee67ebae58e/lib/active_decorator/decorator.rb#L61-L63 | train |
amatsuda/active_decorator | lib/active_decorator/decorator.rb | ActiveDecorator.Decorator.decorator_for | def decorator_for(model_class)
return @@decorators[model_class] if @@decorators.key? model_class
decorator_name = "#{model_class.name}#{ActiveDecorator.config.decorator_suffix}"
d = Object.const_get decorator_name, false
unless Class === d
d.send :include, ActiveDecorator::Helpers
@@decorators[model_class] = d
else
# Cache nil results
@@decorators[model_class] = nil
end
rescue NameError
if model_class.respond_to?(:base_class) && (model_class.base_class != model_class)
@@decorators[model_class] = decorator_for model_class.base_class
else
# Cache nil results
@@decorators[model_class] = nil
end
end | ruby | def decorator_for(model_class)
return @@decorators[model_class] if @@decorators.key? model_class
decorator_name = "#{model_class.name}#{ActiveDecorator.config.decorator_suffix}"
d = Object.const_get decorator_name, false
unless Class === d
d.send :include, ActiveDecorator::Helpers
@@decorators[model_class] = d
else
# Cache nil results
@@decorators[model_class] = nil
end
rescue NameError
if model_class.respond_to?(:base_class) && (model_class.base_class != model_class)
@@decorators[model_class] = decorator_for model_class.base_class
else
# Cache nil results
@@decorators[model_class] = nil
end
end | [
"def",
"decorator_for",
"(",
"model_class",
")",
"return",
"@@decorators",
"[",
"model_class",
"]",
"if",
"@@decorators",
".",
"key?",
"model_class",
"decorator_name",
"=",
"\"#{model_class.name}#{ActiveDecorator.config.decorator_suffix}\"",
"d",
"=",
"Object",
".",
"const_get",
"decorator_name",
",",
"false",
"unless",
"Class",
"===",
"d",
"d",
".",
"send",
":include",
",",
"ActiveDecorator",
"::",
"Helpers",
"@@decorators",
"[",
"model_class",
"]",
"=",
"d",
"else",
"# Cache nil results",
"@@decorators",
"[",
"model_class",
"]",
"=",
"nil",
"end",
"rescue",
"NameError",
"if",
"model_class",
".",
"respond_to?",
"(",
":base_class",
")",
"&&",
"(",
"model_class",
".",
"base_class",
"!=",
"model_class",
")",
"@@decorators",
"[",
"model_class",
"]",
"=",
"decorator_for",
"model_class",
".",
"base_class",
"else",
"# Cache nil results",
"@@decorators",
"[",
"model_class",
"]",
"=",
"nil",
"end",
"end"
] | Returns a decorator module for the given class.
Returns `nil` if no decorator module was found. | [
"Returns",
"a",
"decorator",
"module",
"for",
"the",
"given",
"class",
".",
"Returns",
"nil",
"if",
"no",
"decorator",
"module",
"was",
"found",
"."
] | e7cfa764e657ea8bbb4cbe92cb220ee67ebae58e | https://github.com/amatsuda/active_decorator/blob/e7cfa764e657ea8bbb4cbe92cb220ee67ebae58e/lib/active_decorator/decorator.rb#L68-L87 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb | Azure::Web::Mgmt::V2015_08_01.AppServiceCertificateOrders.delete | def delete(resource_group_name, certificate_order_name, custom_headers:nil)
response = delete_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
nil
end | ruby | def delete(resource_group_name, certificate_order_name, custom_headers:nil)
response = delete_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"delete",
"(",
"resource_group_name",
",",
"certificate_order_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"delete_async",
"(",
"resource_group_name",
",",
"certificate_order_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | Delete an existing certificate order.
Delete an existing certificate order.
@param resource_group_name [String] Name of the resource group to which the
resource belongs.
@param certificate_order_name [String] Name of the certificate order.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"Delete",
"an",
"existing",
"certificate",
"order",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb#L473-L476 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb | Azure::Web::Mgmt::V2015_08_01.AppServiceCertificateOrders.resend_email | def resend_email(resource_group_name, certificate_order_name, custom_headers:nil)
response = resend_email_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
nil
end | ruby | def resend_email(resource_group_name, certificate_order_name, custom_headers:nil)
response = resend_email_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"resend_email",
"(",
"resource_group_name",
",",
"certificate_order_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"resend_email_async",
"(",
"resource_group_name",
",",
"certificate_order_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | Resend certificate email.
Resend certificate email.
@param resource_group_name [String] Name of the resource group to which the
resource belongs.
@param certificate_order_name [String] Name of the certificate order.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"Resend",
"certificate",
"email",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb#L1404-L1407 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb | Azure::Web::Mgmt::V2015_08_01.AppServiceCertificateOrders.retrieve_certificate_actions | def retrieve_certificate_actions(resource_group_name, name, custom_headers:nil)
response = retrieve_certificate_actions_async(resource_group_name, name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def retrieve_certificate_actions(resource_group_name, name, custom_headers:nil)
response = retrieve_certificate_actions_async(resource_group_name, name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"retrieve_certificate_actions",
"(",
"resource_group_name",
",",
"name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"retrieve_certificate_actions_async",
"(",
"resource_group_name",
",",
"name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Retrieve the list of certificate actions.
Retrieve the list of certificate actions.
@param resource_group_name [String] Name of the resource group to which the
resource belongs.
@param name [String] Name of the certificate order.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Array] operation results. | [
"Retrieve",
"the",
"list",
"of",
"certificate",
"actions",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb#L1810-L1813 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb | Azure::Web::Mgmt::V2015_08_01.AppServiceCertificateOrders.retrieve_certificate_email_history | def retrieve_certificate_email_history(resource_group_name, name, custom_headers:nil)
response = retrieve_certificate_email_history_async(resource_group_name, name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def retrieve_certificate_email_history(resource_group_name, name, custom_headers:nil)
response = retrieve_certificate_email_history_async(resource_group_name, name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"retrieve_certificate_email_history",
"(",
"resource_group_name",
",",
"name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"retrieve_certificate_email_history_async",
"(",
"resource_group_name",
",",
"name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Retrieve email history.
Retrieve email history.
@param resource_group_name [String] Name of the resource group to which the
resource belongs.
@param name [String] Name of the certificate order.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Array] operation results. | [
"Retrieve",
"email",
"history",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb#L1930-L1933 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb | Azure::Web::Mgmt::V2015_08_01.AppServiceCertificateOrders.list_by_resource_group_next | def list_by_resource_group_next(next_page_link, custom_headers:nil)
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def list_by_resource_group_next(next_page_link, custom_headers:nil)
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"list_by_resource_group_next",
"(",
"next_page_link",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"list_by_resource_group_next_async",
"(",
"next_page_link",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Get certificate orders in a resource group.
Get certificate orders in a resource group.
@param next_page_link [String] The NextLink from the previous successful call
to List operation.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [AppServiceCertificateOrderCollection] operation results. | [
"Get",
"certificate",
"orders",
"in",
"a",
"resource",
"group",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb#L2403-L2406 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_network_peerings.rb | Azure::Network::Mgmt::V2018_12_01.VirtualNetworkPeerings.get_with_http_info | def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil)
get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil)
get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"virtual_network_name",
",",
"virtual_network_peering_name",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"virtual_network_name",
",",
"virtual_network_peering_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets the specified virtual network peering.
@param resource_group_name [String] The name of the resource group.
@param virtual_network_name [String] The name of the virtual network.
@param virtual_network_peering_name [String] The name of the virtual network
peering.
@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. | [
"Gets",
"the",
"specified",
"virtual",
"network",
"peering",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_network_peerings.rb#L95-L97 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_network_peerings.rb | Azure::Network::Mgmt::V2018_12_01.VirtualNetworkPeerings.list | def list(resource_group_name, virtual_network_name, custom_headers:nil)
first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers)
first_page.get_all_items
end | ruby | def list(resource_group_name, virtual_network_name, custom_headers:nil)
first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers)
first_page.get_all_items
end | [
"def",
"list",
"(",
"resource_group_name",
",",
"virtual_network_name",
",",
"custom_headers",
":",
"nil",
")",
"first_page",
"=",
"list_as_lazy",
"(",
"resource_group_name",
",",
"virtual_network_name",
",",
"custom_headers",
":custom_headers",
")",
"first_page",
".",
"get_all_items",
"end"
] | Gets all virtual network peerings in a virtual network.
@param resource_group_name [String] The name of the resource group.
@param virtual_network_name [String] The name of the virtual network.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Array<VirtualNetworkPeering>] operation results. | [
"Gets",
"all",
"virtual",
"network",
"peerings",
"in",
"a",
"virtual",
"network",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_network_peerings.rb#L223-L226 | train |
Azure/azure-sdk-for-ruby | runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb | MsRestAzure.AzureServiceClient.check_for_status_code_failure | def check_for_status_code_failure(azure_response)
fail MsRest::ValidationError, 'Azure response cannot be nil' if azure_response.nil?
fail MsRest::ValidationError, 'Azure response cannot have empty response object' if azure_response.response.nil?
fail MsRest::ValidationError, 'Azure response cannot have empty request object' if azure_response.request.nil?
status_code = azure_response.response.status
http_method = azure_response.request.method
fail AzureOperationError, "Unexpected polling status code from long running operation #{status_code}" unless status_code === 200 || status_code === 202 ||
(status_code === 201 && http_method === :put) ||
(status_code === 204 && (http_method === :delete || http_method === :post))
end | ruby | def check_for_status_code_failure(azure_response)
fail MsRest::ValidationError, 'Azure response cannot be nil' if azure_response.nil?
fail MsRest::ValidationError, 'Azure response cannot have empty response object' if azure_response.response.nil?
fail MsRest::ValidationError, 'Azure response cannot have empty request object' if azure_response.request.nil?
status_code = azure_response.response.status
http_method = azure_response.request.method
fail AzureOperationError, "Unexpected polling status code from long running operation #{status_code}" unless status_code === 200 || status_code === 202 ||
(status_code === 201 && http_method === :put) ||
(status_code === 204 && (http_method === :delete || http_method === :post))
end | [
"def",
"check_for_status_code_failure",
"(",
"azure_response",
")",
"fail",
"MsRest",
"::",
"ValidationError",
",",
"'Azure response cannot be nil'",
"if",
"azure_response",
".",
"nil?",
"fail",
"MsRest",
"::",
"ValidationError",
",",
"'Azure response cannot have empty response object'",
"if",
"azure_response",
".",
"response",
".",
"nil?",
"fail",
"MsRest",
"::",
"ValidationError",
",",
"'Azure response cannot have empty request object'",
"if",
"azure_response",
".",
"request",
".",
"nil?",
"status_code",
"=",
"azure_response",
".",
"response",
".",
"status",
"http_method",
"=",
"azure_response",
".",
"request",
".",
"method",
"fail",
"AzureOperationError",
",",
"\"Unexpected polling status code from long running operation #{status_code}\"",
"unless",
"status_code",
"===",
"200",
"||",
"status_code",
"===",
"202",
"||",
"(",
"status_code",
"===",
"201",
"&&",
"http_method",
"===",
":put",
")",
"||",
"(",
"status_code",
"===",
"204",
"&&",
"(",
"http_method",
"===",
":delete",
"||",
"http_method",
"===",
":post",
")",
")",
"end"
] | Verifies for unexpected polling status code
@param azure_response [MsRestAzure::AzureOperationResponse] response from Azure service. | [
"Verifies",
"for",
"unexpected",
"polling",
"status",
"code"
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb#L122-L133 | train |
Azure/azure-sdk-for-ruby | runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb | MsRestAzure.AzureServiceClient.update_state_from_get_resource_operation | def update_state_from_get_resource_operation(request, polling_state, custom_deserialization_block)
result = get_async_with_custom_deserialization(request, custom_deserialization_block)
fail AzureOperationError, 'The response from long running operation does not contain a body' if result.response.body.nil? || result.response.body.empty?
# On non flattened resource, we should find provisioning_state inside 'properties'
if result.body.respond_to?(:properties) && result.body.properties.respond_to?(:provisioning_state) && !result.body.properties.provisioning_state.nil?
polling_state.status = result.body.properties.provisioning_state
# On flattened resource, we should find provisioning_state at the top level
elsif result.body.respond_to?(:provisioning_state) && !result.body.provisioning_state.nil?
polling_state.status = result.body.provisioning_state
else
polling_state.status = AsyncOperationStatus::SUCCESS_STATUS
end
error_data = CloudErrorData.new
error_data.code = polling_state.status
error_data.message = "Long running operation failed with status #{polling_state.status}"
polling_state.error_data = error_data
polling_state.update_response(result.response)
polling_state.request = result.request
polling_state.resource = result.body
end | ruby | def update_state_from_get_resource_operation(request, polling_state, custom_deserialization_block)
result = get_async_with_custom_deserialization(request, custom_deserialization_block)
fail AzureOperationError, 'The response from long running operation does not contain a body' if result.response.body.nil? || result.response.body.empty?
# On non flattened resource, we should find provisioning_state inside 'properties'
if result.body.respond_to?(:properties) && result.body.properties.respond_to?(:provisioning_state) && !result.body.properties.provisioning_state.nil?
polling_state.status = result.body.properties.provisioning_state
# On flattened resource, we should find provisioning_state at the top level
elsif result.body.respond_to?(:provisioning_state) && !result.body.provisioning_state.nil?
polling_state.status = result.body.provisioning_state
else
polling_state.status = AsyncOperationStatus::SUCCESS_STATUS
end
error_data = CloudErrorData.new
error_data.code = polling_state.status
error_data.message = "Long running operation failed with status #{polling_state.status}"
polling_state.error_data = error_data
polling_state.update_response(result.response)
polling_state.request = result.request
polling_state.resource = result.body
end | [
"def",
"update_state_from_get_resource_operation",
"(",
"request",
",",
"polling_state",
",",
"custom_deserialization_block",
")",
"result",
"=",
"get_async_with_custom_deserialization",
"(",
"request",
",",
"custom_deserialization_block",
")",
"fail",
"AzureOperationError",
",",
"'The response from long running operation does not contain a body'",
"if",
"result",
".",
"response",
".",
"body",
".",
"nil?",
"||",
"result",
".",
"response",
".",
"body",
".",
"empty?",
"# On non flattened resource, we should find provisioning_state inside 'properties'",
"if",
"result",
".",
"body",
".",
"respond_to?",
"(",
":properties",
")",
"&&",
"result",
".",
"body",
".",
"properties",
".",
"respond_to?",
"(",
":provisioning_state",
")",
"&&",
"!",
"result",
".",
"body",
".",
"properties",
".",
"provisioning_state",
".",
"nil?",
"polling_state",
".",
"status",
"=",
"result",
".",
"body",
".",
"properties",
".",
"provisioning_state",
"# On flattened resource, we should find provisioning_state at the top level",
"elsif",
"result",
".",
"body",
".",
"respond_to?",
"(",
":provisioning_state",
")",
"&&",
"!",
"result",
".",
"body",
".",
"provisioning_state",
".",
"nil?",
"polling_state",
".",
"status",
"=",
"result",
".",
"body",
".",
"provisioning_state",
"else",
"polling_state",
".",
"status",
"=",
"AsyncOperationStatus",
"::",
"SUCCESS_STATUS",
"end",
"error_data",
"=",
"CloudErrorData",
".",
"new",
"error_data",
".",
"code",
"=",
"polling_state",
".",
"status",
"error_data",
".",
"message",
"=",
"\"Long running operation failed with status #{polling_state.status}\"",
"polling_state",
".",
"error_data",
"=",
"error_data",
"polling_state",
".",
"update_response",
"(",
"result",
".",
"response",
")",
"polling_state",
".",
"request",
"=",
"result",
".",
"request",
"polling_state",
".",
"resource",
"=",
"result",
".",
"body",
"end"
] | Updates polling state based on location header for PUT HTTP requests.
@param request [MsRest::HttpOperationRequest] The url retrieve data from.
@param polling_state [MsRestAzure::PollingState] polling state to update.
@param custom_deserialization_block [Proc] custom deserialization method for parsing response. | [
"Updates",
"polling",
"state",
"based",
"on",
"location",
"header",
"for",
"PUT",
"HTTP",
"requests",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb#L141-L164 | train |
Azure/azure-sdk-for-ruby | runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb | MsRestAzure.AzureServiceClient.update_state_from_location_header | def update_state_from_location_header(request, polling_state, custom_deserialization_block, final_state_via = FinalStateVia::DEFAULT)
result = get_async_with_custom_deserialization(request, custom_deserialization_block)
polling_state.update_response(result.response)
polling_state.request = result.request
status_code = result.response.status
http_method = request.method
if status_code === 202
polling_state.status = AsyncOperationStatus::IN_PROGRESS_STATUS
elsif status_code === 200 || (status_code === 201 && http_method === :put) ||
(status_code === 204 && (http_method === :delete || http_method === :post || http_method === :get))
polling_state.status = AsyncOperationStatus::SUCCESS_STATUS
error_data = CloudErrorData.new
error_data.code = polling_state.status
error_data.message = "Long running operation failed with status #{polling_state.status}"
polling_state.error_data = error_data
polling_state.resource = result.body
elsif final_state_via == FinalStateVia::LOCATION && status_code === 404 && http_method === :delete && !polling_state.azure_async_operation_header_link.nil? && !polling_state.location_header_link.nil?
polling_state.status = AsyncOperationStatus::SUCCESS_STATUS
else
fail AzureOperationError, "The response from long running operation does not have a valid status code. Method: #{http_method}, Status Code: #{status_code}"
end
end | ruby | def update_state_from_location_header(request, polling_state, custom_deserialization_block, final_state_via = FinalStateVia::DEFAULT)
result = get_async_with_custom_deserialization(request, custom_deserialization_block)
polling_state.update_response(result.response)
polling_state.request = result.request
status_code = result.response.status
http_method = request.method
if status_code === 202
polling_state.status = AsyncOperationStatus::IN_PROGRESS_STATUS
elsif status_code === 200 || (status_code === 201 && http_method === :put) ||
(status_code === 204 && (http_method === :delete || http_method === :post || http_method === :get))
polling_state.status = AsyncOperationStatus::SUCCESS_STATUS
error_data = CloudErrorData.new
error_data.code = polling_state.status
error_data.message = "Long running operation failed with status #{polling_state.status}"
polling_state.error_data = error_data
polling_state.resource = result.body
elsif final_state_via == FinalStateVia::LOCATION && status_code === 404 && http_method === :delete && !polling_state.azure_async_operation_header_link.nil? && !polling_state.location_header_link.nil?
polling_state.status = AsyncOperationStatus::SUCCESS_STATUS
else
fail AzureOperationError, "The response from long running operation does not have a valid status code. Method: #{http_method}, Status Code: #{status_code}"
end
end | [
"def",
"update_state_from_location_header",
"(",
"request",
",",
"polling_state",
",",
"custom_deserialization_block",
",",
"final_state_via",
"=",
"FinalStateVia",
"::",
"DEFAULT",
")",
"result",
"=",
"get_async_with_custom_deserialization",
"(",
"request",
",",
"custom_deserialization_block",
")",
"polling_state",
".",
"update_response",
"(",
"result",
".",
"response",
")",
"polling_state",
".",
"request",
"=",
"result",
".",
"request",
"status_code",
"=",
"result",
".",
"response",
".",
"status",
"http_method",
"=",
"request",
".",
"method",
"if",
"status_code",
"===",
"202",
"polling_state",
".",
"status",
"=",
"AsyncOperationStatus",
"::",
"IN_PROGRESS_STATUS",
"elsif",
"status_code",
"===",
"200",
"||",
"(",
"status_code",
"===",
"201",
"&&",
"http_method",
"===",
":put",
")",
"||",
"(",
"status_code",
"===",
"204",
"&&",
"(",
"http_method",
"===",
":delete",
"||",
"http_method",
"===",
":post",
"||",
"http_method",
"===",
":get",
")",
")",
"polling_state",
".",
"status",
"=",
"AsyncOperationStatus",
"::",
"SUCCESS_STATUS",
"error_data",
"=",
"CloudErrorData",
".",
"new",
"error_data",
".",
"code",
"=",
"polling_state",
".",
"status",
"error_data",
".",
"message",
"=",
"\"Long running operation failed with status #{polling_state.status}\"",
"polling_state",
".",
"error_data",
"=",
"error_data",
"polling_state",
".",
"resource",
"=",
"result",
".",
"body",
"elsif",
"final_state_via",
"==",
"FinalStateVia",
"::",
"LOCATION",
"&&",
"status_code",
"===",
"404",
"&&",
"http_method",
"===",
":delete",
"&&",
"!",
"polling_state",
".",
"azure_async_operation_header_link",
".",
"nil?",
"&&",
"!",
"polling_state",
".",
"location_header_link",
".",
"nil?",
"polling_state",
".",
"status",
"=",
"AsyncOperationStatus",
"::",
"SUCCESS_STATUS",
"else",
"fail",
"AzureOperationError",
",",
"\"The response from long running operation does not have a valid status code. Method: #{http_method}, Status Code: #{status_code}\"",
"end",
"end"
] | Updates polling state based on location header for HTTP requests.
@param request [MsRest::HttpOperationRequest] The url retrieve data from.
@param polling_state [MsRestAzure::PollingState] polling state to update.
@param custom_deserialization_block [Proc] custom deserialization method for parsing response.
@param final_state_via [MsRestAzure::FinalStateVia] Final State via value | [
"Updates",
"polling",
"state",
"based",
"on",
"location",
"header",
"for",
"HTTP",
"requests",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb#L173-L198 | train |
Azure/azure-sdk-for-ruby | runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb | MsRestAzure.AzureServiceClient.update_state_from_azure_async_operation_header | def update_state_from_azure_async_operation_header(request, polling_state)
result = get_async_with_async_operation_deserialization(request)
fail AzureOperationError, 'The response from long running operation does not contain a body' if result.body.nil? || result.body.status.nil?
polling_state.status = result.body.status
polling_state.error_data = result.body.error
polling_state.response = result.response
polling_state.request = result.request
polling_state.resource = nil
polling_state
end | ruby | def update_state_from_azure_async_operation_header(request, polling_state)
result = get_async_with_async_operation_deserialization(request)
fail AzureOperationError, 'The response from long running operation does not contain a body' if result.body.nil? || result.body.status.nil?
polling_state.status = result.body.status
polling_state.error_data = result.body.error
polling_state.response = result.response
polling_state.request = result.request
polling_state.resource = nil
polling_state
end | [
"def",
"update_state_from_azure_async_operation_header",
"(",
"request",
",",
"polling_state",
")",
"result",
"=",
"get_async_with_async_operation_deserialization",
"(",
"request",
")",
"fail",
"AzureOperationError",
",",
"'The response from long running operation does not contain a body'",
"if",
"result",
".",
"body",
".",
"nil?",
"||",
"result",
".",
"body",
".",
"status",
".",
"nil?",
"polling_state",
".",
"status",
"=",
"result",
".",
"body",
".",
"status",
"polling_state",
".",
"error_data",
"=",
"result",
".",
"body",
".",
"error",
"polling_state",
".",
"response",
"=",
"result",
".",
"response",
"polling_state",
".",
"request",
"=",
"result",
".",
"request",
"polling_state",
".",
"resource",
"=",
"nil",
"polling_state",
"end"
] | Updates polling state from Azure async operation header.
@param polling_state [MsRestAzure::PollingState] polling state. | [
"Updates",
"polling",
"state",
"from",
"Azure",
"async",
"operation",
"header",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb#L204-L216 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb | Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10.ReplicationAlertSettings.create | def create(alert_setting_name, request, custom_headers:nil)
response = create_async(alert_setting_name, request, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def create(alert_setting_name, request, custom_headers:nil)
response = create_async(alert_setting_name, request, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"create",
"(",
"alert_setting_name",
",",
"request",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"create_async",
"(",
"alert_setting_name",
",",
"request",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Configures email notifications for this vault.
Create or update an email notification(alert) configuration.
@param alert_setting_name [String] The name of the email notification(alert)
configuration.
@param request [ConfigureAlertRequest] The input to configure the email
notification(alert).
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Alert] operation results. | [
"Configures",
"email",
"notifications",
"for",
"this",
"vault",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb#L137-L140 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_privatedns/lib/2018-09-01/generated/azure_mgmt_privatedns/record_sets.rb | Azure::PrivateDns::Mgmt::V2018_09_01.RecordSets.create_or_update_with_http_info | def create_or_update_with_http_info(resource_group_name, private_zone_name, record_type, relative_record_set_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
create_or_update_async(resource_group_name, private_zone_name, record_type, relative_record_set_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
end | ruby | def create_or_update_with_http_info(resource_group_name, private_zone_name, record_type, relative_record_set_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
create_or_update_async(resource_group_name, private_zone_name, record_type, relative_record_set_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
end | [
"def",
"create_or_update_with_http_info",
"(",
"resource_group_name",
",",
"private_zone_name",
",",
"record_type",
",",
"relative_record_set_name",
",",
"parameters",
",",
"if_match",
":",
"nil",
",",
"if_none_match",
":",
"nil",
",",
"custom_headers",
":",
"nil",
")",
"create_or_update_async",
"(",
"resource_group_name",
",",
"private_zone_name",
",",
"record_type",
",",
"relative_record_set_name",
",",
"parameters",
",",
"if_match",
":if_match",
",",
"if_none_match",
":if_none_match",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Creates or updates a record set within a Private DNS zone.
@param resource_group_name [String] The name of the resource group.
@param private_zone_name [String] The name of the Private DNS zone (without a
terminating dot).
@param record_type [RecordType] The type of DNS record in this record set.
Record sets of type SOA can be updated but not created (they are created when
the Private DNS zone is created). Possible values include: 'A', 'AAAA',
'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
@param relative_record_set_name [String] The name of the record set, relative
to the name of the zone.
@param parameters [RecordSet] Parameters supplied to the CreateOrUpdate
operation.
@param if_match [String] The ETag of the record set. Omit this value to
always overwrite the current record set. Specify the last-seen ETag value to
prevent accidentally overwriting any concurrent changes.
@param if_none_match [String] Set to '*' to allow a new record set to be
created, but to prevent updating an existing record set. Other values will be
ignored.
@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. | [
"Creates",
"or",
"updates",
"a",
"record",
"set",
"within",
"a",
"Private",
"DNS",
"zone",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_privatedns/lib/2018-09-01/generated/azure_mgmt_privatedns/record_sets.rb#L79-L81 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_privatedns/lib/2018-09-01/generated/azure_mgmt_privatedns/record_sets.rb | Azure::PrivateDns::Mgmt::V2018_09_01.RecordSets.list_with_http_info | def list_with_http_info(resource_group_name, private_zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
list_async(resource_group_name, private_zone_name, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value!
end | ruby | def list_with_http_info(resource_group_name, private_zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
list_async(resource_group_name, private_zone_name, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value!
end | [
"def",
"list_with_http_info",
"(",
"resource_group_name",
",",
"private_zone_name",
",",
"top",
":",
"nil",
",",
"recordsetnamesuffix",
":",
"nil",
",",
"custom_headers",
":",
"nil",
")",
"list_async",
"(",
"resource_group_name",
",",
"private_zone_name",
",",
"top",
":",
"top",
",",
"recordsetnamesuffix",
":",
"recordsetnamesuffix",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Lists all record sets in a Private DNS zone.
@param resource_group_name [String] The name of the resource group.
@param private_zone_name [String] The name of the Private DNS zone (without a
terminating dot).
@param top [Integer] The maximum number of record sets to return. If not
specified, returns up to 100 record sets.
@param recordsetnamesuffix [String] The suffix label of the record set name
to be used to filter the record set enumeration. If this parameter is
specified, the returned enumeration will only contain records that end with
".<recordsetnamesuffix>".
@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. | [
"Lists",
"all",
"record",
"sets",
"in",
"a",
"Private",
"DNS",
"zone",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_privatedns/lib/2018-09-01/generated/azure_mgmt_privatedns/record_sets.rb#L711-L713 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_postgresql/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/configurations.rb | Azure::Postgresql::Mgmt::V2017_12_01_preview.Configurations.get_with_http_info | def get_with_http_info(resource_group_name, server_name, configuration_name, custom_headers:nil)
get_async(resource_group_name, server_name, configuration_name, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, server_name, configuration_name, custom_headers:nil)
get_async(resource_group_name, server_name, configuration_name, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"server_name",
",",
"configuration_name",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"server_name",
",",
"configuration_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets information about a configuration of server.
@param resource_group_name [String] The name of the resource group that
contains the resource. You can obtain this value from the Azure Resource
Manager API or the portal.
@param server_name [String] The name of the server.
@param configuration_name [String] The name of the server configuration.
@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. | [
"Gets",
"information",
"about",
"a",
"configuration",
"of",
"server",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_postgresql/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/configurations.rb#L110-L112 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/server_endpoints.rb | Azure::StorageSync::Mgmt::V2018_07_01.ServerEndpoints.get_with_http_info | def get_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
get_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
get_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"storage_sync_service_name",
",",
"sync_group_name",
",",
"server_endpoint_name",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"storage_sync_service_name",
",",
"sync_group_name",
",",
"server_endpoint_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Get a ServerEndpoint.
@param resource_group_name [String] The name of the resource group. The name
is case insensitive.
@param storage_sync_service_name [String] Name of Storage Sync Service
resource.
@param sync_group_name [String] Name of Sync Group resource.
@param server_endpoint_name [String] Name of Server Endpoint object.
@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. | [
"Get",
"a",
"ServerEndpoint",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/server_endpoints.rb#L165-L167 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/server_endpoints.rb | Azure::StorageSync::Mgmt::V2018_07_01.ServerEndpoints.begin_delete_with_http_info | def begin_delete_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers).value!
end | ruby | def begin_delete_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers).value!
end | [
"def",
"begin_delete_with_http_info",
"(",
"resource_group_name",
",",
"storage_sync_service_name",
",",
"sync_group_name",
",",
"server_endpoint_name",
",",
"custom_headers",
":",
"nil",
")",
"begin_delete_async",
"(",
"resource_group_name",
",",
"storage_sync_service_name",
",",
"sync_group_name",
",",
"server_endpoint_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Delete a given ServerEndpoint.
@param resource_group_name [String] The name of the resource group. The name
is case insensitive.
@param storage_sync_service_name [String] Name of Storage Sync Service
resource.
@param sync_group_name [String] Name of Sync Group resource.
@param server_endpoint_name [String] Name of Server Endpoint object.
@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. | [
"Delete",
"a",
"given",
"ServerEndpoint",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/server_endpoints.rb#L725-L727 | train |
Azure/azure-sdk-for-ruby | data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb | Azure::CognitiveServices::ComputerVision::V2_0.ComputerVisionClient.make_request_with_http_info | 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 | ruby | 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 | [
"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 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. | [
"Makes",
"a",
"request",
"and",
"returns",
"the",
"operation",
"response",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb#L85-L89 | train |
Azure/azure-sdk-for-ruby | data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb | Azure::CognitiveServices::ComputerVision::V2_0.ComputerVisionClient.make_request_async | 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 | ruby | 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 | [
"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"
] | 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. | [
"Makes",
"a",
"request",
"asynchronously",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb#L98-L113 | train |
Azure/azure-sdk-for-ruby | data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb | Azure::CognitiveServices::ComputerVision::V2_0.ComputerVisionClient.get_text_operation_result | def get_text_operation_result(operation_id, custom_headers:nil)
response = get_text_operation_result_async(operation_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_text_operation_result(operation_id, custom_headers:nil)
response = get_text_operation_result_async(operation_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_text_operation_result",
"(",
"operation_id",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_text_operation_result_async",
"(",
"operation_id",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | This interface is used for getting text operation result. The URL to this
interface should be retrieved from 'Operation-Location' field returned from
Recognize Text interface.
@param operation_id [String] Id of the text operation returned in the
response of the 'Recognize Text'
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [TextOperationResult] operation results. | [
"This",
"interface",
"is",
"used",
"for",
"getting",
"text",
"operation",
"result",
".",
"The",
"URL",
"to",
"this",
"interface",
"should",
"be",
"retrieved",
"from",
"Operation",
"-",
"Location",
"field",
"returned",
"from",
"Recognize",
"Text",
"interface",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb#L1491-L1494 | train |
Azure/azure-sdk-for-ruby | data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb | Azure::CognitiveServices::ComputerVision::V2_0.ComputerVisionClient.get_read_operation_result | def get_read_operation_result(operation_id, custom_headers:nil)
response = get_read_operation_result_async(operation_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_read_operation_result(operation_id, custom_headers:nil)
response = get_read_operation_result_async(operation_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_read_operation_result",
"(",
"operation_id",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_read_operation_result_async",
"(",
"operation_id",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | This interface is used for getting OCR results of Read operation. The URL to
this interface should be retrieved from "Operation-Location" field returned
from Batch Read File interface.
@param operation_id [String] Id of read operation returned in the response of
the "Batch Read File" interface.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [ReadOperationResult] operation results. | [
"This",
"interface",
"is",
"used",
"for",
"getting",
"OCR",
"results",
"of",
"Read",
"operation",
".",
"The",
"URL",
"to",
"this",
"interface",
"should",
"be",
"retrieved",
"from",
"Operation",
"-",
"Location",
"field",
"returned",
"from",
"Batch",
"Read",
"File",
"interface",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb#L1696-L1699 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb | Azure::Redis::Mgmt::V2017_02_01.Redis.update_with_http_info | def update_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
end | ruby | def update_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
end | [
"def",
"update_with_http_info",
"(",
"resource_group_name",
",",
"name",
",",
"parameters",
",",
"custom_headers",
":",
"nil",
")",
"update_async",
"(",
"resource_group_name",
",",
"name",
",",
"parameters",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Update an existing Redis cache.
@param resource_group_name [String] The name of the resource group.
@param name [String] The name of the Redis cache.
@param parameters [RedisUpdateParameters] Parameters supplied to the Update
Redis operation.
@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. | [
"Update",
"an",
"existing",
"Redis",
"cache",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb#L100-L102 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb | Azure::Redis::Mgmt::V2017_02_01.Redis.list_keys | def list_keys(resource_group_name, name, custom_headers:nil)
response = list_keys_async(resource_group_name, name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def list_keys(resource_group_name, name, custom_headers:nil)
response = list_keys_async(resource_group_name, name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"list_keys",
"(",
"resource_group_name",
",",
"name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"list_keys_async",
"(",
"resource_group_name",
",",
"name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Retrieve a Redis cache's access keys. This operation requires write
permission to the cache resource.
@param resource_group_name [String] The name of the resource group.
@param name [String] The name of the Redis cache.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [RedisAccessKeys] operation results. | [
"Retrieve",
"a",
"Redis",
"cache",
"s",
"access",
"keys",
".",
"This",
"operation",
"requires",
"write",
"permission",
"to",
"the",
"cache",
"resource",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb#L490-L493 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb | Azure::Redis::Mgmt::V2017_02_01.FirewallRules.create_or_update_with_http_info | def create_or_update_with_http_info(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil)
create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:custom_headers).value!
end | ruby | def create_or_update_with_http_info(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil)
create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:custom_headers).value!
end | [
"def",
"create_or_update_with_http_info",
"(",
"resource_group_name",
",",
"cache_name",
",",
"rule_name",
",",
"parameters",
",",
"custom_headers",
":",
"nil",
")",
"create_or_update_async",
"(",
"resource_group_name",
",",
"cache_name",
",",
"rule_name",
",",
"parameters",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Create or update a redis cache firewall rule
@param resource_group_name [String] The name of the resource group.
@param cache_name [String] The name of the Redis cache.
@param rule_name [String] The name of the firewall rule.
@param parameters [RedisFirewallRule] Parameters supplied to the create or
update redis firewall rule operation.
@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. | [
"Create",
"or",
"update",
"a",
"redis",
"cache",
"firewall",
"rule"
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb#L147-L149 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb | Azure::Redis::Mgmt::V2017_02_01.FirewallRules.get_with_http_info | def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil)
get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil)
get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"cache_name",
",",
"rule_name",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"cache_name",
",",
"rule_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets a single firewall rule in a specified redis cache.
@param resource_group_name [String] The name of the resource group.
@param cache_name [String] The name of the Redis cache.
@param rule_name [String] The name of the firewall rule.
@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. | [
"Gets",
"a",
"single",
"firewall",
"rule",
"in",
"a",
"specified",
"redis",
"cache",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb#L263-L265 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb | Azure::Redis::Mgmt::V2017_02_01.FirewallRules.delete_with_http_info | def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil)
delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
end | ruby | def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil)
delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
end | [
"def",
"delete_with_http_info",
"(",
"resource_group_name",
",",
"cache_name",
",",
"rule_name",
",",
"custom_headers",
":",
"nil",
")",
"delete_async",
"(",
"resource_group_name",
",",
"cache_name",
",",
"rule_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Deletes a single firewall rule in a specified redis cache.
@param resource_group_name [String] The name of the resource group.
@param cache_name [String] The name of the Redis cache.
@param rule_name [String] The name of the firewall rule.
@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. | [
"Deletes",
"a",
"single",
"firewall",
"rule",
"in",
"a",
"specified",
"redis",
"cache",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb#L358-L360 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb | Azure::CDN::Mgmt::V2015_06_01.CustomDomains.begin_delete_if_exists | def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"begin_delete_if_exists",
"(",
"custom_domain_name",
",",
"endpoint_name",
",",
"profile_name",
",",
"resource_group_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"begin_delete_if_exists_async",
"(",
"custom_domain_name",
",",
"endpoint_name",
",",
"profile_name",
",",
"resource_group_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Deletes an existing CDN custom domain within an endpoint.
@param custom_domain_name [String] Name of the custom domain within an
endpoint.
@param endpoint_name [String] Name of the endpoint within the CDN profile.
@param profile_name [String] Name of the CDN profile within the resource
group.
@param resource_group_name [String] Name of the resource group within the
Azure subscription.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [CustomDomain] operation results. | [
"Deletes",
"an",
"existing",
"CDN",
"custom",
"domain",
"within",
"an",
"endpoint",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb#L624-L627 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_dns/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb | Azure::Dns::Mgmt::V2017_09_01.RecordSets.update_with_http_info | def update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, custom_headers:nil)
update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, custom_headers:custom_headers).value!
end | ruby | def update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, custom_headers:nil)
update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, custom_headers:custom_headers).value!
end | [
"def",
"update_with_http_info",
"(",
"resource_group_name",
",",
"zone_name",
",",
"relative_record_set_name",
",",
"record_type",
",",
"parameters",
",",
"if_match",
":",
"nil",
",",
"custom_headers",
":",
"nil",
")",
"update_async",
"(",
"resource_group_name",
",",
"zone_name",
",",
"relative_record_set_name",
",",
"record_type",
",",
"parameters",
",",
"if_match",
":if_match",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Updates a record set within a DNS zone.
@param resource_group_name [String] The name of the resource group. The name
is case insensitive.
@param zone_name [String] The name of the DNS zone (without a terminating
dot).
@param relative_record_set_name [String] The name of the record set, relative
to the name of the zone.
@param record_type [RecordType] The type of DNS record in this record set.
Possible values include: 'A', 'AAAA', 'CAA', 'CNAME', 'MX', 'NS', 'PTR',
'SOA', 'SRV', 'TXT'
@param parameters [RecordSet] Parameters supplied to the Update operation.
@param if_match [String] The etag of the record set. Omit this value to
always overwrite the current record set. Specify the last-seen etag value to
prevent accidentally overwritting concurrent changes.
@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. | [
"Updates",
"a",
"record",
"set",
"within",
"a",
"DNS",
"zone",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_dns/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb#L71-L73 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_dns/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb | Azure::Dns::Mgmt::V2017_09_01.RecordSets.delete_with_http_info | def delete_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:nil, custom_headers:nil)
delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:if_match, custom_headers:custom_headers).value!
end | ruby | def delete_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:nil, custom_headers:nil)
delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:if_match, custom_headers:custom_headers).value!
end | [
"def",
"delete_with_http_info",
"(",
"resource_group_name",
",",
"zone_name",
",",
"relative_record_set_name",
",",
"record_type",
",",
"if_match",
":",
"nil",
",",
"custom_headers",
":",
"nil",
")",
"delete_async",
"(",
"resource_group_name",
",",
"zone_name",
",",
"relative_record_set_name",
",",
"record_type",
",",
"if_match",
":if_match",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Deletes a record set from a DNS zone. This operation cannot be undone.
@param resource_group_name [String] The name of the resource group. The name
is case insensitive.
@param zone_name [String] The name of the DNS zone (without a terminating
dot).
@param relative_record_set_name [String] The name of the record set, relative
to the name of the zone.
@param record_type [RecordType] The type of DNS record in this record set.
Record sets of type SOA cannot be deleted (they are deleted when the DNS zone
is deleted). Possible values include: 'A', 'AAAA', 'CAA', 'CNAME', 'MX',
'NS', 'PTR', 'SOA', 'SRV', 'TXT'
@param if_match [String] The etag of the record set. Omit this value to
always delete the current record set. Specify the last-seen etag value to
prevent accidentally deleting any concurrent changes.
@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. | [
"Deletes",
"a",
"record",
"set",
"from",
"a",
"DNS",
"zone",
".",
"This",
"operation",
"cannot",
"be",
"undone",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_dns/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb#L380-L382 | train |
Azure/azure-sdk-for-ruby | runtime/ms_rest/lib/ms_rest/retry_policy_middleware.rb | MsRest.RetryPolicyMiddleware.call | def call(request_env)
request_body = request_env[:body]
begin
request_env[:body] = request_body
@app.call(request_env).on_complete do |response_env|
status_code = response_env.status
if @times > 0 && (status_code == 408 || (status_code >= 500 && status_code != 501 && status_code != 505))
sleep @delay
fail 'faraday_retry'
end
end
rescue Exception => e
raise e if e.message != 'faraday_retry'
@times = @times - 1
retry
end
end | ruby | def call(request_env)
request_body = request_env[:body]
begin
request_env[:body] = request_body
@app.call(request_env).on_complete do |response_env|
status_code = response_env.status
if @times > 0 && (status_code == 408 || (status_code >= 500 && status_code != 501 && status_code != 505))
sleep @delay
fail 'faraday_retry'
end
end
rescue Exception => e
raise e if e.message != 'faraday_retry'
@times = @times - 1
retry
end
end | [
"def",
"call",
"(",
"request_env",
")",
"request_body",
"=",
"request_env",
"[",
":body",
"]",
"begin",
"request_env",
"[",
":body",
"]",
"=",
"request_body",
"@app",
".",
"call",
"(",
"request_env",
")",
".",
"on_complete",
"do",
"|",
"response_env",
"|",
"status_code",
"=",
"response_env",
".",
"status",
"if",
"@times",
">",
"0",
"&&",
"(",
"status_code",
"==",
"408",
"||",
"(",
"status_code",
">=",
"500",
"&&",
"status_code",
"!=",
"501",
"&&",
"status_code",
"!=",
"505",
")",
")",
"sleep",
"@delay",
"fail",
"'faraday_retry'",
"end",
"end",
"rescue",
"Exception",
"=>",
"e",
"raise",
"e",
"if",
"e",
".",
"message",
"!=",
"'faraday_retry'",
"@times",
"=",
"@times",
"-",
"1",
"retry",
"end",
"end"
] | Initializes a new instance of the RetryPolicyMiddleware class.
Performs request and response processing. | [
"Initializes",
"a",
"new",
"instance",
"of",
"the",
"RetryPolicyMiddleware",
"class",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/runtime/ms_rest/lib/ms_rest/retry_policy_middleware.rb#L23-L42 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb | Azure::Compute::Mgmt::V2016_04_30_preview.VirtualMachineScaleSets.list_all_next | def list_all_next(next_page_link, custom_headers:nil)
response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def list_all_next(next_page_link, custom_headers:nil)
response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"list_all_next",
"(",
"next_page_link",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"list_all_next_async",
"(",
"next_page_link",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets a list of all VM Scale Sets in the subscription, regardless of the
associated resource group. Use nextLink property in the response to get the
next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM
Scale Sets.
@param next_page_link [String] The NextLink from the previous successful call
to List operation.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [VirtualMachineScaleSetListWithLinkResult] operation results. | [
"Gets",
"a",
"list",
"of",
"all",
"VM",
"Scale",
"Sets",
"in",
"the",
"subscription",
"regardless",
"of",
"the",
"associated",
"resource",
"group",
".",
"Use",
"nextLink",
"property",
"in",
"the",
"response",
"to",
"get",
"the",
"next",
"page",
"of",
"VM",
"Scale",
"Sets",
".",
"Do",
"this",
"till",
"nextLink",
"is",
"null",
"to",
"fetch",
"all",
"the",
"VM",
"Scale",
"Sets",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb#L2080-L2083 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-10-01/generated/azure_mgmt_network/packet_captures.rb | Azure::Network::Mgmt::V2018_10_01.PacketCaptures.get_with_http_info | def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil)
get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil)
get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"network_watcher_name",
",",
"packet_capture_name",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"network_watcher_name",
",",
"packet_capture_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets a packet capture session by name.
@param resource_group_name [String] The name of the resource group.
@param network_watcher_name [String] The name of the network watcher.
@param packet_capture_name [String] The name of the packet capture session.
@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. | [
"Gets",
"a",
"packet",
"capture",
"session",
"by",
"name",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-10-01/generated/azure_mgmt_network/packet_captures.rb#L99-L101 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-10-01/generated/azure_mgmt_network/packet_captures.rb | Azure::Network::Mgmt::V2018_10_01.PacketCaptures.begin_delete_with_http_info | def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil)
begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value!
end | ruby | def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil)
begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value!
end | [
"def",
"begin_delete_with_http_info",
"(",
"resource_group_name",
",",
"network_watcher_name",
",",
"packet_capture_name",
",",
"custom_headers",
":",
"nil",
")",
"begin_delete_async",
"(",
"resource_group_name",
",",
"network_watcher_name",
",",
"packet_capture_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Deletes the specified packet capture session.
@param resource_group_name [String] The name of the resource group.
@param network_watcher_name [String] The name of the network watcher.
@param packet_capture_name [String] The name of the packet capture session.
@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. | [
"Deletes",
"the",
"specified",
"packet",
"capture",
"session",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-10-01/generated/azure_mgmt_network/packet_captures.rb#L527-L529 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb | Azure::ServiceBus::Mgmt::V2015_08_01.Namespaces.update_with_http_info | def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
end | ruby | def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
end | [
"def",
"update_with_http_info",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"parameters",
",",
"custom_headers",
":",
"nil",
")",
"update_async",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"parameters",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Updates a service namespace. Once created, this namespace's resource manifest
is immutable. This operation is idempotent.
@param resource_group_name [String] Name of the Resource group within the
Azure subscription.
@param namespace_name [String] The namespace name
@param parameters [NamespaceUpdateParameters] Parameters supplied to update a
namespace resource.
@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. | [
"Updates",
"a",
"service",
"namespace",
".",
"Once",
"created",
"this",
"namespace",
"s",
"resource",
"manifest",
"is",
"immutable",
".",
"This",
"operation",
"is",
"idempotent",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb#L524-L526 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb | Azure::ServiceBus::Mgmt::V2015_08_01.Namespaces.delete_authorization_rule | def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
nil
end | ruby | def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"delete_authorization_rule",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"authorization_rule_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"delete_authorization_rule_async",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"authorization_rule_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | Deletes a namespace authorization rule.
@param resource_group_name [String] Name of the Resource group within the
Azure subscription.
@param namespace_name [String] The namespace name
@param authorization_rule_name [String] The authorization rule name.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"Deletes",
"a",
"namespace",
"authorization",
"rule",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb#L846-L849 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb | Azure::ServiceBus::Mgmt::V2015_08_01.Namespaces.begin_create_or_update_with_http_info | def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
end | ruby | def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
end | [
"def",
"begin_create_or_update_with_http_info",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"parameters",
",",
"custom_headers",
":",
"nil",
")",
"begin_create_or_update_async",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"parameters",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Creates or updates a service namespace. Once created, this namespace's
resource manifest is immutable. This operation is idempotent.
@param resource_group_name [String] Name of the Resource group within the
Azure subscription.
@param namespace_name [String] The namespace name.
@param parameters [NamespaceCreateOrUpdateParameters] Parameters supplied to
create a namespace resource.
@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. | [
"Creates",
"or",
"updates",
"a",
"service",
"namespace",
".",
"Once",
"created",
"this",
"namespace",
"s",
"resource",
"manifest",
"is",
"immutable",
".",
"This",
"operation",
"is",
"idempotent",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb#L1291-L1293 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb | Azure::ServiceBus::Mgmt::V2015_08_01.Namespaces.begin_delete | def begin_delete(resource_group_name, namespace_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
nil
end | ruby | def begin_delete(resource_group_name, namespace_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"begin_delete",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"begin_delete_async",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | Deletes an existing namespace. This operation also removes all associated
resources under the namespace.
@param resource_group_name [String] Name of the Resource group within the
Azure subscription.
@param namespace_name [String] The namespace name
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"Deletes",
"an",
"existing",
"namespace",
".",
"This",
"operation",
"also",
"removes",
"all",
"associated",
"resources",
"under",
"the",
"namespace",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb#L1393-L1396 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb | Azure::ServiceBus::Mgmt::V2015_08_01.Namespaces.list_by_subscription_next | def list_by_subscription_next(next_page_link, custom_headers:nil)
response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def list_by_subscription_next(next_page_link, custom_headers:nil)
response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"list_by_subscription_next",
"(",
"next_page_link",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"list_by_subscription_next_async",
"(",
"next_page_link",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets all the available namespaces within the subscription, irrespective of
the resource groups.
@param next_page_link [String] The NextLink from the previous successful call
to List operation.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [NamespaceListResult] operation results. | [
"Gets",
"all",
"the",
"available",
"namespaces",
"within",
"the",
"subscription",
"irrespective",
"of",
"the",
"resource",
"groups",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb#L1484-L1487 | train |
Azure/azure-sdk-for-ruby | data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb | Azure::CognitiveServices::LuisAuthoring::V2_0.Versions.clone_with_http_info | def clone_with_http_info(app_id, version_id, version_clone_object, custom_headers:nil)
clone_async(app_id, version_id, version_clone_object, custom_headers:custom_headers).value!
end | ruby | def clone_with_http_info(app_id, version_id, version_clone_object, custom_headers:nil)
clone_async(app_id, version_id, version_clone_object, custom_headers:custom_headers).value!
end | [
"def",
"clone_with_http_info",
"(",
"app_id",
",",
"version_id",
",",
"version_clone_object",
",",
"custom_headers",
":",
"nil",
")",
"clone_async",
"(",
"app_id",
",",
"version_id",
",",
"version_clone_object",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Creates a new version from the selected version.
@param app_id The application ID.
@param version_id [String] The version ID.
@param version_clone_object [TaskUpdateObject] A model containing the new
version ID.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [String] operation results.
Creates a new version from the selected version.
@param app_id The application ID.
@param version_id [String] The version ID.
@param version_clone_object [TaskUpdateObject] A model containing the new
version ID.
@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. | [
"Creates",
"a",
"new",
"version",
"from",
"the",
"selected",
"version",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb#L53-L55 | train |
Azure/azure-sdk-for-ruby | data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb | Azure::CognitiveServices::LuisAuthoring::V2_0.Versions.list | def list(app_id, skip:0, take:100, custom_headers:nil)
response = list_async(app_id, skip:skip, take:take, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def list(app_id, skip:0, take:100, custom_headers:nil)
response = list_async(app_id, skip:skip, take:take, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"list",
"(",
"app_id",
",",
"skip",
":",
"0",
",",
"take",
":",
"100",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"list_async",
"(",
"app_id",
",",
"skip",
":",
"skip",
",",
"take",
":",
"take",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets a list of versions for this application ID.
@param app_id The application ID.
@param skip [Integer] The number of entries to skip. Default value is 0.
@param take [Integer] The number of entries to return. Maximum page size is
500. Default is 100.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Array] operation results. | [
"Gets",
"a",
"list",
"of",
"versions",
"for",
"this",
"application",
"ID",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb#L148-L151 | train |
Azure/azure-sdk-for-ruby | data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb | Azure::CognitiveServices::LuisAuthoring::V2_0.Versions.export | def export(app_id, version_id, custom_headers:nil)
response = export_async(app_id, version_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def export(app_id, version_id, custom_headers:nil)
response = export_async(app_id, version_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"export",
"(",
"app_id",
",",
"version_id",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"export_async",
"(",
"app_id",
",",
"version_id",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Exports a LUIS application to JSON format.
@param app_id The application ID.
@param version_id [String] The version ID.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [LuisApp] operation results. | [
"Exports",
"a",
"LUIS",
"application",
"to",
"JSON",
"format",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb#L552-L555 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_containers.rb | Azure::Storage::Mgmt::V2018_07_01.BlobContainers.update_with_http_info | def update_with_http_info(resource_group_name, account_name, container_name, blob_container, custom_headers:nil)
update_async(resource_group_name, account_name, container_name, blob_container, custom_headers:custom_headers).value!
end | ruby | def update_with_http_info(resource_group_name, account_name, container_name, blob_container, custom_headers:nil)
update_async(resource_group_name, account_name, container_name, blob_container, custom_headers:custom_headers).value!
end | [
"def",
"update_with_http_info",
"(",
"resource_group_name",
",",
"account_name",
",",
"container_name",
",",
"blob_container",
",",
"custom_headers",
":",
"nil",
")",
"update_async",
"(",
"resource_group_name",
",",
"account_name",
",",
"container_name",
",",
"blob_container",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Updates container properties as specified in request body. Properties not
mentioned in the request will be unchanged. Update fails if the specified
container doesn't already exist.
@param resource_group_name [String] The name of the resource group within the
user's subscription. The name is case insensitive.
@param account_name [String] The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.
@param container_name [String] The name of the blob container within the
specified storage account. Blob container names must be between 3 and 63
characters in length and use numbers, lower-case letters and dash (-) only.
Every dash (-) character must be immediately preceded and followed by a
letter or number.
@param blob_container [BlobContainer] Properties to update for the blob
container.
@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. | [
"Updates",
"container",
"properties",
"as",
"specified",
"in",
"request",
"body",
".",
"Properties",
"not",
"mentioned",
"in",
"the",
"request",
"will",
"be",
"unchanged",
".",
"Update",
"fails",
"if",
"the",
"specified",
"container",
"doesn",
"t",
"already",
"exist",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_containers.rb#L333-L335 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_containers.rb | Azure::Storage::Mgmt::V2018_07_01.BlobContainers.get_with_http_info | def get_with_http_info(resource_group_name, account_name, container_name, custom_headers:nil)
get_async(resource_group_name, account_name, container_name, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, account_name, container_name, custom_headers:nil)
get_async(resource_group_name, account_name, container_name, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"account_name",
",",
"container_name",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"account_name",
",",
"container_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets properties of a specified container.
@param resource_group_name [String] The name of the resource group within the
user's subscription. The name is case insensitive.
@param account_name [String] The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.
@param container_name [String] The name of the blob container within the
specified storage account. Blob container names must be between 3 and 63
characters in length and use numbers, lower-case letters and dash (-) only.
Every dash (-) character must be immediately preceded and followed by a
letter or number.
@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. | [
"Gets",
"properties",
"of",
"a",
"specified",
"container",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_containers.rb#L471-L473 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_containers.rb | Azure::Storage::Mgmt::V2018_07_01.BlobContainers.delete_with_http_info | def delete_with_http_info(resource_group_name, account_name, container_name, custom_headers:nil)
delete_async(resource_group_name, account_name, container_name, custom_headers:custom_headers).value!
end | ruby | def delete_with_http_info(resource_group_name, account_name, container_name, custom_headers:nil)
delete_async(resource_group_name, account_name, container_name, custom_headers:custom_headers).value!
end | [
"def",
"delete_with_http_info",
"(",
"resource_group_name",
",",
"account_name",
",",
"container_name",
",",
"custom_headers",
":",
"nil",
")",
"delete_async",
"(",
"resource_group_name",
",",
"account_name",
",",
"container_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Deletes specified container under its account.
@param resource_group_name [String] The name of the resource group within the
user's subscription. The name is case insensitive.
@param account_name [String] The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.
@param container_name [String] The name of the blob container within the
specified storage account. Blob container names must be between 3 and 63
characters in length and use numbers, lower-case letters and dash (-) only.
Every dash (-) character must be immediately preceded and followed by a
letter or number.
@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. | [
"Deletes",
"specified",
"container",
"under",
"its",
"account",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_containers.rb#L596-L598 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_interfaces.rb | Azure::Network::Mgmt::V2015_05_01_preview.NetworkInterfaces.begin_delete | def begin_delete(resource_group_name, network_interface_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
nil
end | ruby | def begin_delete(resource_group_name, network_interface_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"begin_delete",
"(",
"resource_group_name",
",",
"network_interface_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"begin_delete_async",
"(",
"resource_group_name",
",",
"network_interface_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | The delete networkInterface operation deletes the specified networkInterface.
@param resource_group_name [String] The name of the resource group.
@param network_interface_name [String] The name of the network interface.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"The",
"delete",
"networkInterface",
"operation",
"deletes",
"the",
"specified",
"networkInterface",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_interfaces.rb#L696-L699 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_event_hub/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb | Azure::EventHub::Mgmt::V2018_01_01_preview.Namespaces.get_network_rule_set | def get_network_rule_set(resource_group_name, namespace_name, custom_headers:nil)
response = get_network_rule_set_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_network_rule_set(resource_group_name, namespace_name, custom_headers:nil)
response = get_network_rule_set_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_network_rule_set",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_network_rule_set_async",
"(",
"resource_group_name",
",",
"namespace_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets NetworkRuleSet for a Namespace.
@param resource_group_name [String] Name of the resource group within the
Azure subscription.
@param namespace_name [String] The Namespace name
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [NetworkRuleSet] operation results. | [
"Gets",
"NetworkRuleSet",
"for",
"a",
"Namespace",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_event_hub/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb#L1468-L1471 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb | Azure::Network::Mgmt::V2019_02_01.ExpressRouteCircuits.get_stats | def get_stats(resource_group_name, circuit_name, custom_headers:nil)
response = get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_stats(resource_group_name, circuit_name, custom_headers:nil)
response = get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_stats",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_stats_async",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets all the stats from an express route circuit in a resource group.
@param resource_group_name [String] The name of the resource group.
@param circuit_name [String] The name of the express route circuit.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [ExpressRouteCircuitStats] operation results. | [
"Gets",
"all",
"the",
"stats",
"from",
"an",
"express",
"route",
"circuit",
"in",
"a",
"resource",
"group",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb#L397-L400 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb | Azure::Network::Mgmt::V2019_02_01.ExpressRouteCircuits.begin_delete | def begin_delete(resource_group_name, circuit_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value!
nil
end | ruby | def begin_delete(resource_group_name, circuit_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"begin_delete",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"begin_delete_async",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | Deletes the specified express route circuit.
@param resource_group_name [String] The name of the resource group.
@param circuit_name [String] The name of the express route circuit.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"Deletes",
"the",
"specified",
"express",
"route",
"circuit",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb#L756-L759 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb | Azure::Network::Mgmt::V2019_02_01.ExpressRouteCircuits.begin_create_or_update_with_http_info | def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil)
begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value!
end | ruby | def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil)
begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value!
end | [
"def",
"begin_create_or_update_with_http_info",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"parameters",
",",
"custom_headers",
":",
"nil",
")",
"begin_create_or_update_async",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"parameters",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Creates or updates an express route circuit.
@param resource_group_name [String] The name of the resource group.
@param circuit_name [String] The name of the circuit.
@param parameters [ExpressRouteCircuit] Parameters supplied to the create or
update express route circuit operation.
@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. | [
"Creates",
"or",
"updates",
"an",
"express",
"route",
"circuit",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb#L857-L859 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb | Azure::Network::Mgmt::V2019_02_01.ExpressRouteCircuits.begin_update_tags_with_http_info | def begin_update_tags_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil)
begin_update_tags_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value!
end | ruby | def begin_update_tags_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil)
begin_update_tags_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value!
end | [
"def",
"begin_update_tags_with_http_info",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"parameters",
",",
"custom_headers",
":",
"nil",
")",
"begin_update_tags_async",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"parameters",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Updates an express route circuit tags.
@param resource_group_name [String] The name of the resource group.
@param circuit_name [String] The name of the circuit.
@param parameters [TagsObject] Parameters supplied to update express route
circuit tags.
@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. | [
"Updates",
"an",
"express",
"route",
"circuit",
"tags",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb#L973-L975 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb | Azure::Network::Mgmt::V2019_02_01.ExpressRouteCircuits.begin_list_routes_table_with_http_info | def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil)
begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value!
end | ruby | def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil)
begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value!
end | [
"def",
"begin_list_routes_table_with_http_info",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"peering_name",
",",
"device_path",
",",
"custom_headers",
":",
"nil",
")",
"begin_list_routes_table_async",
"(",
"resource_group_name",
",",
"circuit_name",
",",
"peering_name",
",",
"device_path",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets the currently advertised routes table associated with the express route
circuit in a resource group.
@param resource_group_name [String] The name of the resource group.
@param circuit_name [String] The name of the express route circuit.
@param peering_name [String] The name of the peering.
@param device_path [String] The path of the device.
@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. | [
"Gets",
"the",
"currently",
"advertised",
"routes",
"table",
"associated",
"with",
"the",
"express",
"route",
"circuit",
"in",
"a",
"resource",
"group",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb#L1184-L1186 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-08-01/generated/azure_mgmt_network/express_route_connections.rb | Azure::Network::Mgmt::V2018_08_01.ExpressRouteConnections.get_with_http_info | def get_with_http_info(resource_group_name, express_route_gateway_name, connection_name, custom_headers:nil)
get_async(resource_group_name, express_route_gateway_name, connection_name, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, express_route_gateway_name, connection_name, custom_headers:nil)
get_async(resource_group_name, express_route_gateway_name, connection_name, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"express_route_gateway_name",
",",
"connection_name",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"express_route_gateway_name",
",",
"connection_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets the specified ExpressRouteConnection.
@param resource_group_name [String] The name of the resource group.
@param express_route_gateway_name [String] The name of the ExpressRoute
gateway.
@param connection_name [String] The name of the ExpressRoute connection.
@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. | [
"Gets",
"the",
"specified",
"ExpressRouteConnection",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-08-01/generated/azure_mgmt_network/express_route_connections.rb#L104-L106 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_trigger_histories.rb | Azure::Logic::Mgmt::V2016_06_01.WorkflowTriggerHistories.get_with_http_info | def get_with_http_info(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil)
get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil)
get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"workflow_name",
",",
"trigger_name",
",",
"history_name",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"workflow_name",
",",
"trigger_name",
",",
"history_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets a workflow trigger history.
@param resource_group_name [String] The resource group name.
@param workflow_name [String] The workflow name.
@param trigger_name [String] The workflow trigger name.
@param history_name [String] The workflow trigger history name. Corresponds
to the run name for triggers that resulted in a run.
@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. | [
"Gets",
"a",
"workflow",
"trigger",
"history",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_trigger_histories.rb#L160-L162 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_cluster_manifest | def get_cluster_manifest(timeout:60, custom_headers:nil)
response = get_cluster_manifest_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_cluster_manifest(timeout:60, custom_headers:nil)
response = get_cluster_manifest_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_cluster_manifest",
"(",
"timeout",
":",
"60",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_cluster_manifest_async",
"(",
"timeout",
":",
"timeout",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Get the Service Fabric cluster manifest.
Get the Service Fabric cluster manifest. The cluster manifest contains
properties of the cluster that include different node types on the cluster,
security configurations, fault and upgrade domain topologies, etc.
These properties are specified as part of the ClusterConfig.JSON file while
deploying a stand alone cluster. However, most of the information in the
cluster manifest
is generated internally by service fabric during cluster deployment in other
deployment scenarios (e.g. when using azure portal).
The contents of the cluster manifest are for informational purposes only and
users are not expected to take a dependency on the format of the file
contents or its interpretation.
@param timeout [Integer] The server timeout for performing the operation in
seconds. This timeout specifies the time duration that the client is willing
to wait for the requested operation to complete. The default value for this
parameter is 60 seconds.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [ClusterManifest] operation results. | [
"Get",
"the",
"Service",
"Fabric",
"cluster",
"manifest",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L135-L138 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_cluster_upgrade_progress | def get_cluster_upgrade_progress(timeout:60, custom_headers:nil)
response = get_cluster_upgrade_progress_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_cluster_upgrade_progress(timeout:60, custom_headers:nil)
response = get_cluster_upgrade_progress_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_cluster_upgrade_progress",
"(",
"timeout",
":",
"60",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_cluster_upgrade_progress_async",
"(",
"timeout",
":",
"timeout",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets the progress of the current cluster upgrade.
Gets the current progress of the ongoing cluster upgrade. If no upgrade is
currently in progress, gets the last state of the previous cluster upgrade.
@param timeout [Integer] The server timeout for performing the operation in
seconds. This timeout specifies the time duration that the client is willing
to wait for the requested operation to complete. The default value for this
parameter is 60 seconds.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [ClusterUpgradeProgressObject] operation results. | [
"Gets",
"the",
"progress",
"of",
"the",
"current",
"cluster",
"upgrade",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L1802-L1805 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_cluster_configuration_upgrade_status | def get_cluster_configuration_upgrade_status(timeout:60, custom_headers:nil)
response = get_cluster_configuration_upgrade_status_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_cluster_configuration_upgrade_status(timeout:60, custom_headers:nil)
response = get_cluster_configuration_upgrade_status_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_cluster_configuration_upgrade_status",
"(",
"timeout",
":",
"60",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_cluster_configuration_upgrade_status_async",
"(",
"timeout",
":",
"timeout",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Get the cluster configuration upgrade status of a Service Fabric standalone
cluster.
Get the cluster configuration upgrade status details of a Service Fabric
standalone cluster.
@param timeout [Integer] The server timeout for performing the operation in
seconds. This timeout specifies the time duration that the client is willing
to wait for the requested operation to complete. The default value for this
parameter is 60 seconds.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [ClusterConfigurationUpgradeStatusInfo] operation results. | [
"Get",
"the",
"cluster",
"configuration",
"upgrade",
"status",
"of",
"a",
"Service",
"Fabric",
"standalone",
"cluster",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L2026-L2029 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_upgrade_orchestration_service_state | def get_upgrade_orchestration_service_state(timeout:60, custom_headers:nil)
response = get_upgrade_orchestration_service_state_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_upgrade_orchestration_service_state(timeout:60, custom_headers:nil)
response = get_upgrade_orchestration_service_state_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_upgrade_orchestration_service_state",
"(",
"timeout",
":",
"60",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_upgrade_orchestration_service_state_async",
"(",
"timeout",
":",
"timeout",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Get the service state of Service Fabric Upgrade Orchestration Service.
Get the service state of Service Fabric Upgrade Orchestration Service. This
API is internally used for support purposes.
@param timeout [Integer] The server timeout for performing the operation in
seconds. This timeout specifies the time duration that the client is willing
to wait for the requested operation to complete. The default value for this
parameter is 60 seconds.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [UpgradeOrchestrationServiceState] operation results. | [
"Get",
"the",
"service",
"state",
"of",
"Service",
"Fabric",
"Upgrade",
"Orchestration",
"Service",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L2133-L2136 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_aad_metadata | def get_aad_metadata(timeout:60, custom_headers:nil)
response = get_aad_metadata_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_aad_metadata(timeout:60, custom_headers:nil)
response = get_aad_metadata_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_aad_metadata",
"(",
"timeout",
":",
"60",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_aad_metadata_async",
"(",
"timeout",
":",
"timeout",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets the Azure Active Directory metadata used for secured connection to
cluster.
Gets the Azure Active Directory metadata used for secured connection to
cluster.
This API is not supposed to be called separately. It provides information
needed to set up an Azure Active Directory secured connection with a Service
Fabric cluster.
@param timeout [Integer] The server timeout for performing the operation in
seconds. This timeout specifies the time duration that the client is willing
to wait for the requested operation to complete. The default value for this
parameter is 60 seconds.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [AadMetadataObject] operation results. | [
"Gets",
"the",
"Azure",
"Active",
"Directory",
"metadata",
"used",
"for",
"secured",
"connection",
"to",
"cluster",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L3106-L3109 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.create_repair_task | def create_repair_task(repair_task, custom_headers:nil)
response = create_repair_task_async(repair_task, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def create_repair_task(repair_task, custom_headers:nil)
response = create_repair_task_async(repair_task, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"create_repair_task",
"(",
"repair_task",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"create_repair_task_async",
"(",
"repair_task",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Creates a new repair task.
For clusters that have the Repair Manager Service configured,
this API provides a way to create repair tasks that run automatically or
manually.
For repair tasks that run automatically, an appropriate repair executor
must be running for each repair action to run automatically.
These are currently only available in specially-configured Azure Cloud
Services.
To create a manual repair task, provide the set of impacted node names and
the
expected impact. When the state of the created repair task changes to
approved,
you can safely perform repair actions on those nodes.
This API supports the Service Fabric platform; it is not meant to be used
directly from your code.
@param repair_task [RepairTask] Describes the repair task to be created or
updated.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [RepairTaskUpdateInfo] operation results. | [
"Creates",
"a",
"new",
"repair",
"task",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L13643-L13646 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.cancel_repair_task | def cancel_repair_task(repair_task_cancel_description, custom_headers:nil)
response = cancel_repair_task_async(repair_task_cancel_description, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def cancel_repair_task(repair_task_cancel_description, custom_headers:nil)
response = cancel_repair_task_async(repair_task_cancel_description, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"cancel_repair_task",
"(",
"repair_task_cancel_description",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"cancel_repair_task_async",
"(",
"repair_task_cancel_description",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Requests the cancellation of the given repair task.
This API supports the Service Fabric platform; it is not meant to be used
directly from your code.
@param repair_task_cancel_description [RepairTaskCancelDescription] Describes
the repair task to be cancelled.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [RepairTaskUpdateInfo] operation results. | [
"Requests",
"the",
"cancellation",
"of",
"the",
"given",
"repair",
"task",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L13776-L13779 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.force_approve_repair_task | def force_approve_repair_task(repair_task_approve_description, custom_headers:nil)
response = force_approve_repair_task_async(repair_task_approve_description, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def force_approve_repair_task(repair_task_approve_description, custom_headers:nil)
response = force_approve_repair_task_async(repair_task_approve_description, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"force_approve_repair_task",
"(",
"repair_task_approve_description",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"force_approve_repair_task_async",
"(",
"repair_task_approve_description",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Forces the approval of the given repair task.
This API supports the Service Fabric platform; it is not meant to be used
directly from your code.
@param repair_task_approve_description [RepairTaskApproveDescription]
Describes the repair task to be approved.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [RepairTaskUpdateInfo] operation results. | [
"Forces",
"the",
"approval",
"of",
"the",
"given",
"repair",
"task",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L14118-L14121 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.update_repair_task_health_policy | def update_repair_task_health_policy(repair_task_update_health_policy_description, custom_headers:nil)
response = update_repair_task_health_policy_async(repair_task_update_health_policy_description, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def update_repair_task_health_policy(repair_task_update_health_policy_description, custom_headers:nil)
response = update_repair_task_health_policy_async(repair_task_update_health_policy_description, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"update_repair_task_health_policy",
"(",
"repair_task_update_health_policy_description",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"update_repair_task_health_policy_async",
"(",
"repair_task_update_health_policy_description",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Updates the health policy of the given repair task.
This API supports the Service Fabric platform; it is not meant to be used
directly from your code.
@param repair_task_update_health_policy_description
[RepairTaskUpdateHealthPolicyDescription] Describes the repair task healthy
policy to be updated.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [RepairTaskUpdateInfo] operation results. | [
"Updates",
"the",
"health",
"policy",
"of",
"the",
"given",
"repair",
"task",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L14224-L14227 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.update_repair_execution_state | def update_repair_execution_state(repair_task, custom_headers:nil)
response = update_repair_execution_state_async(repair_task, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def update_repair_execution_state(repair_task, custom_headers:nil)
response = update_repair_execution_state_async(repair_task, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"update_repair_execution_state",
"(",
"repair_task",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"update_repair_execution_state_async",
"(",
"repair_task",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Updates the execution state of a repair task.
This API supports the Service Fabric platform; it is not meant to be used
directly from your code.
@param repair_task [RepairTask] Describes the repair task to be created or
updated.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [RepairTaskUpdateInfo] operation results. | [
"Updates",
"the",
"execution",
"state",
"of",
"a",
"repair",
"task",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L14331-L14334 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_chaos | def get_chaos(timeout:60, custom_headers:nil)
response = get_chaos_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_chaos(timeout:60, custom_headers:nil)
response = get_chaos_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_chaos",
"(",
"timeout",
":",
"60",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_chaos_async",
"(",
"timeout",
":",
"timeout",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Get the status of Chaos.
Get the status of Chaos indicating whether or not Chaos is running, the Chaos
parameters used for running Chaos and the status of the Chaos Schedule.
@param timeout [Integer] The server timeout for performing the operation in
seconds. This timeout specifies the time duration that the client is willing
to wait for the requested operation to complete. The default value for this
parameter is 60 seconds.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Chaos] operation results. | [
"Get",
"the",
"status",
"of",
"Chaos",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L18423-L18426 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_chaos_schedule | def get_chaos_schedule(custom_headers:nil)
response = get_chaos_schedule_async(custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_chaos_schedule(custom_headers:nil)
response = get_chaos_schedule_async(custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_chaos_schedule",
"(",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_chaos_schedule_async",
"(",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Get the Chaos Schedule defining when and how to run Chaos.
Gets the version of the Chaos Schedule in use and the Chaos Schedule that
defines when and how to run Chaos.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [ChaosScheduleDescription] operation results. | [
"Get",
"the",
"Chaos",
"Schedule",
"defining",
"when",
"and",
"how",
"to",
"run",
"Chaos",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L18959-L18962 | train |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb | Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_image_store_root_content | def get_image_store_root_content(timeout:60, custom_headers:nil)
response = get_image_store_root_content_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_image_store_root_content(timeout:60, custom_headers:nil)
response = get_image_store_root_content_async(timeout:timeout, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_image_store_root_content",
"(",
"timeout",
":",
"60",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_image_store_root_content_async",
"(",
"timeout",
":",
"timeout",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets the content information at the root of the image store.
Returns the information about the image store content at the root of the
image store.
@param timeout [Integer] The server timeout for performing the operation in
seconds. This timeout specifies the time duration that the client is willing
to wait for the requested operation to complete. The default value for this
parameter is 60 seconds.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [ImageStoreContent] operation results. | [
"Gets",
"the",
"content",
"information",
"at",
"the",
"root",
"of",
"the",
"image",
"store",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L19516-L19519 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/registered_servers.rb | Azure::StorageSync::Mgmt::V2018_07_01.RegisteredServers.list_by_storage_sync_service | def list_by_storage_sync_service(resource_group_name, storage_sync_service_name, custom_headers:nil)
response = list_by_storage_sync_service_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def list_by_storage_sync_service(resource_group_name, storage_sync_service_name, custom_headers:nil)
response = list_by_storage_sync_service_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"list_by_storage_sync_service",
"(",
"resource_group_name",
",",
"storage_sync_service_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"list_by_storage_sync_service_async",
"(",
"resource_group_name",
",",
"storage_sync_service_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Get a given registered server list.
@param resource_group_name [String] The name of the resource group. The name
is case insensitive.
@param storage_sync_service_name [String] Name of Storage Sync Service
resource.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [RegisteredServerArray] operation results. | [
"Get",
"a",
"given",
"registered",
"server",
"list",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/registered_servers.rb#L36-L39 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/registered_servers.rb | Azure::StorageSync::Mgmt::V2018_07_01.RegisteredServers.get_with_http_info | def get_with_http_info(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
get_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
get_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"storage_sync_service_name",
",",
"server_id",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"storage_sync_service_name",
",",
"server_id",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Get a given registered server.
@param resource_group_name [String] The name of the resource group. The name
is case insensitive.
@param storage_sync_service_name [String] Name of Storage Sync Service
resource.
@param server_id [String] GUID identifying the on-premises server.
@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. | [
"Get",
"a",
"given",
"registered",
"server",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/registered_servers.rb#L158-L160 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb | Azure::StorSimple8000Series::Mgmt::V2017_06_01.BackupSchedules.begin_create_or_update | def begin_create_or_update(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:nil)
response = begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def begin_create_or_update(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:nil)
response = begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"begin_create_or_update",
"(",
"device_name",
",",
"backup_policy_name",
",",
"backup_schedule_name",
",",
"parameters",
",",
"resource_group_name",
",",
"manager_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"begin_create_or_update_async",
"(",
"device_name",
",",
"backup_policy_name",
",",
"backup_schedule_name",
",",
"parameters",
",",
"resource_group_name",
",",
"manager_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Creates or updates the backup schedule.
@param device_name [String] The device name
@param backup_policy_name [String] The backup policy name.
@param backup_schedule_name [String] The backup schedule name.
@param parameters [BackupSchedule] The backup schedule.
@param resource_group_name [String] The resource group name
@param manager_name [String] The manager name
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [BackupSchedule] operation results. | [
"Creates",
"or",
"updates",
"the",
"backup",
"schedule",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb#L343-L346 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/managed_instances.rb | Azure::SQL::Mgmt::V2015_05_01_preview.ManagedInstances.begin_delete | def begin_delete(resource_group_name, managed_instance_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, managed_instance_name, custom_headers:custom_headers).value!
nil
end | ruby | def begin_delete(resource_group_name, managed_instance_name, custom_headers:nil)
response = begin_delete_async(resource_group_name, managed_instance_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"begin_delete",
"(",
"resource_group_name",
",",
"managed_instance_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"begin_delete_async",
"(",
"resource_group_name",
",",
"managed_instance_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | Deletes a managed instance.
@param resource_group_name [String] The name of the resource group that
contains the resource. You can obtain this value from the Azure Resource
Manager API or the portal.
@param managed_instance_name [String] The name of the managed instance.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"Deletes",
"a",
"managed",
"instance",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/managed_instances.rb#L676-L679 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb | Azure::ContainerRegistry::Mgmt::V2017_06_01_preview.Webhooks.get_with_http_info | def get_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil)
get_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil)
get_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"registry_name",
",",
"webhook_name",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"registry_name",
",",
"webhook_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets the properties of the specified webhook.
@param resource_group_name [String] The name of the resource group to which
the container registry belongs.
@param registry_name [String] The name of the container registry.
@param webhook_name [String] The name of the webhook.
@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. | [
"Gets",
"the",
"properties",
"of",
"the",
"specified",
"webhook",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb#L53-L55 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb | Azure::ContainerRegistry::Mgmt::V2017_06_01_preview.Webhooks.list | def list(resource_group_name, registry_name, custom_headers:nil)
first_page = list_as_lazy(resource_group_name, registry_name, custom_headers:custom_headers)
first_page.get_all_items
end | ruby | def list(resource_group_name, registry_name, custom_headers:nil)
first_page = list_as_lazy(resource_group_name, registry_name, custom_headers:custom_headers)
first_page.get_all_items
end | [
"def",
"list",
"(",
"resource_group_name",
",",
"registry_name",
",",
"custom_headers",
":",
"nil",
")",
"first_page",
"=",
"list_as_lazy",
"(",
"resource_group_name",
",",
"registry_name",
",",
"custom_headers",
":custom_headers",
")",
"first_page",
".",
"get_all_items",
"end"
] | Lists all the webhooks for the specified container registry.
@param resource_group_name [String] The name of the resource group to which
the container registry belongs.
@param registry_name [String] The name of the container registry.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Array<Webhook>] operation results. | [
"Lists",
"all",
"the",
"webhooks",
"for",
"the",
"specified",
"container",
"registry",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb#L282-L285 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb | Azure::ContainerRegistry::Mgmt::V2017_06_01_preview.Webhooks.begin_delete_with_http_info | def begin_delete_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil)
begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value!
end | ruby | def begin_delete_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil)
begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value!
end | [
"def",
"begin_delete_with_http_info",
"(",
"resource_group_name",
",",
"registry_name",
",",
"webhook_name",
",",
"custom_headers",
":",
"nil",
")",
"begin_delete_async",
"(",
"resource_group_name",
",",
"registry_name",
",",
"webhook_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Deletes a webhook from a container registry.
@param resource_group_name [String] The name of the resource group to which
the container registry belongs.
@param registry_name [String] The name of the container registry.
@param webhook_name [String] The name of the webhook.
@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. | [
"Deletes",
"a",
"webhook",
"from",
"a",
"container",
"registry",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb#L841-L843 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-01-01/generated/azure_mgmt_network/inbound_nat_rules.rb | Azure::Network::Mgmt::V2018_01_01.InboundNatRules.list | def list(resource_group_name, load_balancer_name, custom_headers:nil)
first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers:custom_headers)
first_page.get_all_items
end | ruby | def list(resource_group_name, load_balancer_name, custom_headers:nil)
first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers:custom_headers)
first_page.get_all_items
end | [
"def",
"list",
"(",
"resource_group_name",
",",
"load_balancer_name",
",",
"custom_headers",
":",
"nil",
")",
"first_page",
"=",
"list_as_lazy",
"(",
"resource_group_name",
",",
"load_balancer_name",
",",
"custom_headers",
":custom_headers",
")",
"first_page",
".",
"get_all_items",
"end"
] | Gets all the inbound nat rules in a load balancer.
@param resource_group_name [String] The name of the resource group.
@param load_balancer_name [String] The name of the load balancer.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Array<InboundNatRule>] operation results. | [
"Gets",
"all",
"the",
"inbound",
"nat",
"rules",
"in",
"a",
"load",
"balancer",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-01-01/generated/azure_mgmt_network/inbound_nat_rules.rb#L34-L37 | train |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-01-01/generated/azure_mgmt_network/inbound_nat_rules.rb | Azure::Network::Mgmt::V2018_01_01.InboundNatRules.get_with_http_info | def get_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand:nil, custom_headers:nil)
get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand:expand, custom_headers:custom_headers).value!
end | ruby | def get_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand:nil, custom_headers:nil)
get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand:expand, custom_headers:custom_headers).value!
end | [
"def",
"get_with_http_info",
"(",
"resource_group_name",
",",
"load_balancer_name",
",",
"inbound_nat_rule_name",
",",
"expand",
":",
"nil",
",",
"custom_headers",
":",
"nil",
")",
"get_async",
"(",
"resource_group_name",
",",
"load_balancer_name",
",",
"inbound_nat_rule_name",
",",
"expand",
":",
"expand",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"end"
] | Gets the specified load balancer inbound nat rule.
@param resource_group_name [String] The name of the resource group.
@param load_balancer_name [String] The name of the load balancer.
@param inbound_nat_rule_name [String] The name of the inbound nat rule.
@param expand [String] Expands referenced resources.
@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. | [
"Gets",
"the",
"specified",
"load",
"balancer",
"inbound",
"nat",
"rule",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-01-01/generated/azure_mgmt_network/inbound_nat_rules.rb#L185-L187 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.delete_key | def delete_key(vault_base_url, key_name, custom_headers:nil)
response = delete_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def delete_key(vault_base_url, key_name, custom_headers:nil)
response = delete_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"delete_key",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"delete_key_async",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Deletes a key of any type from storage in Azure Key Vault.
The delete key operation cannot be used to remove individual versions of a
key. This operation removes the cryptographic material associated with the
key, which means the key is not usable for Sign/Verify, Wrap/Unwrap or
Encrypt/Decrypt operations. This operation requires the keys/delete
permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param key_name [String] The name of the key to delete.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [DeletedKeyBundle] operation results. | [
"Deletes",
"a",
"key",
"of",
"any",
"type",
"from",
"storage",
"in",
"Azure",
"Key",
"Vault",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L441-L444 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.backup_key | def backup_key(vault_base_url, key_name, custom_headers:nil)
response = backup_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def backup_key(vault_base_url, key_name, custom_headers:nil)
response = backup_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"backup_key",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"backup_key_async",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Requests that a backup of the specified key be downloaded to the client.
The Key Backup operation exports a key from Azure Key Vault in a protected
form. Note that this operation does NOT return key material in a form that
can be used outside the Azure Key Vault system, the returned key material is
either protected to a Azure Key Vault HSM or to Azure Key Vault itself. The
intent of this operation is to allow a client to GENERATE a key in one Azure
Key Vault instance, BACKUP the key, and then RESTORE it into another Azure
Key Vault instance. The BACKUP operation may be used to export, in protected
form, any key type from Azure Key Vault. Individual versions of a key cannot
be backed up. BACKUP / RESTORE can be performed within geographical
boundaries only; meaning that a BACKUP from one geographical area cannot be
restored to another geographical area. For example, a backup from the US
geographical area cannot be restored in an EU geographical area. This
operation requires the key/backup permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param key_name [String] The name of the key.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [BackupKeyResult] operation results. | [
"Requests",
"that",
"a",
"backup",
"of",
"the",
"specified",
"key",
"be",
"downloaded",
"to",
"the",
"client",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L1046-L1049 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.restore_key | def restore_key(vault_base_url, key_bundle_backup, custom_headers:nil)
response = restore_key_async(vault_base_url, key_bundle_backup, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def restore_key(vault_base_url, key_bundle_backup, custom_headers:nil)
response = restore_key_async(vault_base_url, key_bundle_backup, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"restore_key",
"(",
"vault_base_url",
",",
"key_bundle_backup",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"restore_key_async",
"(",
"vault_base_url",
",",
"key_bundle_backup",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Restores a backed up key to a vault.
Imports a previously backed up key into Azure Key Vault, restoring the key,
its key identifier, attributes and access control policies. The RESTORE
operation may be used to import a previously backed up key. Individual
versions of a key cannot be restored. The key is restored in its entirety
with the same key name as it had when it was backed up. If the key name is
not available in the target Key Vault, the RESTORE operation will be
rejected. While the key name is retained during restore, the final key
identifier will change if the key is restored to a different vault. Restore
will restore all versions and preserve version identifiers. The RESTORE
operation is subject to security constraints: The target Key Vault must be
owned by the same Microsoft Azure Subscription as the source Key Vault The
user must have RESTORE permission in the target Key Vault. This operation
requires the keys/restore permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param key_bundle_backup The backup blob associated with a key bundle.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [KeyBundle] operation results. | [
"Restores",
"a",
"backed",
"up",
"key",
"to",
"a",
"vault",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L1183-L1186 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.get_deleted_key | def get_deleted_key(vault_base_url, key_name, custom_headers:nil)
response = get_deleted_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_deleted_key(vault_base_url, key_name, custom_headers:nil)
response = get_deleted_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_deleted_key",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_deleted_key_async",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets the public part of a deleted key.
The Get Deleted Key operation is applicable for soft-delete enabled vaults.
While the operation can be invoked on any vault, it will return an error if
invoked on a non soft-delete enabled vault. This operation requires the
keys/get permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param key_name [String] The name of the key.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [DeletedKeyBundle] operation results. | [
"Gets",
"the",
"public",
"part",
"of",
"a",
"deleted",
"key",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L2339-L2342 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.purge_deleted_key | def purge_deleted_key(vault_base_url, key_name, custom_headers:nil)
response = purge_deleted_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
nil
end | ruby | def purge_deleted_key(vault_base_url, key_name, custom_headers:nil)
response = purge_deleted_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"purge_deleted_key",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"purge_deleted_key_async",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | Permanently deletes the specified key.
The Purge Deleted Key operation is applicable for soft-delete enabled vaults.
While the operation can be invoked on any vault, it will return an error if
invoked on a non soft-delete enabled vault. This operation requires the
keys/purge permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param key_name [String] The name of the key
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"Permanently",
"deletes",
"the",
"specified",
"key",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L2448-L2451 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.recover_deleted_key | def recover_deleted_key(vault_base_url, key_name, custom_headers:nil)
response = recover_deleted_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def recover_deleted_key(vault_base_url, key_name, custom_headers:nil)
response = recover_deleted_key_async(vault_base_url, key_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"recover_deleted_key",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"recover_deleted_key_async",
"(",
"vault_base_url",
",",
"key_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Recovers the deleted key to its latest version.
The Recover Deleted Key operation is applicable for deleted keys in
soft-delete enabled vaults. It recovers the deleted key back to its latest
version under /keys. An attempt to recover an non-deleted key will return an
error. Consider this the inverse of the delete operation on soft-delete
enabled vaults. This operation requires the keys/recover permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param key_name [String] The name of the deleted key.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [KeyBundle] operation results. | [
"Recovers",
"the",
"deleted",
"key",
"to",
"its",
"latest",
"version",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L2549-L2552 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.delete_secret | def delete_secret(vault_base_url, secret_name, custom_headers:nil)
response = delete_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def delete_secret(vault_base_url, secret_name, custom_headers:nil)
response = delete_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"delete_secret",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"delete_secret_async",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Deletes a secret from a specified key vault.
The DELETE operation applies to any secret stored in Azure Key Vault. DELETE
cannot be applied to an individual version of a secret. This operation
requires the secrets/delete permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param secret_name [String] The name of the secret.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [DeletedSecretBundle] operation results. | [
"Deletes",
"a",
"secret",
"from",
"a",
"specified",
"key",
"vault",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L2798-L2801 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.get_deleted_secret | def get_deleted_secret(vault_base_url, secret_name, custom_headers:nil)
response = get_deleted_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_deleted_secret(vault_base_url, secret_name, custom_headers:nil)
response = get_deleted_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_deleted_secret",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_deleted_secret_async",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets the specified deleted secret.
The Get Deleted Secret operation returns the specified deleted secret along
with its attributes. This operation requires the secrets/get permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param secret_name [String] The name of the secret.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [DeletedSecretBundle] operation results. | [
"Gets",
"the",
"specified",
"deleted",
"secret",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L3492-L3495 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.purge_deleted_secret | def purge_deleted_secret(vault_base_url, secret_name, custom_headers:nil)
response = purge_deleted_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
nil
end | ruby | def purge_deleted_secret(vault_base_url, secret_name, custom_headers:nil)
response = purge_deleted_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"purge_deleted_secret",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"purge_deleted_secret_async",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | Permanently deletes the specified secret.
The purge deleted secret operation removes the secret permanently, without
the possibility of recovery. This operation can only be enabled on a
soft-delete enabled vault. This operation requires the secrets/purge
permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param secret_name [String] The name of the secret.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"Permanently",
"deletes",
"the",
"specified",
"secret",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L3597-L3600 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.recover_deleted_secret | def recover_deleted_secret(vault_base_url, secret_name, custom_headers:nil)
response = recover_deleted_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def recover_deleted_secret(vault_base_url, secret_name, custom_headers:nil)
response = recover_deleted_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"recover_deleted_secret",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"recover_deleted_secret_async",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Recovers the deleted secret to the latest version.
Recovers the deleted secret in the specified vault. This operation can only
be performed on a soft-delete enabled vault. This operation requires the
secrets/recover permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param secret_name [String] The name of the deleted secret.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [SecretBundle] operation results. | [
"Recovers",
"the",
"deleted",
"secret",
"to",
"the",
"latest",
"version",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L3696-L3699 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.backup_secret | def backup_secret(vault_base_url, secret_name, custom_headers:nil)
response = backup_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def backup_secret(vault_base_url, secret_name, custom_headers:nil)
response = backup_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"backup_secret",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"backup_secret_async",
"(",
"vault_base_url",
",",
"secret_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Backs up the specified secret.
Requests that a backup of the specified secret be downloaded to the client.
All versions of the secret will be downloaded. This operation requires the
secrets/backup permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param secret_name [String] The name of the secret.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [BackupSecretResult] operation results. | [
"Backs",
"up",
"the",
"specified",
"secret",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L3803-L3806 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.restore_secret | def restore_secret(vault_base_url, secret_bundle_backup, custom_headers:nil)
response = restore_secret_async(vault_base_url, secret_bundle_backup, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def restore_secret(vault_base_url, secret_bundle_backup, custom_headers:nil)
response = restore_secret_async(vault_base_url, secret_bundle_backup, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"restore_secret",
"(",
"vault_base_url",
",",
"secret_bundle_backup",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"restore_secret_async",
"(",
"vault_base_url",
",",
"secret_bundle_backup",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Restores a backed up secret to a vault.
Restores a backed up secret, and all its versions, to a vault. This operation
requires the secrets/restore permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param secret_bundle_backup The backup blob associated with a secret bundle.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [SecretBundle] operation results. | [
"Restores",
"a",
"backed",
"up",
"secret",
"to",
"a",
"vault",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L3909-L3912 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.delete_certificate | def delete_certificate(vault_base_url, certificate_name, custom_headers:nil)
response = delete_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def delete_certificate(vault_base_url, certificate_name, custom_headers:nil)
response = delete_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"delete_certificate",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"delete_certificate_async",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Deletes a certificate from a specified key vault.
Deletes all versions of a certificate object along with its associated
policy. Delete certificate cannot be used to remove individual versions of a
certificate object. This operation requires the certificates/delete
permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param certificate_name [String] The name of the certificate.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [DeletedCertificateBundle] operation results. | [
"Deletes",
"a",
"certificate",
"from",
"a",
"specified",
"key",
"vault",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L4135-L4138 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.set_certificate_contacts | def set_certificate_contacts(vault_base_url, contacts, custom_headers:nil)
response = set_certificate_contacts_async(vault_base_url, contacts, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def set_certificate_contacts(vault_base_url, contacts, custom_headers:nil)
response = set_certificate_contacts_async(vault_base_url, contacts, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"set_certificate_contacts",
"(",
"vault_base_url",
",",
"contacts",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"set_certificate_contacts_async",
"(",
"vault_base_url",
",",
"contacts",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Sets the certificate contacts for the specified key vault.
Sets the certificate contacts for the specified key vault. This operation
requires the certificates/managecontacts permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param contacts [Contacts] The contacts for the key vault certificate.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Contacts] operation results. | [
"Sets",
"the",
"certificate",
"contacts",
"for",
"the",
"specified",
"key",
"vault",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L4243-L4246 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.get_certificate_contacts | def get_certificate_contacts(vault_base_url, custom_headers:nil)
response = get_certificate_contacts_async(vault_base_url, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_certificate_contacts(vault_base_url, custom_headers:nil)
response = get_certificate_contacts_async(vault_base_url, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_certificate_contacts",
"(",
"vault_base_url",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_certificate_contacts_async",
"(",
"vault_base_url",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Lists the certificate contacts for a specified key vault.
The GetCertificateContacts operation returns the set of certificate contact
resources in the specified key vault. This operation requires the
certificates/managecontacts permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Contacts] operation results. | [
"Lists",
"the",
"certificate",
"contacts",
"for",
"a",
"specified",
"key",
"vault",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L4353-L4356 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.delete_certificate_contacts | def delete_certificate_contacts(vault_base_url, custom_headers:nil)
response = delete_certificate_contacts_async(vault_base_url, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def delete_certificate_contacts(vault_base_url, custom_headers:nil)
response = delete_certificate_contacts_async(vault_base_url, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"delete_certificate_contacts",
"(",
"vault_base_url",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"delete_certificate_contacts_async",
"(",
"vault_base_url",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Deletes the certificate contacts for a specified key vault.
Deletes the certificate contacts for a specified key vault certificate. This
operation requires the certificates/managecontacts permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [Contacts] operation results. | [
"Deletes",
"the",
"certificate",
"contacts",
"for",
"a",
"specified",
"key",
"vault",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L4454-L4457 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.get_certificate_issuer | def get_certificate_issuer(vault_base_url, issuer_name, custom_headers:nil)
response = get_certificate_issuer_async(vault_base_url, issuer_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_certificate_issuer(vault_base_url, issuer_name, custom_headers:nil)
response = get_certificate_issuer_async(vault_base_url, issuer_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_certificate_issuer",
"(",
"vault_base_url",
",",
"issuer_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_certificate_issuer_async",
"(",
"vault_base_url",
",",
"issuer_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Lists the specified certificate issuer.
The GetCertificateIssuer operation returns the specified certificate issuer
resources in the specified key vault. This operation requires the
certificates/manageissuers/getissuers permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param issuer_name [String] The name of the issuer.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [IssuerBundle] operation results. | [
"Lists",
"the",
"specified",
"certificate",
"issuer",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L4941-L4944 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.delete_certificate_issuer | def delete_certificate_issuer(vault_base_url, issuer_name, custom_headers:nil)
response = delete_certificate_issuer_async(vault_base_url, issuer_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def delete_certificate_issuer(vault_base_url, issuer_name, custom_headers:nil)
response = delete_certificate_issuer_async(vault_base_url, issuer_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"delete_certificate_issuer",
"(",
"vault_base_url",
",",
"issuer_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"delete_certificate_issuer_async",
"(",
"vault_base_url",
",",
"issuer_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Deletes the specified certificate issuer.
The DeleteCertificateIssuer operation permanently removes the specified
certificate issuer from the vault. This operation requires the
certificates/manageissuers/deleteissuers permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param issuer_name [String] The name of the issuer.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [IssuerBundle] operation results. | [
"Deletes",
"the",
"specified",
"certificate",
"issuer",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L5048-L5051 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.get_certificate_policy | def get_certificate_policy(vault_base_url, certificate_name, custom_headers:nil)
response = get_certificate_policy_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_certificate_policy(vault_base_url, certificate_name, custom_headers:nil)
response = get_certificate_policy_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_certificate_policy",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_certificate_policy_async",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Lists the policy for a certificate.
The GetCertificatePolicy operation returns the specified certificate policy
resources in the specified key vault. This operation requires the
certificates/get permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param certificate_name [String] The name of the certificate in a given key
vault.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [CertificatePolicy] operation results. | [
"Lists",
"the",
"policy",
"for",
"a",
"certificate",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L5570-L5573 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.get_certificate_operation | def get_certificate_operation(vault_base_url, certificate_name, custom_headers:nil)
response = get_certificate_operation_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_certificate_operation(vault_base_url, certificate_name, custom_headers:nil)
response = get_certificate_operation_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_certificate_operation",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_certificate_operation_async",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Gets the creation operation of a certificate.
Gets the creation operation associated with a specified certificate. This
operation requires the certificates/get permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param certificate_name [String] The name of the certificate.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [CertificateOperation] operation results. | [
"Gets",
"the",
"creation",
"operation",
"of",
"a",
"certificate",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L6174-L6177 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.delete_certificate_operation | def delete_certificate_operation(vault_base_url, certificate_name, custom_headers:nil)
response = delete_certificate_operation_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def delete_certificate_operation(vault_base_url, certificate_name, custom_headers:nil)
response = delete_certificate_operation_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"delete_certificate_operation",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"delete_certificate_operation_async",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Deletes the creation operation for a specific certificate.
Deletes the creation operation for a specified certificate that is in the
process of being created. The certificate is no longer created. This
operation requires the certificates/update permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param certificate_name [String] The name of the certificate.
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [CertificateOperation] operation results. | [
"Deletes",
"the",
"creation",
"operation",
"for",
"a",
"specific",
"certificate",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L6279-L6282 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.get_deleted_certificate | def get_deleted_certificate(vault_base_url, certificate_name, custom_headers:nil)
response = get_deleted_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | ruby | def get_deleted_certificate(vault_base_url, certificate_name, custom_headers:nil)
response = get_deleted_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
response.body unless response.nil?
end | [
"def",
"get_deleted_certificate",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"get_deleted_certificate_async",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"response",
".",
"body",
"unless",
"response",
".",
"nil?",
"end"
] | Retrieves information about the specified deleted certificate.
The GetDeletedCertificate operation retrieves the deleted certificate
information plus its attributes, such as retention interval, scheduled
permanent deletion and the current deletion recovery level. This operation
requires the certificates/get permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param certificate_name [String] The name of the certificate
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request.
@return [DeletedCertificateBundle] operation results. | [
"Retrieves",
"information",
"about",
"the",
"specified",
"deleted",
"certificate",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L6648-L6651 | train |
Azure/azure-sdk-for-ruby | data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb | Azure::KeyVault::V2016_10_01.KeyVaultClient.purge_deleted_certificate | def purge_deleted_certificate(vault_base_url, certificate_name, custom_headers:nil)
response = purge_deleted_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
nil
end | ruby | def purge_deleted_certificate(vault_base_url, certificate_name, custom_headers:nil)
response = purge_deleted_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
nil
end | [
"def",
"purge_deleted_certificate",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":",
"nil",
")",
"response",
"=",
"purge_deleted_certificate_async",
"(",
"vault_base_url",
",",
"certificate_name",
",",
"custom_headers",
":custom_headers",
")",
".",
"value!",
"nil",
"end"
] | Permanently deletes the specified deleted certificate.
The PurgeDeletedCertificate operation performs an irreversible deletion of
the specified certificate, without possibility for recovery. The operation is
not available if the recovery level does not specify 'Purgeable'. This
operation requires the certificate/purge permission.
@param vault_base_url [String] The vault name, for example
https://myvault.vault.azure.net.
@param certificate_name [String] The name of the certificate
@param custom_headers [Hash{String => String}] A hash of custom headers that
will be added to the HTTP request. | [
"Permanently",
"deletes",
"the",
"specified",
"deleted",
"certificate",
"."
] | 78eedacf8f8cbd65c2d8a2af421405eaa4373d8e | https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L6757-L6760 | train |
Subsets and Splits