Class: MicrosoftGraph::GraphBaseServiceClient

Inherits:
MicrosoftKiotaAbstractions::BaseRequestBuilder
  • Object
show all
Defined in:
lib/graph_base_service_client.rb

Overview

The main entry point of the SDK, exposes the configuration and the fluent API.

Direct Known Subclasses

GraphServiceClient

Instance Method Summary collapse

Constructor Details

#initialize(request_adapter) ⇒ Object

Instantiates a new GraphBaseServiceClient and sets the default values.

Parameters:

  • request_adapter

    The request adapter to use to execute the requests.



436
437
438
439
440
441
442
443
444
# File 'lib/graph_base_service_client.rb', line 436

def initialize(request_adapter)
    super(Hash.new, request_adapter, "{+baseurl}")
    MicrosoftKiotaAbstractions::ApiClientBuilder.register_default_serializer(MicrosoftKiotaSerializationJson::JsonSerializationWriterFactory)
    MicrosoftKiotaAbstractions::ApiClientBuilder.register_default_deserializer(MicrosoftKiotaSerializationJson::JsonParseNodeFactory)
    if @request_adapter.get_base_url.nil? || @request_adapter.get_base_url.empty?
        @request_adapter.set_base_url('https://graph.microsoft.com/v1.0')
    end
    @path_parameters['baseurl'] = @request_adapter.get_base_url
end

Instance Method Details

#adminObject

Provides operations to manage the admin singleton.



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

def admin()
    return MicrosoftGraph::Admin::AdminRequestBuilder.new(@path_parameters, @request_adapter)
end

#agreement_acceptancesObject

Provides operations to manage the collection of agreementAcceptance entities.



89
90
91
# File 'lib/graph_base_service_client.rb', line 89

def agreement_acceptances()
    return MicrosoftGraph::AgreementAcceptances::AgreementAcceptancesRequestBuilder.new(@path_parameters, @request_adapter)
end

#agreementsObject

Provides operations to manage the collection of agreement entities.



94
95
96
# File 'lib/graph_base_service_client.rb', line 94

def agreements()
    return MicrosoftGraph::Agreements::AgreementsRequestBuilder.new(@path_parameters, @request_adapter)
end

#app_catalogsObject

Provides operations to manage the appCatalogs singleton.



99
100
101
# File 'lib/graph_base_service_client.rb', line 99

def app_catalogs()
    return MicrosoftGraph::AppCatalogs::AppCatalogsRequestBuilder.new(@path_parameters, @request_adapter)
end

#application_templatesObject

Provides operations to manage the collection of applicationTemplate entities.



109
110
111
# File 'lib/graph_base_service_client.rb', line 109

def application_templates()
    return MicrosoftGraph::ApplicationTemplates::ApplicationTemplatesRequestBuilder.new(@path_parameters, @request_adapter)
end

#applicationsObject

Provides operations to manage the collection of application entities.



104
105
106
# File 'lib/graph_base_service_client.rb', line 104

def applications()
    return MicrosoftGraph::Applications::ApplicationsRequestBuilder.new(@path_parameters, @request_adapter)
end

#applications_with_app_id(app_id) ⇒ Object

Provides operations to manage the collection of application entities.

Parameters:

  • app_id

    Alternate key of application

Returns:

  • a applications_with_app_id_request_builder

Raises:

  • (StandardError)


427
428
429
430
# File 'lib/graph_base_service_client.rb', line 427

def applications_with_app_id(app_id)
    raise StandardError, 'app_id cannot be null' if app_id.nil?
    return ApplicationsWithAppIdRequestBuilder.new(@path_parameters, @request_adapter, appId)
end

#audit_logsObject

Provides operations to manage the auditLogRoot singleton.



114
115
116
# File 'lib/graph_base_service_client.rb', line 114

def audit_logs()
    return MicrosoftGraph::AuditLogs::AuditLogsRequestBuilder.new(@path_parameters, @request_adapter)
end

#authentication_method_configurationsObject

