Class: MicrosoftGraph::Contacts::Item::OrgContactItemRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Contacts::Item::OrgContactItemRequestBuilder
- Defined in:
- lib/contacts/item/org_contact_item_request_builder.rb
Overview
Provides operations to manage the collection of orgContact entities.
Defined Under Namespace
Classes: OrgContactItemRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#check_member_groups ⇒ Object
Provides operations to call the checkMemberGroups method.
-
#check_member_objects ⇒ Object
Provides operations to call the checkMemberObjects method.
-
#delete(request_configuration = nil) ⇒ Object
Delete entity from contacts.
-
#direct_reports ⇒ Object
Provides operations to manage the directReports property of the microsoft.graph.orgContact entity.
-
#get(request_configuration = nil) ⇒ Object
Get the properties and relationships of an organizational contact.
-
#get_member_groups ⇒ Object
Provides operations to call the getMemberGroups method.
-
#get_member_objects ⇒ Object
Provides operations to call the getMemberObjects method.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new OrgContactItemRequestBuilder and sets the default values.
-
#manager ⇒ Object
Provides operations to manage the manager property of the microsoft.graph.orgContact entity.
-
#member_of ⇒ Object
Provides operations to manage the memberOf property of the microsoft.graph.orgContact entity.
-
#patch(body, request_configuration = nil) ⇒ Object
Update entity in contacts.
-
#restore ⇒ Object
Provides operations to call the restore method.
-
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete entity from contacts.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Get the properties and relationships of an organizational contact.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update entity in contacts.
-
#transitive_member_of ⇒ Object
Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new OrgContactItemRequestBuilder and sets the default values.
75 76 77 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 75 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/contacts/{orgContact%2Did}{?%24select,%24expand}") end |
Instance Method Details
#check_member_groups ⇒ Object
Provides operations to call the checkMemberGroups method.
26 27 28 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 26 def check_member_groups() return MicrosoftGraph::Contacts::Item::CheckMemberGroups::CheckMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) end |
#check_member_objects ⇒ Object
Provides operations to call the checkMemberObjects method.
31 32 33 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 31 def check_member_objects() return MicrosoftGraph::Contacts::Item::CheckMemberObjects::CheckMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) end |
#delete(request_configuration = nil) ⇒ Object
Delete entity from contacts
83 84 85 86 87 88 89 90 91 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 83 def delete(request_configuration=nil) request_info = self.to_delete_request_information( request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end |
#direct_reports ⇒ Object
Provides operations to manage the directReports property of the microsoft.graph.orgContact entity.
36 37 38 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 36 def direct_reports() return MicrosoftGraph::Contacts::Item::DirectReports::DirectReportsRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Get the properties and relationships of an organizational contact.
97 98 99 100 101 102 103 104 105 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 97 def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end |
#get_member_groups ⇒ Object
Provides operations to call the getMemberGroups method.
41 42 43 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 41 def get_member_groups() return MicrosoftGraph::Contacts::Item::GetMemberGroups::GetMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_member_objects ⇒ Object
Provides operations to call the getMemberObjects method.
46 47 48 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 46 def get_member_objects() return MicrosoftGraph::Contacts::Item::GetMemberObjects::GetMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) end |
#manager ⇒ Object
Provides operations to manage the manager property of the microsoft.graph.orgContact entity.
51 52 53 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 51 def manager() return MicrosoftGraph::Contacts::Item::Manager::ManagerRequestBuilder.new(@path_parameters, @request_adapter) end |
#member_of ⇒ Object
Provides operations to manage the memberOf property of the microsoft.graph.orgContact entity.
56 57 58 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 56 def member_of() return MicrosoftGraph::Contacts::Item::MemberOf::MemberOfRequestBuilder.new(@path_parameters, @request_adapter) end |
#patch(body, request_configuration = nil) ⇒ Object
Update entity in contacts
112 113 114 115 116 117 118 119 120 121 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 112 def patch(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = self.to_patch_request_information( body, request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::OrgContact.create_from_discriminator_value(pn) }, error_mapping) end |
#restore ⇒ Object
Provides operations to call the restore method.
61 62 63 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 61 def restore() return MicrosoftGraph::Contacts::Item::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete entity from contacts
127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 127 def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end return request_info end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Get the properties and relationships of an organizational contact.
143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 143 def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :GET request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.(request_configuration.) end return request_info end |
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update entity in contacts
162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 162 def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :PATCH request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end request_info.set_content_from_parsable(@request_adapter, "application/json", body) return request_info end |
#transitive_member_of ⇒ Object
Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity.
66 67 68 |
# File 'lib/contacts/item/org_contact_item_request_builder.rb', line 66 def transitive_member_of() return MicrosoftGraph::Contacts::Item::TransitiveMemberOf::TransitiveMemberOfRequestBuilder.new(@path_parameters, @request_adapter) end |