Autogenerated update (2019-07-18)

Update:
- dialogflow_v2
- dialogflow_v2beta1
- jobs_v2
- people_v1
This commit is contained in:
Google APIs 2019-07-18 00:38:18 +00:00
parent c6bba269d2
commit 835292f54a
13 changed files with 423 additions and 599 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/ # @see https://cloud.google.com/dialogflow/
module DialogflowV2 module DialogflowV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20190708' REVISION = '20190717'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2679,6 +2679,73 @@ module Google
end end
end end
# Represents an annotated conversation dataset.
# ConversationDataset can have multiple AnnotatedConversationDataset, each of
# them represents one result from one annotation task.
# AnnotatedConversationDataset can only be generated from annotation task,
# which will be triggered by LabelConversation.
class GoogleCloudDialogflowV2beta1AnnotatedConversationDataset
include Google::Apis::Core::Hashable
# Output only. Number of examples that have annotations in the annotated
# conversation dataset.
# Corresponds to the JSON property `completedExampleCount`
# @return [Fixnum]
attr_accessor :completed_example_count
# Output only. Creation time of this annotated conversation dataset.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Optional. The description of the annotated conversation dataset.
# Maximum of 10000 bytes.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Required. The display name of the annotated conversation dataset.
# It's specified when user starts an annotation task. Maximum of 64 bytes.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. Number of examples in the annotated conversation dataset.
# Corresponds to the JSON property `exampleCount`
# @return [Fixnum]
attr_accessor :example_count
# Output only. AnnotatedConversationDataset resource name. Format:
# `projects/<Project ID>/conversationDatasets/<Conversation Dataset
# ID>/annotatedConversationDatasets/<Annotated Conversation Dataset ID>`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Question type name that identifies a labeling task.
# A question is a single task that a worker answers. A question type is set
# of related questions. Each question belongs to a particular question type.
# It can be used in CrowdCompute UI to filter and manage labeling tasks.
# Corresponds to the JSON property `questionTypeName`
# @return [String]
attr_accessor :question_type_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@completed_example_count = args[:completed_example_count] if args.key?(:completed_example_count)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@example_count = args[:example_count] if args.key?(:example_count)
@name = args[:name] if args.key?(:name)
@question_type_name = args[:question_type_name] if args.key?(:question_type_name)
end
end
# Metadata for article suggestion models. # Metadata for article suggestion models.
class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2811,11 +2878,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Metadata for smart reply models.
# Corresponds to the JSON property `smartReplyModelMetadata`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata]
attr_accessor :smart_reply_model_metadata
# Output only. State of the model. A model can only serve prediction requests # Output only. State of the model. A model can only serve prediction requests
# after it gets deployed. # after it gets deployed.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
@ -2833,7 +2895,6 @@ module Google
@datasets = args[:datasets] if args.key?(:datasets) @datasets = args[:datasets] if args.key?(:datasets)
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@smart_reply_model_metadata = args[:smart_reply_model_metadata] if args.key?(:smart_reply_model_metadata)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
end end
end end
@ -4588,6 +4649,30 @@ module Google
end end
end end
# The response for
# ConversationDatasets.LabelConversation
class GoogleCloudDialogflowV2beta1LabelConversationResponse
include Google::Apis::Core::Hashable
# Represents an annotated conversation dataset.
# ConversationDataset can have multiple AnnotatedConversationDataset, each of
# them represents one result from one annotation task.
# AnnotatedConversationDataset can only be generated from annotation task,
# which will be triggered by LabelConversation.
# Corresponds to the JSON property `annotatedConversationDataset`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AnnotatedConversationDataset]
attr_accessor :annotated_conversation_dataset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotated_conversation_dataset = args[:annotated_conversation_dataset] if args.key?(:annotated_conversation_dataset)
end
end
# Represents the contents of the original request that was passed to # Represents the contents of the original request that was passed to
# the `[Streaming]DetectIntent` call. # the `[Streaming]DetectIntent` call.
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
@ -4831,19 +4916,6 @@ module Google
end end
end end
# Metadata for smart reply models.
class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The request message for a webhook call. # The request message for a webhook call.
class GoogleCloudDialogflowV2beta1WebhookRequest class GoogleCloudDialogflowV2beta1WebhookRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -424,6 +424,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1AnnotatedConversationDataset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -730,6 +736,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1LabelConversationResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -754,12 +766,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1WebhookRequest class GoogleCloudDialogflowV2beta1WebhookRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1497,6 +1503,19 @@ module Google
end end
end end
class GoogleCloudDialogflowV2beta1AnnotatedConversationDataset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :completed_example_count, :numeric_string => true, as: 'completedExampleCount'
property :create_time, as: 'createTime'
property :description, as: 'description'
property :display_name, as: 'displayName'
property :example_count, :numeric_string => true, as: 'exampleCount'
property :name, as: 'name'
property :question_type_name, as: 'questionTypeName'
end
end
class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1539,8 +1558,6 @@ module Google
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :name, as: 'name' property :name, as: 'name'
property :smart_reply_model_metadata, as: 'smartReplyModelMetadata', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata::Representation
property :state, as: 'state' property :state, as: 'state'
end end
end end
@ -2012,6 +2029,14 @@ module Google
end end
end end
class GoogleCloudDialogflowV2beta1LabelConversationResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotated_conversation_dataset, as: 'annotatedConversationDataset', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AnnotatedConversationDataset, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AnnotatedConversationDataset::Representation
end
end
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2064,12 +2089,6 @@ module Google
end end
end end
class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudDialogflowV2beta1WebhookRequest class GoogleCloudDialogflowV2beta1WebhookRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/ # @see https://cloud.google.com/dialogflow/
module DialogflowV2beta1 module DialogflowV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20190708' REVISION = '20190717'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1665,6 +1665,73 @@ module Google
end end
end end
# Represents an annotated conversation dataset.
# ConversationDataset can have multiple AnnotatedConversationDataset, each of
# them represents one result from one annotation task.
# AnnotatedConversationDataset can only be generated from annotation task,
# which will be triggered by LabelConversation.
class GoogleCloudDialogflowV2beta1AnnotatedConversationDataset
include Google::Apis::Core::Hashable
# Output only. Number of examples that have annotations in the annotated
# conversation dataset.
# Corresponds to the JSON property `completedExampleCount`
# @return [Fixnum]
attr_accessor :completed_example_count
# Output only. Creation time of this annotated conversation dataset.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Optional. The description of the annotated conversation dataset.
# Maximum of 10000 bytes.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Required. The display name of the annotated conversation dataset.
# It's specified when user starts an annotation task. Maximum of 64 bytes.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. Number of examples in the annotated conversation dataset.
# Corresponds to the JSON property `exampleCount`
# @return [Fixnum]
attr_accessor :example_count
# Output only. AnnotatedConversationDataset resource name. Format:
# `projects/<Project ID>/conversationDatasets/<Conversation Dataset
# ID>/annotatedConversationDatasets/<Annotated Conversation Dataset ID>`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Question type name that identifies a labeling task.
# A question is a single task that a worker answers. A question type is set
# of related questions. Each question belongs to a particular question type.
# It can be used in CrowdCompute UI to filter and manage labeling tasks.
# Corresponds to the JSON property `questionTypeName`
# @return [String]
attr_accessor :question_type_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@completed_example_count = args[:completed_example_count] if args.key?(:completed_example_count)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@example_count = args[:example_count] if args.key?(:example_count)
@name = args[:name] if args.key?(:name)
@question_type_name = args[:question_type_name] if args.key?(:question_type_name)
end
end
# Metadata for article suggestion models. # Metadata for article suggestion models.
class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2030,11 +2097,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Metadata for smart reply models.
# Corresponds to the JSON property `smartReplyModelMetadata`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata]
attr_accessor :smart_reply_model_metadata
# Output only. State of the model. A model can only serve prediction requests # Output only. State of the model. A model can only serve prediction requests
# after it gets deployed. # after it gets deployed.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
@ -2052,7 +2114,6 @@ module Google
@datasets = args[:datasets] if args.key?(:datasets) @datasets = args[:datasets] if args.key?(:datasets)
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@smart_reply_model_metadata = args[:smart_reply_model_metadata] if args.key?(:smart_reply_model_metadata)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
end end
end end
@ -4221,6 +4282,30 @@ module Google
end end
end end
# The response for
# ConversationDatasets.LabelConversation
class GoogleCloudDialogflowV2beta1LabelConversationResponse
include Google::Apis::Core::Hashable
# Represents an annotated conversation dataset.
# ConversationDataset can have multiple AnnotatedConversationDataset, each of
# them represents one result from one annotation task.
# AnnotatedConversationDataset can only be generated from annotation task,
# which will be triggered by LabelConversation.
# Corresponds to the JSON property `annotatedConversationDataset`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnnotatedConversationDataset]
attr_accessor :annotated_conversation_dataset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotated_conversation_dataset = args[:annotated_conversation_dataset] if args.key?(:annotated_conversation_dataset)
end
end
# The response message for Contexts.ListContexts. # The response message for Contexts.ListContexts.
class GoogleCloudDialogflowV2beta1ListContextsResponse class GoogleCloudDialogflowV2beta1ListContextsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4921,19 +5006,6 @@ module Google
end end
end end
# Metadata for smart reply models.
class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Configuration of how speech should be synthesized. # Configuration of how speech should be synthesized.
class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -250,6 +250,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1AnnotatedConversationDataset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -652,6 +658,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1LabelConversationResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1ListContextsResponse class GoogleCloudDialogflowV2beta1ListContextsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -760,12 +772,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1249,6 +1255,19 @@ module Google
end end
end end
class GoogleCloudDialogflowV2beta1AnnotatedConversationDataset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :completed_example_count, :numeric_string => true, as: 'completedExampleCount'
property :create_time, as: 'createTime'
property :description, as: 'description'
property :display_name, as: 'displayName'
property :example_count, :numeric_string => true, as: 'exampleCount'
property :name, as: 'name'
property :question_type_name, as: 'questionTypeName'
end
end
class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1356,8 +1375,6 @@ module Google
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :name, as: 'name' property :name, as: 'name'
property :smart_reply_model_metadata, as: 'smartReplyModelMetadata', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata::Representation
property :state, as: 'state' property :state, as: 'state'
end end
end end
@ -1924,6 +1941,14 @@ module Google
end end
end end
class GoogleCloudDialogflowV2beta1LabelConversationResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotated_conversation_dataset, as: 'annotatedConversationDataset', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnnotatedConversationDataset, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnnotatedConversationDataset::Representation
end
end
class GoogleCloudDialogflowV2beta1ListContextsResponse class GoogleCloudDialogflowV2beta1ListContextsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2110,12 +2135,6 @@ module Google
end end
end end
class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/talent-solution/job-search/docs/ # @see https://cloud.google.com/talent-solution/job-search/docs/
module JobsV2 module JobsV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20190531' REVISION = '20190712'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -80,8 +80,7 @@ module Google
# Deletes the specified company. # Deletes the specified company.
# @param [String] name # @param [String] name
# Required. # Required. The resource name of the company to be deleted,
# The resource name of the company to be deleted,
# such as, "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". # such as, "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd".
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -112,8 +111,7 @@ module Google
# Retrieves the specified company. # Retrieves the specified company.
# @param [String] name # @param [String] name
# Required. # Required. Resource name of the company to retrieve,
# Resource name of the company to retrieve,
# such as "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". # such as "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd".
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -144,18 +142,15 @@ module Google
# Lists all companies associated with a Cloud Talent Solution account. # Lists all companies associated with a Cloud Talent Solution account.
# @param [Boolean] must_have_open_jobs # @param [Boolean] must_have_open_jobs
# Optional. # Optional. Set to true if the companies request must have open jobs.
# Set to true if the companies request must have open jobs.
# Defaults to false. # Defaults to false.
# If true, at most page_size of companies are fetched, among which # If true, at most page_size of companies are fetched, among which
# only those with open jobs are returned. # only those with open jobs are returned.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. # Optional. The maximum number of companies to be returned, at most 100.
# The maximum number of companies to be returned, at most 100.
# Default is 100 if a non-positive number is provided. # Default is 100 if a non-positive number is provided.
# @param [String] page_token # @param [String] page_token
# Optional. # Optional. The starting indicator from which to return results.
# The starting indicator from which to return results.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -246,12 +241,11 @@ module Google
# Deprecated. Use ListJobs instead. # Deprecated. Use ListJobs instead.
# Lists all jobs associated with a company. # Lists all jobs associated with a company.
# @param [String] company_name # @param [String] company_name
# Required. # Required. The resource name of the company that owns the jobs to be listed,
# The resource name of the company that owns the jobs to be listed,
# such as, "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". # such as, "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd".
# @param [Boolean] ids_only # @param [Boolean] ids_only
# Optional. # Optional. If set to `true`, only job ID, job requisition ID and language code
# If set to `true`, only job ID, job requisition ID and language code will be # will be
# returned. # returned.
# A typical use is to synchronize job repositories. # A typical use is to synchronize job repositories.
# Defaults to false. # Defaults to false.
@ -262,19 +256,17 @@ module Google
# Set to true if the total number of open jobs is to be returned. # Set to true if the total number of open jobs is to be returned.
# Defaults to false. # Defaults to false.
# @param [String] job_requisition_id # @param [String] job_requisition_id
# Optional. # Optional. The requisition ID, also known as posting ID, assigned by the
# The requisition ID, also known as posting ID, assigned by the company # company
# to the job. # to the job.
# The maximum number of allowable characters is 225. # The maximum number of allowable characters is 225.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. # Optional. The maximum number of jobs to be returned per page of results.
# The maximum number of jobs to be returned per page of results.
# If ids_only is set to true, the maximum allowed page size # If ids_only is set to true, the maximum allowed page size
# is 1000. Otherwise, the maximum allowed page size is 100. # is 1000. Otherwise, the maximum allowed page size is 100.
# Default is 100 if empty or a number < 1 is specified. # Default is 100 if empty or a number < 1 is specified.
# @param [String] page_token # @param [String] page_token
# Optional. # Optional. The starting point of a query result.
# The starting point of a query result.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -373,8 +365,7 @@ module Google
# Typically, the job becomes unsearchable within 10 seconds, but it may take # Typically, the job becomes unsearchable within 10 seconds, but it may take
# up to 5 minutes. # up to 5 minutes.
# @param [String] name # @param [String] name
# Required. # Required. The resource name of the job to be deleted, such as "jobs/11111111".
# The resource name of the job to be deleted, such as "jobs/11111111".
# @param [Boolean] disable_fast_process # @param [Boolean] disable_fast_process
# Deprecated. This field is not working anymore. # Deprecated. This field is not working anymore.
# Optional. # Optional.
@ -445,8 +436,7 @@ module Google
# Retrieves the specified job, whose status is OPEN or recently EXPIRED # Retrieves the specified job, whose status is OPEN or recently EXPIRED
# within the last 90 days. # within the last 90 days.
# @param [String] name # @param [String] name
# Required. # Required. The resource name of the job to retrieve, such as "jobs/11111111".
# The resource name of the job to retrieve, such as "jobs/11111111".
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -516,8 +506,7 @@ module Google
# Lists jobs by filter. # Lists jobs by filter.
# @param [String] filter # @param [String] filter
# Required. # Required. The filter string specifies the jobs to be enumerated.
# The filter string specifies the jobs to be enumerated.
# Supported operator: =, AND # Supported operator: =, AND
# The fields eligible for filtering are: # The fields eligible for filtering are:
# * `companyName` (Required) # * `companyName` (Required)
@ -526,20 +515,17 @@ module Google
# * companyName = "companies/123" # * companyName = "companies/123"
# * companyName = "companies/123" AND requisitionId = "req-1" # * companyName = "companies/123" AND requisitionId = "req-1"
# @param [Boolean] ids_only # @param [Boolean] ids_only
# Optional. # Optional. If set to `true`, only Job.name, Job.requisition_id and
# If set to `true`, only Job.name, Job.requisition_id and
# Job.language_code will be returned. # Job.language_code will be returned.
# A typical use case is to synchronize job repositories. # A typical use case is to synchronize job repositories.
# Defaults to false. # Defaults to false.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. # Optional. The maximum number of jobs to be returned per page of results.
# The maximum number of jobs to be returned per page of results.
# If ids_only is set to true, the maximum allowed page size # If ids_only is set to true, the maximum allowed page size
# is 1000. Otherwise, the maximum allowed page size is 100. # is 1000. Otherwise, the maximum allowed page size is 100.
# Default is 100 if empty or a number < 1 is specified. # Default is 100 if empty or a number < 1 is specified.
# @param [String] page_token # @param [String] page_token
# Optional. # Optional. The starting point of a query result.
# The starting point of a query result.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -681,11 +667,9 @@ module Google
# Completes the specified prefix with job keyword suggestions. # Completes the specified prefix with job keyword suggestions.
# Intended for use by a job search auto-complete search box. # Intended for use by a job search auto-complete search box.
# @param [String] company_name # @param [String] company_name
# Optional. # Optional. If provided, restricts completion to the specified company.
# If provided, restricts completion to the specified company.
# @param [String] language_code # @param [String] language_code
# Required. # Required. The language of the query. This is
# The language of the query. This is
# the BCP-47 language code, such as "en-US" or "sr-Latn". # the BCP-47 language code, such as "en-US" or "sr-Latn".
# For more information, see # For more information, see
# [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
@ -698,18 +682,14 @@ module Google
# language_code or companies having open jobs with same # language_code or companies having open jobs with same
# language_code are returned. # language_code are returned.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Required. # Required. Completion result count.
# Completion result count.
# The maximum allowed page size is 10. # The maximum allowed page size is 10.
# @param [String] query # @param [String] query
# Required. # Required. The query used to generate suggestions.
# The query used to generate suggestions.
# @param [String] scope # @param [String] scope
# Optional. # Optional. The scope of the completion. The defaults is CompletionScope.PUBLIC.
# The scope of the completion. The defaults is CompletionScope.PUBLIC.
# @param [String] type # @param [String] type
# Optional. # Optional. The completion topic. The default is CompletionType.COMBINED.
# The completion topic. The default is CompletionType.COMBINED.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/people/ # @see https://developers.google.com/people/
module PeopleV1 module PeopleV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190716' REVISION = '20190717'
# See, edit, download, and permanently delete your contacts # See, edit, download, and permanently delete your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'

