Class: Azure::ARM::CDN::CdnManagementClient

Inherits:
MsRestAzure::AzureServiceClient
  • Object
show all
Includes:
Models, MsRestAzure
Defined in:
lib/azure_mgmt_cdn/cdn_management_client.rb

Overview

A service client - single point of access to the REST API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credentials, base_url = nil, options = nil) ⇒ CdnManagementClient

Creates initializes a new instance of the CdnManagementClient class.

Parameters:

  • credentials (MsRest::ServiceClientCredentials)

    credentials to authorize HTTP requests made by the service client.

  • base_url (String) (defaults to: nil)

    the base URI of the service.

  • options (Array) (defaults to: nil)

    filters to be applied to the HTTP requests.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 66

def initialize(credentials, base_url = nil, options = nil)
  super(credentials, options)
  @base_url = base_url || 'https://management.azure.com'

  fail ArgumentError, 'credentials is nil' if credentials.nil?
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
  @credentials = credentials

  @profiles = Profiles.new(self)
  @endpoints = Endpoints.new(self)
  @origins = Origins.new(self)
  @custom_domains = CustomDomains.new(self)
  @name_availability = NameAvailability.new(self)
  @operations = Operations.new(self)
  @api_version = '2015-06-01'
  @accept_language = 'en-US'
  @long_running_operation_retry_timeout = 30
  @generate_client_request_id = true
end

Instance Attribute Details

#accept_languageString

Returns Gets or sets the preferred language for the response.

Returns:

  • (String)

    Gets or sets the preferred language for the response.



28
29
30
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 28

def accept_language
  @accept_language
end

#api_versionString (readonly)

current version is 2015-06-01

Returns:

  • (String)

    Version of the API to be used with the client request,



25
26
27
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 25

def api_version
  @api_version
end

#base_urlString

Returns the base URI of the service.

Returns:

  • (String)

    the base URI of the service.



15
16
17
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 15

def base_url
  @base_url
end

#credentialsObject

subscription.

Returns:

  • Subscription credentials which uniquely identify client



18
19
20
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 18

def credentials
  @credentials
end

#custom_domainsObject (readonly)

Returns custom_domains.

Returns:

  • custom_domains



52
53
54
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 52

def custom_domains
  @custom_domains
end

#endpointsObject (readonly)

Returns endpoints.

Returns:

  • endpoints



46
47
48
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 46

def endpoints
  @endpoints
end

#generate_client_request_idBoolean

is generated and included in each request. Default is true.

Returns:

  • (Boolean)

    When set to true a unique x-ms-client-request-id value



36
37
38
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 36

def generate_client_request_id
  @generate_client_request_id
end

#long_running_operation_retry_timeoutInteger

Running Operations. Default value is 30.

Returns:

  • (Integer)

    Gets or sets the retry timeout in seconds for Long



32
33
34
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 32

def long_running_operation_retry_timeout
  @long_running_operation_retry_timeout
end

#name_availabilityObject (readonly)

Returns name_availability.

Returns:

  • name_availability



55
56
57
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 55

def name_availability
  @name_availability
end

#operationsObject (readonly)

Returns operations.

Returns:

  • operations



58
59
60
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 58

def operations
  @operations
end

#originsObject (readonly)

Returns origins.

Returns:

  • origins



49
50
51
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 49

def origins
  @origins
end

#profilesObject (readonly)

Returns profiles.

Returns:

  • profiles



43
44
45
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 43

def profiles
  @profiles
end

#subscription_idString

Returns Azure Subscription ID.

Returns:

  • (String)

    Azure Subscription ID



21
22
23
# File 'lib/azure_mgmt_cdn/cdn_management_client.rb', line 21

def subscription_id
  @subscription_id
end