Class: Azure::ARM::Web::WebSiteManagementClient

Inherits:
MsRestAzure::AzureServiceClient
  • Object
show all
Includes:
Models, MsRestAzure
Defined in:
lib/azure_mgmt_web/web_site_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) ⇒ WebSiteManagementClient

Creates initializes a new instance of the WebSiteManagementClient 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.



95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 95

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

  @certificate_orders = CertificateOrders.new(self)
  @certificates = Certificates.new(self)
  @classic_mobile_services = ClassicMobileServices.new(self)
  @domains = Domains.new(self)
  @global = Global.new(self)
  @global_certificate_order = GlobalCertificateOrder.new(self)
  @global_domain_registration = GlobalDomainRegistration.new(self)
  @global_resource_groups = GlobalResourceGroups.new(self)
  @hosting_environments = HostingEnvironments.new(self)
  @managed_hosting_environments = ManagedHostingEnvironments.new(self)
  @provider = Provider.new(self)
  @recommendations = Recommendations.new(self)
  @server_farms = ServerFarms.new(self)
  @sites = Sites.new(self)
  @top_level_domains = TopLevelDomains.new(self)
  @usage_operations = UsageOperations.new(self)
  @api_version = '2015-08-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.



27
28
29
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 27

def accept_language
  @accept_language
end

#api_versionString (readonly)

Returns API Version.

Returns:

  • (String)

    API Version



24
25
26
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 24

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_web/web_site_management_client.rb', line 15

def base_url
  @base_url
end

#certificate_ordersObject (readonly)

Returns certificate_orders.

Returns:

  • certificate_orders



42
43
44
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 42

def certificate_orders
  @certificate_orders
end

#certificatesObject (readonly)

Returns certificates.

Returns:

  • certificates



45
46
47
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 45

def certificates
  @certificates
end

#classic_mobile_servicesObject (readonly)

Returns classic_mobile_services.

Returns:

  • classic_mobile_services



48
49
50
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 48

def classic_mobile_services
  @classic_mobile_services
end

#credentialsObject

subscription.

Returns:

  • Subscription credentials which uniquely identify client



18
19
20
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 18

def credentials
  @credentials
end

#domainsObject (readonly)

Returns domains.

Returns:

  • domains



51
52
53
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 51

def domains
  @domains
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



35
36
37
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 35

def generate_client_request_id
  @generate_client_request_id
end

#globalObject (readonly)

Returns global.

Returns:

  • global



54
55
56
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 54

def global
  @global
end

#global_certificate_orderObject (readonly)

Returns global_certificate_order.

Returns:

  • global_certificate_order



57
58
59
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 57

def global_certificate_order
  @global_certificate_order
end

#global_domain_registrationObject (readonly)

Returns global_domain_registration.

Returns:

  • global_domain_registration



60
61
62
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 60

def global_domain_registration
  @global_domain_registration
end

#global_resource_groupsObject (readonly)

Returns global_resource_groups.

Returns:

  • global_resource_groups



63
64
65
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 63

def global_resource_groups
  @global_resource_groups
end

#hosting_environmentsObject (readonly)

Returns hosting_environments.

Returns:

  • hosting_environments



66
67
68
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 66

def hosting_environments
  @hosting_environments
end

#long_running_operation_retry_timeoutInteger

Running Operations. Default value is 30.

Returns:

  • (Integer)

    Gets or sets the retry timeout in seconds for Long



31
32
33
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 31

def long_running_operation_retry_timeout
  @long_running_operation_retry_timeout
end

#managed_hosting_environmentsObject (readonly)

Returns managed_hosting_environments.

Returns:

  • managed_hosting_environments



69
70
71
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 69

def managed_hosting_environments
  @managed_hosting_environments
end

#providerObject (readonly)

Returns provider.

Returns:

  • provider



72
73
74
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 72

def provider
  @provider
end

#recommendationsObject (readonly)

Returns recommendations.

Returns:

  • recommendations



75
76
77
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 75

def recommendations
  @recommendations
end

#server_farmsObject (readonly)

Returns server_farms.

Returns:

  • server_farms



78
79
80
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 78

def server_farms
  @server_farms
end

#sitesObject (readonly)

Returns sites.

Returns:

  • sites



81
82
83
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 81

def sites
  @sites
end

#subscription_idString

Returns Subscription Id.

Returns:

  • (String)

    Subscription Id



21
22
23
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 21

def subscription_id
  @subscription_id
end

#top_level_domainsObject (readonly)

Returns top_level_domains.

Returns:

  • top_level_domains



84
85
86
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 84

def top_level_domains
  @top_level_domains
end

#usage_operationsObject (readonly)

Returns usage_operations.

Returns:

  • usage_operations



87
88
89
# File 'lib/azure_mgmt_web/web_site_management_client.rb', line 87

def usage_operations
  @usage_operations
end