View File

@ -514,29 +514,6 @@ module Google
end end
end end
# The response for deleteing a contact's photo.
class DeleteContactPhotoResponse
include Google::Apis::Core::Hashable
# Information about a person merged from various data sources such as the
# authenticated user's contacts and profile data.
# Most fields can have multiple items. The items in a field have no guaranteed
# order, but each non-empty field is guaranteed to have exactly one field with
# `metadata.primary` set to true.
# Corresponds to the JSON property `person`
# @return [Google::Apis::PeopleV1::Person]
attr_accessor :person
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@person = args[:person] if args.key?(:person)
end
end
# A read-only G Suite Domain membership. # A read-only G Suite Domain membership.
class DomainMembership class DomainMembership
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2124,88 +2101,6 @@ module Google
end end
end end
# A request to update an existing contact's photo.
# All requests must have a valid photo format: JPEG or PNG.
class UpdateContactPhotoRequest
include Google::Apis::Core::Hashable
# **Optional.** Not specifying any fields will skip the post mutate read.
# A field mask to restrict which fields on the person are
# returned. Multiple fields can be specified by separating them with commas.
# Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * braggingRights
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * relationshipInterests
# * relationshipStatuses
# * residences
# * sipAddresses
# * skills
# * taglines
# * urls
# * userDefined
# Corresponds to the JSON property `personFields`
# @return [String]
attr_accessor :person_fields
# Raw photo bytes
# Corresponds to the JSON property `photoBytes`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :photo_bytes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@person_fields = args[:person_fields] if args.key?(:person_fields)
@photo_bytes = args[:photo_bytes] if args.key?(:photo_bytes)
end
end
# The response for updating a contact's photo.
class UpdateContactPhotoResponse
include Google::Apis::Core::Hashable
# Information about a person merged from various data sources such as the
# authenticated user's contacts and profile data.
# Most fields can have multiple items. The items in a field have no guaranteed
# order, but each non-empty field is guaranteed to have exactly one field with
# `metadata.primary` set to true.
# Corresponds to the JSON property `person`
# @return [Google::Apis::PeopleV1::Person]
attr_accessor :person
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@person = args[:person] if args.key?(:person)
end
end
# A person's associated URLs. # A person's associated URLs.
class Url class Url
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -100,12 +100,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DeleteContactPhotoResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DomainMembership class DomainMembership
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -316,18 +310,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UpdateContactPhotoRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateContactPhotoResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Url class Url
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -475,14 +457,6 @@ module Google
end end
end end
class DeleteContactPhotoResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
end
end
class DomainMembership class DomainMembership
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -912,22 +886,6 @@ module Google
end end
end end
class UpdateContactPhotoRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :person_fields, as: 'personFields'
property :photo_bytes, :base64 => true, as: 'photoBytes'
end
end
class UpdateContactPhotoResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
end
end
class Url class Url
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -354,71 +354,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Delete a contact's photo.
# @param [String] resource_name
# The resource name of the contact whose photo will be deleted.
# @param [String] person_fields
# **Optional.** Not specifying any fields will skip the post mutate read.
# A field mask to restrict which fields on the person are
# returned. Multiple fields can be specified by separating them with commas.
# Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * braggingRights
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * relationshipInterests
# * relationshipStatuses
# * residences
# * sipAddresses
# * skills
# * taglines
# * urls
# * userDefined
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PeopleV1::DeleteContactPhotoResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PeopleV1::DeleteContactPhotoResponse]
#
# @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 delete_person_contact_photo(resource_name, person_fields: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+resourceName}:deleteContactPhoto', options)
command.response_representation = Google::Apis::PeopleV1::DeleteContactPhotoResponse::Representation
command.response_class = Google::Apis::PeopleV1::DeleteContactPhotoResponse
command.params['resourceName'] = resource_name unless resource_name.nil?
command.query['personFields'] = person_fields unless person_fields.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Provides information about a person by specifying a resource name. Use # Provides information about a person by specifying a resource name. Use
# `people/me` to indicate the authenticated user. # `people/me` to indicate the authenticated user.
# <br> # <br>
@ -647,39 +582,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update a contact's photo.
# @param [String] resource_name
# Person resource name
# @param [Google::Apis::PeopleV1::UpdateContactPhotoRequest] update_contact_photo_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PeopleV1::UpdateContactPhotoResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PeopleV1::UpdateContactPhotoResponse]
#
# @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 update_person_contact_photo(resource_name, update_contact_photo_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+resourceName}:updateContactPhoto', options)
command.request_representation = Google::Apis::PeopleV1::UpdateContactPhotoRequest::Representation
command.request_object = update_contact_photo_request_object
command.response_representation = Google::Apis::PeopleV1::UpdateContactPhotoResponse::Representation
command.response_class = Google::Apis::PeopleV1::UpdateContactPhotoResponse
command.params['resourceName'] = resource_name unless resource_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Provides a list of the authenticated user's contacts merged with any # Provides a list of the authenticated user's contacts merged with any
# connected profiles. # connected profiles.
# <br> # <br>