Class: Azure::ARM::Graph::GraphRbacManagementClient

Inherits:
MsRestAzure::AzureServiceClient
  • Object
show all
Includes:
MsRest::Serialization, MsRestAzure
Defined in:
lib/generated/azure_mgmt_graph/graph_rbac_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) ⇒ GraphRbacManagementClient

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



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 62

def initialize(credentials, base_url = nil, options = nil)
  super(credentials, options)
  @base_url = base_url || 'https://graph.windows.net'

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

  @objects = Objects.new(self)
  @applications = Applications.new(self)
  @groups = Groups.new(self)
  @service_principals = ServicePrincipals.new(self)
  @users = Users.new(self)
  @api_version = '1.6'
  @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/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 27

def accept_language
  @accept_language
end

#api_versionString (readonly)

Returns Client Api Version.

Returns:

  • (String)

    Client Api Version.



21
22
23
# File 'lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 21

def api_version
  @api_version
end

#applicationsApplications (readonly)

Returns applications.

Returns:



45
46
47
# File 'lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 45

def applications
  @applications
end

#base_urlString

Returns the base URI of the service.

Returns:

  • (String)

    the base URI of the service.



15
16
17
# File 'lib/generated/azure_mgmt_graph/graph_rbac_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/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 18

def credentials
  @credentials
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/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 35

def generate_client_request_id
  @generate_client_request_id
end

#groupsGroups (readonly)

Returns groups.

Returns:



48
49
50
# File 'lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 48

def groups
  @groups
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/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 31

def long_running_operation_retry_timeout
  @long_running_operation_retry_timeout
end

#objectsObjects (readonly)

Returns objects.

Returns:



42
43
44
# File 'lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 42

def objects
  @objects
end

#service_principalsServicePrincipals (readonly)

Returns service_principals.

Returns:



51
52
53
# File 'lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 51

def service_principals
  @service_principals
end

#tenant_idString

Returns Gets or sets the tenant Id.

Returns:

  • (String)

    Gets or sets the tenant Id.



24
25
26
# File 'lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 24

def tenant_id
  @tenant_id
end

#usersUsers (readonly)

Returns users.

Returns:



54
55
56
# File 'lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb', line 54

def users
  @users
end