diff --git a/api_names_out.yaml b/api_names_out.yaml index 4f8c6d66a..10d2375d8 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -128637,6 +128637,8 @@ "/people:v1/ClientData/metadata": metadata "/people:v1/ClientData/value": value "/people:v1/ContactGroup": contact_group +"/people:v1/ContactGroup/clientData": client_data +"/people:v1/ContactGroup/clientData/client_datum": client_datum "/people:v1/ContactGroup/etag": etag "/people:v1/ContactGroup/formattedName": formatted_name "/people:v1/ContactGroup/groupType": group_type @@ -128667,6 +128669,7 @@ "/people:v1/CoverPhoto/url": url "/people:v1/CreateContactGroupRequest": create_contact_group_request "/people:v1/CreateContactGroupRequest/contactGroup": contact_group +"/people:v1/CreateContactGroupRequest/readGroupFields": read_group_fields "/people:v1/Date": date "/people:v1/Date/day": day "/people:v1/Date/month": month @@ -128707,6 +128710,9 @@ "/people:v1/GetPeopleResponse": get_people_response "/people:v1/GetPeopleResponse/responses": responses "/people:v1/GetPeopleResponse/responses/response": response +"/people:v1/GroupClientData": group_client_data +"/people:v1/GroupClientData/key": key +"/people:v1/GroupClientData/value": value "/people:v1/ImClient": im_client "/people:v1/ImClient/formattedProtocol": formatted_protocol "/people:v1/ImClient/formattedType": formatted_type @@ -128958,6 +128964,8 @@ "/people:v1/Tagline/value": value "/people:v1/UpdateContactGroupRequest": update_contact_group_request "/people:v1/UpdateContactGroupRequest/contactGroup": contact_group +"/people:v1/UpdateContactGroupRequest/readGroupFields": read_group_fields +"/people:v1/UpdateContactGroupRequest/updateGroupFields": update_group_fields "/people:v1/UpdateContactPhotoRequest": update_contact_photo_request "/people:v1/UpdateContactPhotoRequest/personFields": person_fields "/people:v1/UpdateContactPhotoRequest/photoBytes": photo_bytes @@ -128977,6 +128985,7 @@ "/people:v1/fields": fields "/people:v1/key": key "/people:v1/people.contactGroups.batchGet": batch_contact_group_get +"/people:v1/people.contactGroups.batchGet/groupFields": group_fields "/people:v1/people.contactGroups.batchGet/maxMembers": max_members "/people:v1/people.contactGroups.batchGet/resourceNames": resource_names "/people:v1/people.contactGroups.create": create_contact_group @@ -128984,9 +128993,11 @@ "/people:v1/people.contactGroups.delete/deleteContacts": delete_contacts "/people:v1/people.contactGroups.delete/resourceName": resource_name "/people:v1/people.contactGroups.get": get_contact_group +"/people:v1/people.contactGroups.get/groupFields": group_fields "/people:v1/people.contactGroups.get/maxMembers": max_members "/people:v1/people.contactGroups.get/resourceName": resource_name "/people:v1/people.contactGroups.list": list_contact_groups +"/people:v1/people.contactGroups.list/groupFields": group_fields "/people:v1/people.contactGroups.list/pageSize": page_size "/people:v1/people.contactGroups.list/pageToken": page_token "/people:v1/people.contactGroups.list/syncToken": sync_token diff --git a/generated/google-apis-people_v1/CHANGELOG.md b/generated/google-apis-people_v1/CHANGELOG.md index fc5c53bc5..c6a8c68e8 100644 --- a/generated/google-apis-people_v1/CHANGELOG.md +++ b/generated/google-apis-people_v1/CHANGELOG.md @@ -1,8 +1,9 @@ # Release history for google-apis-people_v1 -### v0.2.0 (2021-01-13) +### v0.2.0 (2021-01-21) -* Regenerated from discovery document revision 20210112 +* Regenerated from discovery document revision 20210120 +* Regenerated using generator version 0.1.2 ### v0.1.0 (2021-01-07) diff --git a/generated/google-apis-people_v1/lib/google/apis/people_v1/classes.rb b/generated/google-apis-people_v1/lib/google/apis/people_v1/classes.rb index 0c828cbae..3e3521af7 100644 --- a/generated/google-apis-people_v1/lib/google/apis/people_v1/classes.rb +++ b/generated/google-apis-people_v1/lib/google/apis/people_v1/classes.rb @@ -327,6 +327,11 @@ module Google class ContactGroup include Google::Apis::Core::Hashable + # The group's client data. + # Corresponds to the JSON property `clientData` + # @return [Array] + attr_accessor :client_data + # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource. # Used for web cache validation. # Corresponds to the JSON property `etag` @@ -381,6 +386,7 @@ module Google # Update properties of this object def update!(**args) + @client_data = args[:client_data] if args.key?(:client_data) @etag = args[:etag] if args.key?(:etag) @formatted_name = args[:formatted_name] if args.key?(:formatted_name) @group_type = args[:group_type] if args.key?(:group_type) @@ -569,6 +575,13 @@ module Google # @return [Google::Apis::PeopleV1::ContactGroup] attr_accessor :contact_group + # Optional. A field mask to restrict which fields on the group are returned. + # Defaults to `metadata`, `groupType`, and `name` if not set or set to empty. + # Valid fields are: * clientData * groupType * metadata * name + # Corresponds to the JSON property `readGroupFields` + # @return [String] + attr_accessor :read_group_fields + def initialize(**args) update!(**args) end @@ -576,6 +589,7 @@ module Google # Update properties of this object def update!(**args) @contact_group = args[:contact_group] if args.key?(:contact_group) + @read_group_fields = args[:read_group_fields] if args.key?(:read_group_fields) end end @@ -930,6 +944,32 @@ module Google end end + # Arbitrary client data that is populated by clients. Duplicate keys and values + # are allowed. LINT.IfChange(GroupClientData) + class GroupClientData + include Google::Apis::Core::Hashable + + # The client specified key of the client data. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The client specified value of the client data. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + # A person's instant messaging client. class ImClient include Google::Apis::Core::Hashable @@ -2481,6 +2521,21 @@ module Google # @return [Google::Apis::PeopleV1::ContactGroup] attr_accessor :contact_group + # Optional. A field mask to restrict which fields on the group are returned. + # Defaults to `metadata`, `groupType`, and `name` if not set or set to empty. + # Valid fields are: * clientData * groupType * memberCount * metadata * name + # Corresponds to the JSON property `readGroupFields` + # @return [String] + attr_accessor :read_group_fields + + # Optional. A field mask to restrict which fields on the group are updated. + # Multiple fields can be specified by separating them with commas. Defaults to ` + # name` if not set or set to empty. Updated fields are replaced. Valid values + # are: * clientData * name + # Corresponds to the JSON property `updateGroupFields` + # @return [String] + attr_accessor :update_group_fields + def initialize(**args) update!(**args) end @@ -2488,6 +2543,8 @@ module Google # Update properties of this object def update!(**args) @contact_group = args[:contact_group] if args.key?(:contact_group) + @read_group_fields = args[:read_group_fields] if args.key?(:read_group_fields) + @update_group_fields = args[:update_group_fields] if args.key?(:update_group_fields) end end diff --git a/generated/google-apis-people_v1/lib/google/apis/people_v1/gem_version.rb b/generated/google-apis-people_v1/lib/google/apis/people_v1/gem_version.rb index 20c184e59..0c93f0aaa 100644 --- a/generated/google-apis-people_v1/lib/google/apis/people_v1/gem_version.rb +++ b/generated/google-apis-people_v1/lib/google/apis/people_v1/gem_version.rb @@ -19,10 +19,10 @@ module Google GEM_VERSION = "0.2.0" # Version of the code generator used to generate this client - GENERATOR_VERSION = "0.1.1" + GENERATOR_VERSION = "0.1.2" # Revision of the discovery document this client was generated from - REVISION = "20210112" + REVISION = "20210120" end end end diff --git a/generated/google-apis-people_v1/lib/google/apis/people_v1/representations.rb b/generated/google-apis-people_v1/lib/google/apis/people_v1/representations.rb index 5697f3e93..eaa1ccb4f 100644 --- a/generated/google-apis-people_v1/lib/google/apis/people_v1/representations.rb +++ b/generated/google-apis-people_v1/lib/google/apis/people_v1/representations.rb @@ -178,6 +178,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GroupClientData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImClient class Representation < Google::Apis::Core::JsonRepresentation; end @@ -490,6 +496,8 @@ module Google class ContactGroup # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :client_data, as: 'clientData', class: Google::Apis::PeopleV1::GroupClientData, decorator: Google::Apis::PeopleV1::GroupClientData::Representation + property :etag, as: 'etag' property :formatted_name, as: 'formattedName' property :group_type, as: 'groupType' @@ -553,6 +561,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation + property :read_group_fields, as: 'readGroupFields' end end @@ -659,6 +668,14 @@ module Google end end + class GroupClientData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + class ImClient # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1090,6 +1107,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation + property :read_group_fields, as: 'readGroupFields' + property :update_group_fields, as: 'updateGroupFields' end end diff --git a/generated/google-apis-people_v1/lib/google/apis/people_v1/service.rb b/generated/google-apis-people_v1/lib/google/apis/people_v1/service.rb index 667bc0845..ef1e8a1ab 100644 --- a/generated/google-apis-people_v1/lib/google/apis/people_v1/service.rb +++ b/generated/google-apis-people_v1/lib/google/apis/people_v1/service.rb @@ -51,6 +51,11 @@ module Google # Get a list of contact groups owned by the authenticated user by specifying a # list of contact group resource names. + # @param [String] group_fields + # Optional. A field mask to restrict which fields on the group are returned. + # Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or + # set to empty. Valid fields are: * clientData * groupType * memberCount * + # metadata * name # @param [Fixnum] max_members # Optional. Specifies the maximum number of members to return for each group. # Defaults to 0 if not set, which will return zero members. @@ -73,10 +78,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_contact_group_get(max_members: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block) + def batch_contact_group_get(group_fields: nil, max_members: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/contactGroups:batchGet', options) command.response_representation = Google::Apis::PeopleV1::BatchGetContactGroupsResponse::Representation command.response_class = Google::Apis::PeopleV1::BatchGetContactGroupsResponse + command.query['groupFields'] = group_fields unless group_fields.nil? command.query['maxMembers'] = max_members unless max_members.nil? command.query['resourceNames'] = resource_names unless resource_names.nil? command.query['fields'] = fields unless fields.nil? @@ -152,6 +158,11 @@ module Google # contact group resource name. # @param [String] resource_name # Required. The resource name of the contact group to get. + # @param [String] group_fields + # Optional. A field mask to restrict which fields on the group are returned. + # Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or + # set to empty. Valid fields are: * clientData * groupType * memberCount * + # metadata * name # @param [Fixnum] max_members # Optional. Specifies the maximum number of members to return. Defaults to 0 if # not set, which will return zero members. @@ -172,11 +183,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_contact_group(resource_name, max_members: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_contact_group(resource_name, group_fields: nil, max_members: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resourceName}', options) command.response_representation = Google::Apis::PeopleV1::ContactGroup::Representation command.response_class = Google::Apis::PeopleV1::ContactGroup command.params['resourceName'] = resource_name unless resource_name.nil? + command.query['groupFields'] = group_fields unless group_fields.nil? command.query['maxMembers'] = max_members unless max_members.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -185,6 +197,11 @@ module Google # List all contact groups owned by the authenticated user. Members of the # contact groups are not populated. + # @param [String] group_fields + # Optional. A field mask to restrict which fields on the group are returned. + # Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or + # set to empty. Valid fields are: * clientData * groupType * memberCount * + # metadata * name # @param [Fixnum] page_size # Optional. The maximum number of resources to return. Valid values are between # 1 and 1000, inclusive. Defaults to 30 if not set or set to 0. @@ -212,10 +229,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_contact_groups(page_size: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_contact_groups(group_fields: nil, page_size: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/contactGroups', options) command.response_representation = Google::Apis::PeopleV1::ListContactGroupsResponse::Representation command.response_class = Google::Apis::PeopleV1::ListContactGroupsResponse + command.query['groupFields'] = group_fields unless group_fields.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['syncToken'] = sync_token unless sync_token.nil? diff --git a/generated/google-apis-people_v1/synth.metadata b/generated/google-apis-people_v1/synth.metadata index 038bf1345..98cc4553b 100644 --- a/generated/google-apis-people_v1/synth.metadata +++ b/generated/google-apis-people_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "754e6f59db65ed8e3b69965bdd5f4c024f4bc296" + "sha": "3bc8667260d47c9295352865c9bcc653283b03ce" } } ]