Provides operations to manage the collection of authenticationMethodConfiguration entities.



119
120
121
# File 'lib/graph_base_service_client.rb', line 119

def authentication_method_configurations()
    return MicrosoftGraph::AuthenticationMethodConfigurations::AuthenticationMethodConfigurationsRequestBuilder.new(@path_parameters, @request_adapter)
end

#authentication_methods_policyObject

Provides operations to manage the authenticationMethodsPolicy singleton.



124
125
126
# File 'lib/graph_base_service_client.rb', line 124

def authentication_methods_policy()
    return MicrosoftGraph::AuthenticationMethodsPolicy::AuthenticationMethodsPolicyRequestBuilder.new(@path_parameters, @request_adapter)
end

#certificate_based_auth_configurationObject

Provides operations to manage the collection of certificateBasedAuthConfiguration entities.



129
130
131
# File 'lib/graph_base_service_client.rb', line 129

def certificate_based_auth_configuration()
    return MicrosoftGraph::CertificateBasedAuthConfiguration::CertificateBasedAuthConfigurationRequestBuilder.new(@path_parameters, @request_adapter)
end

#chatsObject

Provides operations to manage the collection of chat entities.



134
135
136
# File 'lib/graph_base_service_client.rb', line 134

def chats()
    return MicrosoftGraph::Chats::ChatsRequestBuilder.new(@path_parameters, @request_adapter)
end

#communicationsObject

Provides operations to manage the cloudCommunications singleton.



139
140
141
# File 'lib/graph_base_service_client.rb', line 139

def communications()
    return MicrosoftGraph::Communications::CommunicationsRequestBuilder.new(@path_parameters, @request_adapter)
end

#complianceObject

Provides operations to manage the compliance singleton.



144
145
146
# File 'lib/graph_base_service_client.rb', line 144

def compliance()
    return MicrosoftGraph::Compliance::ComplianceRequestBuilder.new(@path_parameters, @request_adapter)
end

#connectionsObject

Provides operations to manage the collection of externalConnection entities.



149
150
151
# File 'lib/graph_base_service_client.rb', line 149

def connections()
    return MicrosoftGraph::Connections::ConnectionsRequestBuilder.new(@path_parameters, @request_adapter)
end

#contactsObject

Provides operations to manage the collection of orgContact entities.



154
155
156
# File 'lib/graph_base_service_client.rb', line 154

def contacts()
    return MicrosoftGraph::Contacts::ContactsRequestBuilder.new(@path_parameters, @request_adapter)
end

#contractsObject

Provides operations to manage the collection of contract entities.



159
160
161
# File 'lib/graph_base_service_client.rb', line 159

def contracts()
    return MicrosoftGraph::Contracts::ContractsRequestBuilder.new(@path_parameters, @request_adapter)
end

#data_policy_operationsObject

Provides operations to manage the collection of dataPolicyOperation entities.



164
165
166
# File 'lib/graph_base_service_client.rb', line 164

def data_policy_operations()
    return MicrosoftGraph::DataPolicyOperations::DataPolicyOperationsRequestBuilder.new(@path_parameters, @request_adapter)
end

#device_app_managementObject

Provides operations to manage the deviceAppManagement singleton.



169
170
171
# File 'lib/graph_base_service_client.rb', line 169

def device_app_management()
    return MicrosoftGraph::DeviceAppManagement::DeviceAppManagementRequestBuilder.new(@path_parameters, @request_adapter)
end

#device_managementObject

Provides operations to manage the deviceManagement singleton.



174
175
176
# File 'lib/graph_base_service_client.rb', line 174

def device_management()
    return MicrosoftGraph::DeviceManagement::DeviceManagementRequestBuilder.new(@path_parameters, @request_adapter)
end

#devicesObject

Provides operations to manage the collection of device entities.



179
180
181
# File 'lib/graph_base_service_client.rb', line 179

def devices()
    return MicrosoftGraph::Devices::DevicesRequestBuilder.new(@path_parameters, @request_adapter)
end

#devices_with_device_id(device_id) ⇒ Object

Provides operations to manage the collection of device entities.

Parameters:

  • device_id

    Alternate key of device

Returns:

  • a devices_with_device_id_request_builder

Raises:

  • (StandardError)


450
451
452
453
# File 'lib/graph_base_service_client.rb', line 450

def devices_with_device_id(device_id)
    raise StandardError, 'device_id cannot be null' if device_id.nil?
    return DevicesWithDeviceIdRequestBuilder.new(@path_parameters, @request_adapter, deviceId)
end

#directoryObject

Provides operations to manage the directory singleton.



184
185
186
# File 'lib/graph_base_service_client.rb', line 184

def directory()
    return MicrosoftGraph::Directory::DirectoryRequestBuilder.new(@path_parameters, @request_adapter)
end

#directory_objectsObject

Provides operations to manage the collection of directoryObject entities.



189
190
191
# File 'lib/graph_base_service_client.rb', line 189

def directory_objects()
    return MicrosoftGraph::DirectoryObjects::DirectoryObjectsRequestBuilder.new(@path_parameters, @request_adapter)
end

#directory_role_templatesObject

Provides operations to manage the collection of directoryRoleTemplate entities.



199
200
201
# File 'lib/graph_base_service_client.rb', line 199

def directory_role_templates()
    return MicrosoftGraph::DirectoryRoleTemplates::DirectoryRoleTemplatesRequestBuilder.new(@path_parameters, @request_adapter)
end

#directory_rolesObject

Provides operations to manage the collection of directoryRole entities.



194
195
196
# File 'lib/graph_base_service_client.rb', line 194

def directory_roles()
    return MicrosoftGraph::DirectoryRoles::DirectoryRolesRequestBuilder.new(@path_parameters, @request_adapter)
end

#directory_roles_with_role_template_id(role_template_id) ⇒ Object

Provides operations to manage the collection of directoryRole entities.

Parameters:

  • role_template_id

    Alternate key of directoryRole

Returns:

  • a directory_roles_with_role_template_id_request_builder

Raises:

  • (StandardError)


459
460
461
462
# File 'lib/graph_base_service_client.rb', line 459

def directory_roles_with_role_template_id(role_template_id)
    raise StandardError, 'role_template_id cannot be null' if role_template_id.nil?
    return DirectoryRolesWithRoleTemplateIdRequestBuilder.new(@path_parameters, @request_adapter, roleTemplateId)
end

#domain_dns_recordsObject

Provides operations to manage the collection of domainDnsRecord entities.



204
205
206
# File 'lib/graph_base_service_client.rb', line 204

def domain_dns_records()
    return MicrosoftGraph::DomainDnsRecords::DomainDnsRecordsRequestBuilder.new(@path_parameters, @request_adapter)
end

#domainsObject

Provides operations to manage the collection of domain entities.



209
210
211
# File 'lib/graph_base_service_client.rb', line 209

def domains()
    return MicrosoftGraph::Domains::DomainsRequestBuilder.new(@path_parameters, @request_adapter)
end

#drivesObject

Provides operations to manage the collection of drive entities.



214
215
216
# File 'lib/graph_base_service_client.rb', line 214

def drives()
    return MicrosoftGraph::Drives::DrivesRequestBuilder.new(@path_parameters, @request_adapter)
end

#educationObject

Provides operations to manage the educationRoot singleton.



219
220
221
# File 'lib/graph_base_service_client.rb', line 219

def education()
    return MicrosoftGraph::Education::EducationRequestBuilder.new(@path_parameters, @request_adapter)
end

#employee_experienceObject

Provides operations to manage the employeeExperience singleton.



224
225
226
# File 'lib/graph_base_service_client.rb', line 224

def employee_experience()
    return MicrosoftGraph::EmployeeExperience::EmployeeExperienceRequestBuilder.new(@path_parameters, @request_adapter)
end

#externalObject

Provides operations to manage the external singleton.



229
230
231
# File 'lib/graph_base_service_client.rb', line 229

def external()
    return MicrosoftGraph::External::ExternalRequestBuilder.new(@path_parameters, @request_adapter)
end

#filter_operatorsObject

Provides operations to manage the collection of filterOperatorSchema entities.



234
235
236
# File 'lib/graph_base_service_client.rb', line 234

def filter_operators()
    return MicrosoftGraph::FilterOperators::FilterOperatorsRequestBuilder.new(@path_parameters, @request_adapter)
end

#functionsObject

Provides operations to manage the collection of attributeMappingFunctionSchema entities.



239
240
241
# File 'lib/graph_base_service_client.rb', line 239

def functions()
    return MicrosoftGraph::Functions::FunctionsRequestBuilder.new(@path_parameters, @request_adapter)
end

#group_lifecycle_policiesObject

Provides operations to manage the collection of groupLifecyclePolicy entities.



244
245
246
# File 'lib/graph_base_service_client.rb', line 244

def group_lifecycle_policies()
    return MicrosoftGraph::GroupLifecyclePolicies::GroupLifecyclePoliciesRequestBuilder.new(@path_parameters, @request_adapter)
end

#group_setting_templatesObject

Provides operations to manage the collection of groupSettingTemplate entities.



259
260
261
# File 'lib/graph_base_service_client.rb', line 259

def group_setting_templates()
    return MicrosoftGraph::GroupSettingTemplates::GroupSettingTemplatesRequestBuilder.new(@path_parameters, @request_adapter)
end

#group_settingsObject

Provides operations to manage the collection of groupSetting entities.



254
255
256
# File 'lib/graph_base_service_client.rb', line 254

def group_settings()
    return MicrosoftGraph::GroupSettings::GroupSettingsRequestBuilder.new(@path_parameters, @request_adapter)
end

#groupsObject

Provides operations to manage the collection of group entities.



249
250
251
# File 'lib/graph_base_service_client.rb', line 249

def groups()
    return MicrosoftGraph::Groups::GroupsRequestBuilder.new(@path_parameters, @request_adapter)
end

#identityObject

Provides operations to manage the identityContainer singleton.



264
265
266
# File 'lib/graph_base_service_client.rb', line 264

def identity()
    return MicrosoftGraph::Identity::IdentityRequestBuilder.new(@path_parameters, @request_adapter)
end

#identity_governanceObject

Provides operations to manage the identityGovernance singleton.



269
270
271
# File 'lib/graph_base_service_client.rb', line 269

def identity_governance()
    return MicrosoftGraph::IdentityGovernance::IdentityGovernanceRequestBuilder.new(@path_parameters, @request_adapter)
end

#identity_protectionObject

Provides operations to manage the identityProtectionRoot singleton.



274
275
276
# File 'lib/graph_base_service_client.rb', line 274

def identity_protection()
    return MicrosoftGraph::IdentityProtection::IdentityProtectionRequestBuilder.new(@path_parameters, @request_adapter)
end

#identity_providersObject

Provides operations to manage the collection of identityProvider entities.



279
280
281
# File 'lib/graph_base_service_client.rb', line 279

def identity_providers()
    return MicrosoftGraph::IdentityProviders::IdentityProvidersRequestBuilder.new(@path_parameters, @request_adapter)
end

#information_protectionObject

Provides operations to manage the informationProtection singleton.



284
285
286
# File 'lib/graph_base_service_client.rb', line 284

def information_protection()
    return MicrosoftGraph::InformationProtection::InformationProtectionRequestBuilder.new(@path_parameters, @request_adapter)
end

#invitationsObject

Provides operations to manage the collection of invitation entities.



289
290
291
# File 'lib/graph_base_service_client.rb', line 289

def invitations()
    return MicrosoftGraph::Invitations::InvitationsRequestBuilder.new(@path_parameters, @request_adapter)
end

#meObject

Provides operations to manage the user singleton.



294
295
296
# File 'lib/graph_base_service_client.rb', line 294

def me()
    return MicrosoftGraph::Me::MeRequestBuilder.new(@path_parameters, @request_adapter)
end

#oauth2_permission_grantsObject

Provides operations to manage the collection of oAuth2PermissionGrant entities.



299
300
301
# File 'lib/graph_base_service_client.rb', line 299

def oauth2_permission_grants()
    return MicrosoftGraph::Oauth2PermissionGrants::Oauth2PermissionGrantsRequestBuilder.new(@path_parameters, @request_adapter)
end

#organizationObject

Provides operations to manage the collection of organization entities.



304
305
306
# File 'lib/graph_base_service_client.rb', line 304

def organization()
    return MicrosoftGraph::Organization::OrganizationRequestBuilder.new(@path_parameters, @request_adapter)
end

#permission_grantsObject

Provides operations to manage the collection of resourceSpecificPermissionGrant entities.



309
310
311
# File 'lib/graph_base_service_client.rb', line 309

def permission_grants()
    return MicrosoftGraph::PermissionGrants::PermissionGrantsRequestBuilder.new(@path_parameters, @request_adapter)
end

#placesObject

The places property



314
315
316
# File 'lib/graph_base_service_client.rb', line 314

def places()
    return MicrosoftGraph::Places::PlacesRequestBuilder.new(@path_parameters, @request_adapter)
end

#plannerObject

Provides operations to manage the planner singleton.



319
320
321
# File 'lib/graph_base_service_client.rb', line 319

def planner()
    return MicrosoftGraph::Planner::PlannerRequestBuilder.new(@path_parameters, @request_adapter)
end

#policiesObject

Provides operations to manage the policyRoot singleton.



324
325
326
# File 'lib/graph_base_service_client.rb', line 324

def policies()
    return MicrosoftGraph::Policies::PoliciesRequestBuilder.new(@path_parameters, @request_adapter)
end

Provides operations to manage the print singleton.



329
330
331
# File 'lib/graph_base_service_client.rb', line 329

def print()
    return MicrosoftGraph::Print::PrintRequestBuilder.new(@path_parameters, @request_adapter)
end

#privacyObject

Provides operations to manage the privacy singleton.



334
335
336
# File 'lib/graph_base_service_client.rb', line 334

def privacy()
    return MicrosoftGraph::Privacy::PrivacyRequestBuilder.new(@path_parameters, @request_adapter)
end

#reportsObject

Provides operations to manage the reportRoot singleton.



339
340
341
# File 'lib/graph_base_service_client.rb', line 339

def reports()
    return MicrosoftGraph::Reports::ReportsRequestBuilder.new(@path_parameters, @request_adapter)
end

#role_managementObject

Provides operations to manage the roleManagement singleton.



344
345
346
# File 'lib/graph_base_service_client.rb', line 344

def role_management()
    return MicrosoftGraph::RoleManagement::RoleManagementRequestBuilder.new(@path_parameters, @request_adapter)
end

#schema_extensionsObject

Provides operations to manage the collection of schemaExtension entities.



349
350
351
# File 'lib/graph_base_service_client.rb', line 349

def schema_extensions()
    return MicrosoftGraph::SchemaExtensions::SchemaExtensionsRequestBuilder.new(@path_parameters, @request_adapter)
end

#scoped_role_membershipsObject

Provides operations to manage the collection of scopedRoleMembership entities.



354
355
356
# File 'lib/graph_base_service_client.rb', line 354

def scoped_role_memberships()
    return MicrosoftGraph::ScopedRoleMemberships::ScopedRoleMembershipsRequestBuilder.new(@path_parameters, @request_adapter)
end

#searchObject

Provides operations to manage the searchEntity singleton.



359
360
361
# File 'lib/graph_base_service_client.rb', line 359

def search()
    return MicrosoftGraph::Search::SearchRequestBuilder.new(@path_parameters, @request_adapter)
end

#securityObject

Provides operations to manage the security singleton.



364
365
366
# File 'lib/graph_base_service_client.rb', line 364

def security()
    return MicrosoftGraph::Security::SecurityRequestBuilder.new(@path_parameters, @request_adapter)
end

#service_principalsObject

Provides operations to manage the collection of servicePrincipal entities.



369
370
371
# File 'lib/graph_base_service_client.rb', line 369

def service_principals()
    return MicrosoftGraph::ServicePrincipals::ServicePrincipalsRequestBuilder.new(@path_parameters, @request_adapter)
end

#service_principals_with_app_id(app_id) ⇒ Object

Provides operations to manage the collection of servicePrincipal entities.

Parameters:

  • app_id

    Alternate key of servicePrincipal

Returns:

  • a service_principals_with_app_id_request_builder

Raises:

  • (StandardError)


468
469
470
471
# File 'lib/graph_base_service_client.rb', line 468

def service_principals_with_app_id(app_id)
    raise StandardError, 'app_id cannot be null' if app_id.nil?
    return ServicePrincipalsWithAppIdRequestBuilder.new(@path_parameters, @request_adapter, appId)
end

#sharesObject

Provides operations to manage the collection of sharedDriveItem entities.



374
375
376
# File 'lib/graph_base_service_client.rb', line 374

def shares()
    return MicrosoftGraph::Shares::SharesRequestBuilder.new(@path_parameters, @request_adapter)
end

#sitesObject

Provides operations to manage the collection of site entities.



379
380
381
# File 'lib/graph_base_service_client.rb', line 379

def sites()
    return MicrosoftGraph::Sites::SitesRequestBuilder.new(@path_parameters, @request_adapter)
end

#solutionsObject

Provides operations to manage the solutionsRoot singleton.



384
385
386
# File 'lib/graph_base_service_client.rb', line 384

def solutions()
    return MicrosoftGraph::Solutions::SolutionsRequestBuilder.new(@path_parameters, @request_adapter)
end

#subscribed_skusObject

Provides operations to manage the collection of subscribedSku entities.



389
390
391
# File 'lib/graph_base_service_client.rb', line 389

def subscribed_skus()
    return MicrosoftGraph::SubscribedSkus::SubscribedSkusRequestBuilder.new(@path_parameters, @request_adapter)
end

#subscriptionsObject

Provides operations to manage the collection of subscription entities.



394
395
396
# File 'lib/graph_base_service_client.rb', line 394

def subscriptions()
    return MicrosoftGraph::Subscriptions::SubscriptionsRequestBuilder.new(@path_parameters, @request_adapter)
end

#teamsObject

Provides operations to manage the collection of team entities.



399
400
401
# File 'lib/graph_base_service_client.rb', line 399

def teams()
    return MicrosoftGraph::Teams::TeamsRequestBuilder.new(@path_parameters, @request_adapter)
end

#teams_templatesObject

Provides operations to manage the collection of teamsTemplate entities.



404
405
406
# File 'lib/graph_base_service_client.rb', line 404

def teams_templates()
    return MicrosoftGraph::TeamsTemplates::TeamsTemplatesRequestBuilder.new(@path_parameters, @request_adapter)
end

#teamworkObject

Provides operations to manage the teamwork singleton.



409
410
411
# File 'lib/graph_base_service_client.rb', line 409

def teamwork()
    return MicrosoftGraph::Teamwork::TeamworkRequestBuilder.new(@path_parameters, @request_adapter)
end

#tenant_relationshipsObject

Provides operations to manage the tenantRelationship singleton.



414
415
416
# File 'lib/graph_base_service_client.rb', line 414

def tenant_relationships()
    return MicrosoftGraph::TenantRelationships::TenantRelationshipsRequestBuilder.new(@path_parameters, @request_adapter)
end

#usersObject

Provides operations to manage the collection of user entities.



419
420
421
# File 'lib/graph_base_service_client.rb', line 419

def users()
    return MicrosoftGraph::Users::UsersRequestBuilder.new(@path_parameters, @request_adapter)
end