feat: Automated regeneration of people v1 client (#2459)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2021-01-21 03:04:13,137 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-people-v1 nothing to commit, working tree clean 2021-01-21 03:04:13,209 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth people v1 DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth people v1 git clean -df bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching zeitwerk 2.4.2 Fetching public_suffix 4.0.6 Fetching concurrent-ruby 1.1.8 Fetching minitest 5.14.3 Installing zeitwerk 2.4.2 Installing minitest 5.14.3 Installing public_suffix 4.0.6 Installing concurrent-ruby 1.1.8 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.2.6 Fetching byebug 11.1.3 Fetching coderay 1.1.3 Fetching json 2.5.1 Installing byebug 11.1.3 with native extensions Installing json 2.5.1 with native extensions Installing coderay 1.1.3 Fetching docile 1.3.5 Installing docile 1.3.5 Fetching simplecov-html 0.10.2 Using sync 0.5.0 Fetching thor 1.1.0 Installing simplecov-html 0.10.2 Installing thor 1.1.0 Fetching rexml 3.2.4 Fetching declarative 0.0.20 Installing rexml 3.2.4 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Fetching faraday-net_http 1.0.1 Installing fakefs 0.20.1 Installing faraday-net_http 1.0.1 Fetching multipart-post 2.1.1 Fetching ruby2_keywords 0.0.4 Installing ruby2_keywords 0.0.4 Installing multipart-post 2.1.1 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Fetching jwt 2.2.2 Installing github-markup 1.7.0 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Fetching httpclient 2.8.3 Installing os 0.9.6 Fetching mini_mime 1.0.2 Installing httpclient 2.8.3 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching multi_xml 0.6.0 Fetching rspec-support 3.10.1 Installing multi_xml 0.6.0 Installing rspec-support 3.10.1 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching method_source 1.0.0 Fetching opencensus 0.5.0 Installing method_source 1.0.0 Installing opencensus 0.5.0 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching yard 0.9.26 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Installing yard 0.9.26 Fetching redcarpet 3.5.1 Installing redcarpet 3.5.1 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.11.0 Installing ruby-progressbar 1.11.0 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching addressable 2.7.0 Fetching parser 2.7.2.0 Installing addressable 2.7.0 Installing parser 2.7.2.0 Fetching i18n 1.8.7 Installing i18n 1.8.7 Fetching tzinfo 2.0.4 Installing tzinfo 2.0.4 Fetching tins 1.28.0 Installing tins 1.28.0 Fetching crack 0.4.5 Installing crack 0.4.5 Fetching faraday 1.3.0 Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Installing faraday 1.3.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching rspec-expectations 3.10.1 Fetching rspec-core 3.10.1 Installing rspec-expectations 3.10.1 Installing rspec-core 3.10.1 Fetching rspec-mocks 3.10.1 Installing rspec-mocks 3.10.1 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching rubocop 0.49.1 Fetching activesupport 6.1.1 Installing activesupport 6.1.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching pry-doc 0.13.5 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching google-apis-core 0.2.0 Installing google-apis-core 0.2.0 Installing pry-doc 0.13.5 Fetching google-apis-discovery_v1 0.1.0 Installing google-apis-discovery_v1 0.1.0 Using google-apis-generator 0.1.2 from source at `.` Bundle complete! 25 Gemfile dependencies, 81 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen /workspace/generated --api=people.v1 --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check Loading people, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/people.v1.json conflict google-apis-people_v1/lib/google/apis/people_v1/classes.rb <ople_v1/classes.rb? (enter "h" for help) [Ynaqdhm] a force google-apis-people_v1/lib/google/apis/people_v1/classes.rb conflict google-apis-people_v1/lib/google/apis/people_v1/representations.rb force google-apis-people_v1/lib/google/apis/people_v1/representations.rb conflict google-apis-people_v1/lib/google/apis/people_v1/service.rb force google-apis-people_v1/lib/google/apis/people_v1/service.rb conflict google-apis-people_v1/lib/google/apis/people_v1/gem_version.rb force google-apis-people_v1/lib/google/apis/people_v1/gem_version.rb conflict google-apis-people_v1/CHANGELOG.md force google-apis-people_v1/CHANGELOG.md Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Using rake 13.0.3 Using public_suffix 4.0.6 Using bundler 2.2.6 Using declarative 0.0.20 Using declarative-option 0.1.0 Using diff-lcs 1.4.4 Using faraday-net_http 1.0.1 Using multipart-post 2.1.1 Using ruby2_keywords 0.0.4 Using jwt 2.2.2 Using memoist 0.16.2 Using multi_json 1.15.0 Using httpclient 2.8.3 Using mini_mime 1.0.2 Using uber 0.1.0 Using retriable 3.1.2 Using rexml 3.2.4 Using opencensus 0.5.0 Using redcarpet 3.5.1 Using rspec-support 3.10.1 Using yard 0.9.26 Using representable 3.0.4 Using addressable 2.7.0 Fetching os 1.1.1 Using faraday 1.3.0 Using rspec-core 3.10.1 Using rspec-expectations 3.10.1 Using rspec-mocks 3.10.1 Using signet 0.14.0 Using rspec 3.10.0 Installing os 1.1.1 Using googleauth 0.14.0 Using google-apis-core 0.2.0 Using google-apis-people_v1 0.2.0 from source at `.` Bundle complete! 8 Gemfile dependencies, 33 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. /root/.rbenv/versions/2.6.6/bin/ruby -I/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.1/lib /root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb Google::Apis::PeopleV1 should load Finished in 0.3306 seconds (files took 0.1026 seconds to load) 1 example, 0 failures Files: 4 Modules: 3 ( 1 undocumented) Classes: 65 ( 0 undocumented) Constants: 16 ( 0 undocumented) Attributes: 143 ( 0 undocumented) Methods: 148 ( 0 undocumented) 99.73% documented google-apis-people_v1 0.2.0 built to pkg/google-apis-people_v1-0.2.0.gem. conflict /workspace/api_names_out.yaml force /workspace/api_names_out.yaml 2021-01-21 03:04:45,296 synthtool [DEBUG] > Wrote metadata to generated/google-apis-people_v1/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google-apis-people_v1/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/d1a977ae-86ff-41c3-afb0-6f2a713bfd4c/targets - [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
parent
3bc8667260
commit
b4fe7a75bd
|
@ -128637,6 +128637,8 @@
|
||||||
"/people:v1/ClientData/metadata": metadata
|
"/people:v1/ClientData/metadata": metadata
|
||||||
"/people:v1/ClientData/value": value
|
"/people:v1/ClientData/value": value
|
||||||
"/people:v1/ContactGroup": contact_group
|
"/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/etag": etag
|
||||||
"/people:v1/ContactGroup/formattedName": formatted_name
|
"/people:v1/ContactGroup/formattedName": formatted_name
|
||||||
"/people:v1/ContactGroup/groupType": group_type
|
"/people:v1/ContactGroup/groupType": group_type
|
||||||
|
@ -128667,6 +128669,7 @@
|
||||||
"/people:v1/CoverPhoto/url": url
|
"/people:v1/CoverPhoto/url": url
|
||||||
"/people:v1/CreateContactGroupRequest": create_contact_group_request
|
"/people:v1/CreateContactGroupRequest": create_contact_group_request
|
||||||
"/people:v1/CreateContactGroupRequest/contactGroup": contact_group
|
"/people:v1/CreateContactGroupRequest/contactGroup": contact_group
|
||||||
|
"/people:v1/CreateContactGroupRequest/readGroupFields": read_group_fields
|
||||||
"/people:v1/Date": date
|
"/people:v1/Date": date
|
||||||
"/people:v1/Date/day": day
|
"/people:v1/Date/day": day
|
||||||
"/people:v1/Date/month": month
|
"/people:v1/Date/month": month
|
||||||
|
@ -128707,6 +128710,9 @@
|
||||||
"/people:v1/GetPeopleResponse": get_people_response
|
"/people:v1/GetPeopleResponse": get_people_response
|
||||||
"/people:v1/GetPeopleResponse/responses": responses
|
"/people:v1/GetPeopleResponse/responses": responses
|
||||||
"/people:v1/GetPeopleResponse/responses/response": response
|
"/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": im_client
|
||||||
"/people:v1/ImClient/formattedProtocol": formatted_protocol
|
"/people:v1/ImClient/formattedProtocol": formatted_protocol
|
||||||
"/people:v1/ImClient/formattedType": formatted_type
|
"/people:v1/ImClient/formattedType": formatted_type
|
||||||
|
@ -128958,6 +128964,8 @@
|
||||||
"/people:v1/Tagline/value": value
|
"/people:v1/Tagline/value": value
|
||||||
"/people:v1/UpdateContactGroupRequest": update_contact_group_request
|
"/people:v1/UpdateContactGroupRequest": update_contact_group_request
|
||||||
"/people:v1/UpdateContactGroupRequest/contactGroup": contact_group
|
"/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": update_contact_photo_request
|
||||||
"/people:v1/UpdateContactPhotoRequest/personFields": person_fields
|
"/people:v1/UpdateContactPhotoRequest/personFields": person_fields
|
||||||
"/people:v1/UpdateContactPhotoRequest/photoBytes": photo_bytes
|
"/people:v1/UpdateContactPhotoRequest/photoBytes": photo_bytes
|
||||||
|
@ -128977,6 +128985,7 @@
|
||||||
"/people:v1/fields": fields
|
"/people:v1/fields": fields
|
||||||
"/people:v1/key": key
|
"/people:v1/key": key
|
||||||
"/people:v1/people.contactGroups.batchGet": batch_contact_group_get
|
"/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/maxMembers": max_members
|
||||||
"/people:v1/people.contactGroups.batchGet/resourceNames": resource_names
|
"/people:v1/people.contactGroups.batchGet/resourceNames": resource_names
|
||||||
"/people:v1/people.contactGroups.create": create_contact_group
|
"/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/deleteContacts": delete_contacts
|
||||||
"/people:v1/people.contactGroups.delete/resourceName": resource_name
|
"/people:v1/people.contactGroups.delete/resourceName": resource_name
|
||||||
"/people:v1/people.contactGroups.get": get_contact_group
|
"/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/maxMembers": max_members
|
||||||
"/people:v1/people.contactGroups.get/resourceName": resource_name
|
"/people:v1/people.contactGroups.get/resourceName": resource_name
|
||||||
"/people:v1/people.contactGroups.list": list_contact_groups
|
"/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/pageSize": page_size
|
||||||
"/people:v1/people.contactGroups.list/pageToken": page_token
|
"/people:v1/people.contactGroups.list/pageToken": page_token
|
||||||
"/people:v1/people.contactGroups.list/syncToken": sync_token
|
"/people:v1/people.contactGroups.list/syncToken": sync_token
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# Release history for google-apis-people_v1
|
# 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)
|
### v0.1.0 (2021-01-07)
|
||||||
|
|
||||||
|
|
|
@ -327,6 +327,11 @@ module Google
|
||||||
class ContactGroup
|
class ContactGroup
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The group's client data.
|
||||||
|
# Corresponds to the JSON property `clientData`
|
||||||
|
# @return [Array<Google::Apis::PeopleV1::GroupClientData>]
|
||||||
|
attr_accessor :client_data
|
||||||
|
|
||||||
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource.
|
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource.
|
||||||
# Used for web cache validation.
|
# Used for web cache validation.
|
||||||
# Corresponds to the JSON property `etag`
|
# Corresponds to the JSON property `etag`
|
||||||
|
@ -381,6 +386,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@client_data = args[:client_data] if args.key?(:client_data)
|
||||||
@etag = args[:etag] if args.key?(:etag)
|
@etag = args[:etag] if args.key?(:etag)
|
||||||
@formatted_name = args[:formatted_name] if args.key?(:formatted_name)
|
@formatted_name = args[:formatted_name] if args.key?(:formatted_name)
|
||||||
@group_type = args[:group_type] if args.key?(:group_type)
|
@group_type = args[:group_type] if args.key?(:group_type)
|
||||||
|
@ -569,6 +575,13 @@ module Google
|
||||||
# @return [Google::Apis::PeopleV1::ContactGroup]
|
# @return [Google::Apis::PeopleV1::ContactGroup]
|
||||||
attr_accessor :contact_group
|
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)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -576,6 +589,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@contact_group = args[:contact_group] if args.key?(:contact_group)
|
@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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -930,6 +944,32 @@ module Google
|
||||||
end
|
end
|
||||||
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.
|
# A person's instant messaging client.
|
||||||
class ImClient
|
class ImClient
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -2481,6 +2521,21 @@ module Google
|
||||||
# @return [Google::Apis::PeopleV1::ContactGroup]
|
# @return [Google::Apis::PeopleV1::ContactGroup]
|
||||||
attr_accessor :contact_group
|
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)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -2488,6 +2543,8 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@contact_group = args[:contact_group] if args.key?(:contact_group)
|
@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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -19,10 +19,10 @@ module Google
|
||||||
GEM_VERSION = "0.2.0"
|
GEM_VERSION = "0.2.0"
|
||||||
|
|
||||||
# Version of the code generator used to generate this client
|
# 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 of the discovery document this client was generated from
|
||||||
REVISION = "20210112"
|
REVISION = "20210120"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -178,6 +178,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GroupClientData
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ImClient
|
class ImClient
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -490,6 +496,8 @@ module Google
|
||||||
class ContactGroup
|
class ContactGroup
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
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 :etag, as: 'etag'
|
||||||
property :formatted_name, as: 'formattedName'
|
property :formatted_name, as: 'formattedName'
|
||||||
property :group_type, as: 'groupType'
|
property :group_type, as: 'groupType'
|
||||||
|
@ -553,6 +561,7 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation
|
property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation
|
||||||
|
|
||||||
|
property :read_group_fields, as: 'readGroupFields'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -659,6 +668,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GroupClientData
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ImClient
|
class ImClient
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1090,6 +1107,8 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,11 @@ module Google
|
||||||
|
|
||||||
# Get a list of contact groups owned by the authenticated user by specifying a
|
# Get a list of contact groups owned by the authenticated user by specifying a
|
||||||
# list of contact group resource names.
|
# 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
|
# @param [Fixnum] max_members
|
||||||
# Optional. Specifies the maximum number of members to return for each group.
|
# Optional. Specifies the maximum number of members to return for each group.
|
||||||
# Defaults to 0 if not set, which will return zero members.
|
# 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::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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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 = make_simple_command(:get, 'v1/contactGroups:batchGet', options)
|
||||||
command.response_representation = Google::Apis::PeopleV1::BatchGetContactGroupsResponse::Representation
|
command.response_representation = Google::Apis::PeopleV1::BatchGetContactGroupsResponse::Representation
|
||||||
command.response_class = Google::Apis::PeopleV1::BatchGetContactGroupsResponse
|
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['maxMembers'] = max_members unless max_members.nil?
|
||||||
command.query['resourceNames'] = resource_names unless resource_names.nil?
|
command.query['resourceNames'] = resource_names unless resource_names.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -152,6 +158,11 @@ module Google
|
||||||
# contact group resource name.
|
# contact group resource name.
|
||||||
# @param [String] resource_name
|
# @param [String] resource_name
|
||||||
# Required. The resource name of the contact group to get.
|
# 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
|
# @param [Fixnum] max_members
|
||||||
# Optional. Specifies the maximum number of members to return. Defaults to 0 if
|
# Optional. Specifies the maximum number of members to return. Defaults to 0 if
|
||||||
# not set, which will return zero members.
|
# 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::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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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 = make_simple_command(:get, 'v1/{+resourceName}', options)
|
||||||
command.response_representation = Google::Apis::PeopleV1::ContactGroup::Representation
|
command.response_representation = Google::Apis::PeopleV1::ContactGroup::Representation
|
||||||
command.response_class = Google::Apis::PeopleV1::ContactGroup
|
command.response_class = Google::Apis::PeopleV1::ContactGroup
|
||||||
command.params['resourceName'] = resource_name unless resource_name.nil?
|
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['maxMembers'] = max_members unless max_members.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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
|
# List all contact groups owned by the authenticated user. Members of the
|
||||||
# contact groups are not populated.
|
# 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
|
# @param [Fixnum] page_size
|
||||||
# Optional. The maximum number of resources to return. Valid values are between
|
# 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.
|
# 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::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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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 = make_simple_command(:get, 'v1/contactGroups', options)
|
||||||
command.response_representation = Google::Apis::PeopleV1::ListContactGroupsResponse::Representation
|
command.response_representation = Google::Apis::PeopleV1::ListContactGroupsResponse::Representation
|
||||||
command.response_class = Google::Apis::PeopleV1::ListContactGroupsResponse
|
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['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['syncToken'] = sync_token unless sync_token.nil?
|
command.query['syncToken'] = sync_token unless sync_token.nil?
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"git": {
|
"git": {
|
||||||
"name": ".",
|
"name": ".",
|
||||||
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
|
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
|
||||||
"sha": "754e6f59db65ed8e3b69965bdd5f4c024f4bc296"
|
"sha": "3bc8667260d47c9295352865c9bcc653283b03ce"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue