Class: Google::Apis::MirrorV1::MirrorService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::MirrorV1::MirrorService
- Defined in:
- generated/google/apis/mirror_v1/service.rb
Overview
Google Mirror API
Interacts with Glass users via the timeline.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
An opaque string that represents a user for quota purposes.
-
#user_ip ⇒ String
Deprecated.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#delete_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes a contact.
-
#delete_subscription(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes a subscription.
-
#delete_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes a timeline item.
-
#delete_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes an attachment from a timeline item.
-
#get_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Contact
Gets a single contact by ID.
-
#get_location(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Location
Gets a single location by ID.
-
#get_setting(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Setting
Gets a single setting by ID.
-
#get_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::TimelineItem
Gets a single timeline item by ID.
-
#get_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Attachment
Retrieves an attachment on a timeline item by item ID and attachment ID.
-
#initialize ⇒ MirrorService
constructor
A new instance of MirrorService.
-
#insert_account(user_token, account_type, account_name, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Account
Inserts a new account for a user.
-
#insert_contact(contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Contact
Inserts a new contact.
-
#insert_subscription(subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Subscription
Creates a new subscription.
-
#insert_timeline(timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::TimelineItem
Inserts a new item into the timeline.
-
#insert_timeline_attachment(item_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Attachment
Adds a new attachment to a timeline item.
-
#list_contacts(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListContactsResponse
Retrieves a list of contacts for the authenticated user.
-
#list_locations(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListLocationsResponse
Retrieves a list of locations for the user.
-
#list_subscriptions(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListSubscriptionsResponse
Retrieves a list of subscriptions for the authenticated user and service.
-
#list_timeline_attachments(item_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListAttachmentsResponse
Returns a list of attachments for a timeline item.
-
#list_timelines(bundle_id: nil, include_deleted: nil, max_results: nil, order_by: nil, page_token: nil, pinned_only: nil, source_item_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListTimelineResponse
Retrieves a list of timeline items for the authenticated user.
-
#patch_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Contact
Updates a contact in place.
-
#patch_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::TimelineItem
Updates a timeline item in place.
-
#update_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Contact
Updates a contact in place.
-
#update_subscription(id, subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Subscription
Updates an existing subscription in place.
-
#update_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::TimelineItem
Updates a timeline item in place.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ MirrorService
Returns a new instance of MirrorService
49 50 51 52 |
# File 'generated/google/apis/mirror_v1/service.rb', line 49 def initialize super('https://www.googleapis.com/', 'mirror/v1/') @batch_path = 'batch/mirror/v1' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/mirror_v1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
43 44 45 |
# File 'generated/google/apis/mirror_v1/service.rb', line 43 def quota_user @quota_user end |
#user_ip ⇒ String
Returns Deprecated. Please use quotaUser instead.
47 48 49 |
# File 'generated/google/apis/mirror_v1/service.rb', line 47 def user_ip @user_ip end |
Instance Method Details
#delete_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a contact.
118 119 120 121 122 123 124 125 |
# File 'generated/google/apis/mirror_v1/service.rb', line 118 def delete_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'contacts/{id}', ) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_subscription(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a subscription.
417 418 419 420 421 422 423 424 |
# File 'generated/google/apis/mirror_v1/service.rb', line 417 def delete_subscription(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'subscriptions/{id}', ) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a timeline item.
547 548 549 550 551 552 553 554 |
# File 'generated/google/apis/mirror_v1/service.rb', line 547 def delete_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'timeline/{id}', ) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes an attachment from a timeline item.
789 790 791 792 793 794 795 796 797 |
# File 'generated/google/apis/mirror_v1/service.rb', line 789 def (item_id, , fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'timeline/{itemId}/attachments/{attachmentId}', ) command.params['itemId'] = item_id unless item_id.nil? command.params['attachmentId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Contact
Gets a single contact by ID.
149 150 151 152 153 154 155 156 157 158 |
# File 'generated/google/apis/mirror_v1/service.rb', line 149 def get_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'contacts/{id}', ) command.response_representation = Google::Apis::MirrorV1::Contact::Representation command.response_class = Google::Apis::MirrorV1::Contact command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_location(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Location
Gets a single location by ID.
317 318 319 320 321 322 323 324 325 326 |
# File 'generated/google/apis/mirror_v1/service.rb', line 317 def get_location(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'locations/{id}', ) command.response_representation = Google::Apis::MirrorV1::Location::Representation command.response_class = Google::Apis::MirrorV1::Location command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_setting(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Setting
Gets a single setting by ID.
384 385 386 387 388 389 390 391 392 393 |
# File 'generated/google/apis/mirror_v1/service.rb', line 384 def get_setting(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'settings/{id}', ) command.response_representation = Google::Apis::MirrorV1::Setting::Representation command.response_class = Google::Apis::MirrorV1::Setting command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::TimelineItem
Gets a single timeline item by ID.
578 579 580 581 582 583 584 585 586 587 |
# File 'generated/google/apis/mirror_v1/service.rb', line 578 def get_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'timeline/{id}', ) command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation command.response_class = Google::Apis::MirrorV1::TimelineItem command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Attachment
Retrieves an attachment on a timeline item by item ID and attachment ID.
825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 |
# File 'generated/google/apis/mirror_v1/service.rb', line 825 def (item_id, , fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? command = make_simple_command(:get, 'timeline/{itemId}/attachments/{attachmentId}', ) else command = make_download_command(:get, 'timeline/{itemId}/attachments/{attachmentId}', ) command.download_dest = download_dest end command.response_representation = Google::Apis::MirrorV1::Attachment::Representation command.response_class = Google::Apis::MirrorV1::Attachment command.params['itemId'] = item_id unless item_id.nil? command.params['attachmentId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_account(user_token, account_type, account_name, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Account
Inserts a new account for a user
81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'generated/google/apis/mirror_v1/service.rb', line 81 def insert_account(user_token, account_type, account_name, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/{userToken}/{accountType}/{accountName}', ) command.request_representation = Google::Apis::MirrorV1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::MirrorV1::Account::Representation command.response_class = Google::Apis::MirrorV1::Account command.params['userToken'] = user_token unless user_token.nil? command.params['accountType'] = account_type unless account_type.nil? command.params['accountName'] = account_name unless account_name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_contact(contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Contact
Inserts a new contact.
181 182 183 184 185 186 187 188 189 190 191 |
# File 'generated/google/apis/mirror_v1/service.rb', line 181 def insert_contact(contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'contacts', ) command.request_representation = Google::Apis::MirrorV1::Contact::Representation command.request_object = contact_object command.response_representation = Google::Apis::MirrorV1::Contact::Representation command.response_class = Google::Apis::MirrorV1::Contact command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_subscription(subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Subscription
Creates a new subscription.
447 448 449 450 451 452 453 454 455 456 457 |
# File 'generated/google/apis/mirror_v1/service.rb', line 447 def insert_subscription(subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'subscriptions', ) command.request_representation = Google::Apis::MirrorV1::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::MirrorV1::Subscription::Representation command.response_class = Google::Apis::MirrorV1::Subscription command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_timeline(timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::TimelineItem
Inserts a new item into the timeline.
614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 |
# File 'generated/google/apis/mirror_v1/service.rb', line 614 def insert_timeline(timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'timeline', ) else command = make_upload_command(:post, 'timeline', ) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::MirrorV1::TimelineItem::Representation command.request_object = timeline_item_object command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation command.response_class = Google::Apis::MirrorV1::TimelineItem command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_timeline_attachment(item_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Attachment
Adds a new attachment to a timeline item.
868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 |
# File 'generated/google/apis/mirror_v1/service.rb', line 868 def (item_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'timeline/{itemId}/attachments', ) else command = make_upload_command(:post, 'timeline/{itemId}/attachments', ) command.upload_source = upload_source command.upload_content_type = content_type end command.response_representation = Google::Apis::MirrorV1::Attachment::Representation command.response_class = Google::Apis::MirrorV1::Attachment command.params['itemId'] = item_id unless item_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_contacts(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListContactsResponse
Retrieves a list of contacts for the authenticated user.
213 214 215 216 217 218 219 220 221 |
# File 'generated/google/apis/mirror_v1/service.rb', line 213 def list_contacts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'contacts', ) command.response_representation = Google::Apis::MirrorV1::ListContactsResponse::Representation command.response_class = Google::Apis::MirrorV1::ListContactsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_locations(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListLocationsResponse
Retrieves a list of locations for the user.
348 349 350 351 352 353 354 355 356 |
# File 'generated/google/apis/mirror_v1/service.rb', line 348 def list_locations(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'locations', ) command.response_representation = Google::Apis::MirrorV1::ListLocationsResponse::Representation command.response_class = Google::Apis::MirrorV1::ListLocationsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_subscriptions(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListSubscriptionsResponse
Retrieves a list of subscriptions for the authenticated user and service.
479 480 481 482 483 484 485 486 487 |
# File 'generated/google/apis/mirror_v1/service.rb', line 479 def list_subscriptions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'subscriptions', ) command.response_representation = Google::Apis::MirrorV1::ListSubscriptionsResponse::Representation command.response_class = Google::Apis::MirrorV1::ListSubscriptionsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_timeline_attachments(item_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListAttachmentsResponse
Returns a list of attachments for a timeline item.
907 908 909 910 911 912 913 914 915 916 |
# File 'generated/google/apis/mirror_v1/service.rb', line 907 def (item_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'timeline/{itemId}/attachments', ) command.response_representation = Google::Apis::MirrorV1::ListAttachmentsResponse::Representation command.response_class = Google::Apis::MirrorV1::ListAttachmentsResponse command.params['itemId'] = item_id unless item_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_timelines(bundle_id: nil, include_deleted: nil, max_results: nil, order_by: nil, page_token: nil, pinned_only: nil, source_item_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::ListTimelineResponse
Retrieves a list of timeline items for the authenticated user.
666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 |
# File 'generated/google/apis/mirror_v1/service.rb', line 666 def list_timelines(bundle_id: nil, include_deleted: nil, max_results: nil, order_by: nil, page_token: nil, pinned_only: nil, source_item_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'timeline', ) command.response_representation = Google::Apis::MirrorV1::ListTimelineResponse::Representation command.response_class = Google::Apis::MirrorV1::ListTimelineResponse command.query['bundleId'] = bundle_id unless bundle_id.nil? command.query['includeDeleted'] = include_deleted unless include_deleted.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pinnedOnly'] = pinned_only unless pinned_only.nil? command.query['sourceItemId'] = source_item_id unless source_item_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Contact
Updates a contact in place. This method supports patch semantics.
246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'generated/google/apis/mirror_v1/service.rb', line 246 def patch_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'contacts/{id}', ) command.request_representation = Google::Apis::MirrorV1::Contact::Representation command.request_object = contact_object command.response_representation = Google::Apis::MirrorV1::Contact::Representation command.response_class = Google::Apis::MirrorV1::Contact command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::TimelineItem
Updates a timeline item in place. This method supports patch semantics.
706 707 708 709 710 711 712 713 714 715 716 717 |
# File 'generated/google/apis/mirror_v1/service.rb', line 706 def patch_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'timeline/{id}', ) command.request_representation = Google::Apis::MirrorV1::TimelineItem::Representation command.request_object = timeline_item_object command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation command.response_class = Google::Apis::MirrorV1::TimelineItem command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Contact
Updates a contact in place.
282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'generated/google/apis/mirror_v1/service.rb', line 282 def update_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'contacts/{id}', ) command.request_representation = Google::Apis::MirrorV1::Contact::Representation command.request_object = contact_object command.response_representation = Google::Apis::MirrorV1::Contact::Representation command.response_class = Google::Apis::MirrorV1::Contact command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_subscription(id, subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::Subscription
Updates an existing subscription in place.
512 513 514 515 516 517 518 519 520 521 522 523 |
# File 'generated/google/apis/mirror_v1/service.rb', line 512 def update_subscription(id, subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'subscriptions/{id}', ) command.request_representation = Google::Apis::MirrorV1::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::MirrorV1::Subscription::Representation command.response_class = Google::Apis::MirrorV1::Subscription command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MirrorV1::TimelineItem
Updates a timeline item in place.
746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 |
# File 'generated/google/apis/mirror_v1/service.rb', line 746 def update_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:put, 'timeline/{id}', ) else command = make_upload_command(:put, 'timeline/{id}', ) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::MirrorV1::TimelineItem::Representation command.request_object = timeline_item_object command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation command.response_class = Google::Apis::MirrorV1::TimelineItem command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |