Autogenerated update (2018-03-07)
Delete: - chat_v1 Update: - bigquerydatatransfer_v1 - cloudiot_v1 - cloudkms_v1 - cloudresourcemanager_v1 - cloudtasks_v2beta2 - oslogin_v1beta - script_v1 - toolresults_v1beta3 - videointelligence_v1beta1
This commit is contained in:
parent
0e70f11571
commit
d698a2564a
|
@ -9887,6 +9887,7 @@
|
||||||
"/bigquerydatatransfer:v1/ListTransferRunsResponse/transferRuns": transfer_runs
|
"/bigquerydatatransfer:v1/ListTransferRunsResponse/transferRuns": transfer_runs
|
||||||
"/bigquerydatatransfer:v1/ListTransferRunsResponse/transferRuns/transfer_run": transfer_run
|
"/bigquerydatatransfer:v1/ListTransferRunsResponse/transferRuns/transfer_run": transfer_run
|
||||||
"/bigquerydatatransfer:v1/Location": location
|
"/bigquerydatatransfer:v1/Location": location
|
||||||
|
"/bigquerydatatransfer:v1/Location/displayName": display_name
|
||||||
"/bigquerydatatransfer:v1/Location/labels": labels
|
"/bigquerydatatransfer:v1/Location/labels": labels
|
||||||
"/bigquerydatatransfer:v1/Location/labels/label": label
|
"/bigquerydatatransfer:v1/Location/labels/label": label
|
||||||
"/bigquerydatatransfer:v1/Location/locationId": location_id
|
"/bigquerydatatransfer:v1/Location/locationId": location_id
|
||||||
|
@ -13906,6 +13907,7 @@
|
||||||
"/cloudkms:v1/ListLocationsResponse/locations/location": location
|
"/cloudkms:v1/ListLocationsResponse/locations/location": location
|
||||||
"/cloudkms:v1/ListLocationsResponse/nextPageToken": next_page_token
|
"/cloudkms:v1/ListLocationsResponse/nextPageToken": next_page_token
|
||||||
"/cloudkms:v1/Location": location
|
"/cloudkms:v1/Location": location
|
||||||
|
"/cloudkms:v1/Location/displayName": display_name
|
||||||
"/cloudkms:v1/Location/labels": labels
|
"/cloudkms:v1/Location/labels": labels
|
||||||
"/cloudkms:v1/Location/labels/label": label
|
"/cloudkms:v1/Location/labels/label": label
|
||||||
"/cloudkms:v1/Location/locationId": location_id
|
"/cloudkms:v1/Location/locationId": location_id
|
||||||
|
@ -14762,6 +14764,7 @@
|
||||||
"/cloudtasks:v2beta2/ListTasksResponse/tasks": tasks
|
"/cloudtasks:v2beta2/ListTasksResponse/tasks": tasks
|
||||||
"/cloudtasks:v2beta2/ListTasksResponse/tasks/task": task
|
"/cloudtasks:v2beta2/ListTasksResponse/tasks/task": task
|
||||||
"/cloudtasks:v2beta2/Location": location
|
"/cloudtasks:v2beta2/Location": location
|
||||||
|
"/cloudtasks:v2beta2/Location/displayName": display_name
|
||||||
"/cloudtasks:v2beta2/Location/labels": labels
|
"/cloudtasks:v2beta2/Location/labels": labels
|
||||||
"/cloudtasks:v2beta2/Location/labels/label": label
|
"/cloudtasks:v2beta2/Location/labels/label": label
|
||||||
"/cloudtasks:v2beta2/Location/locationId": location_id
|
"/cloudtasks:v2beta2/Location/locationId": location_id
|
||||||
|
@ -69974,6 +69977,100 @@
|
||||||
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1beta2_VideoSegment": google_cloud_videointelligence_v1beta2_video_segment
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1beta2_VideoSegment": google_cloud_videointelligence_v1beta2_video_segment
|
||||||
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1beta2_VideoSegment/endTimeOffset": end_time_offset
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1beta2_VideoSegment/endTimeOffset": end_time_offset
|
||||||
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1beta2_VideoSegment/startTimeOffset": start_time_offset
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1beta2_VideoSegment/startTimeOffset": start_time_offset
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress": google_cloud_videointelligence_v1p1beta1_annotate_video_progress
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress/annotationProgress": annotation_progress
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress/annotationProgress/annotation_progress": annotation_progress
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse": google_cloud_videointelligence_v1p1beta1_annotate_video_response
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse/annotationResults": annotation_results
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse/annotationResults/annotation_result": annotation_result
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute": google_cloud_videointelligence_v1p1beta1_emotion_attribute
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute/emotion": emotion
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute/score": score
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_Entity": google_cloud_videointelligence_v1p1beta1_entity
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_Entity/description": description
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_Entity/entityId": entity_id
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_Entity/languageCode": language_code
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation": google_cloud_videointelligence_v1p1beta1_explicit_content_annotation
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation/frames": frames
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation/frames/frame": frame
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame": google_cloud_videointelligence_v1p1beta1_explicit_content_frame
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame/pornographyLikelihood": pornography_likelihood
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame/timeOffset": time_offset
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation": google_cloud_videointelligence_v1p1beta1_face_detection_annotation
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation/frames": frames
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation/frames/frame": frame
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation/segments": segments
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation/segments/segment": segment
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute": google_cloud_videointelligence_v1p1beta1_face_detection_attribute
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute/emotions": emotions
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute/emotions/emotion": emotion
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute/normalizedBoundingBox": normalized_bounding_box
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame": google_cloud_videointelligence_v1p1beta1_face_detection_frame
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame/attributes": attributes
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame/attributes/attribute": attribute
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame/timeOffset": time_offset
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceSegment": google_cloud_videointelligence_v1p1beta1_face_segment
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_FaceSegment/segment": segment
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation": google_cloud_videointelligence_v1p1beta1_label_annotation
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/categoryEntities": category_entities
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/categoryEntities/category_entity": category_entity
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/entity": entity
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/frames": frames
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/frames/frame": frame
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/segments": segments
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/segments/segment": segment
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelFrame": google_cloud_videointelligence_v1p1beta1_label_frame
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelFrame/confidence": confidence
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelFrame/timeOffset": time_offset
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelSegment": google_cloud_videointelligence_v1p1beta1_label_segment
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelSegment/confidence": confidence
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelSegment/segment": segment
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox": google_cloud_videointelligence_v1p1beta1_normalized_bounding_box
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox/bottom": bottom
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox/left": left
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox/right": right
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox/top": top
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative": google_cloud_videointelligence_v1p1beta1_speech_recognition_alternative
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative/confidence": confidence
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative/transcript": transcript
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative/words": words
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative/words/word": word
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription": google_cloud_videointelligence_v1p1beta1_speech_transcription
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription/alternatives": alternatives
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription/alternatives/alternative": alternative
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress": google_cloud_videointelligence_v1p1beta1_video_annotation_progress
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/inputUri": input_uri
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/progressPercent": progress_percent
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/startTime": start_time
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/updateTime": update_time
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults": google_cloud_videointelligence_v1p1beta1_video_annotation_results
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/error": error
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/explicitAnnotation": explicit_annotation
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/faceDetectionAnnotations": face_detection_annotations
|
||||||
|
? "/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/faceDetectionAnnotations/face_detection_annotation"
|
||||||
|
: face_detection_annotation
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/frameLabelAnnotations": frame_label_annotations
|
||||||
|
? "/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/frameLabelAnnotations/frame_label_annotation"
|
||||||
|
: frame_label_annotation
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/inputUri": input_uri
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/segmentLabelAnnotations": segment_label_annotations
|
||||||
|
? "/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/segmentLabelAnnotations/segment_label_annotation"
|
||||||
|
: segment_label_annotation
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/shotAnnotations": shot_annotations
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/shotAnnotations/shot_annotation": shot_annotation
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/shotLabelAnnotations": shot_label_annotations
|
||||||
|
? "/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/shotLabelAnnotations/shot_label_annotation"
|
||||||
|
: shot_label_annotation
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/speechTranscriptions": speech_transcriptions
|
||||||
|
? "/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/speechTranscriptions/speech_transcription"
|
||||||
|
: speech_transcription
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoSegment": google_cloud_videointelligence_v1p1beta1_video_segment
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoSegment/endTimeOffset": end_time_offset
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoSegment/startTimeOffset": start_time_offset
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_WordInfo": google_cloud_videointelligence_v1p1beta1_word_info
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_WordInfo/endTime": end_time
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_WordInfo/startTime": start_time
|
||||||
|
"/videointelligence:v1beta1/GoogleCloudVideointelligenceV1p1beta1_WordInfo/word": word
|
||||||
"/videointelligence:v1beta1/GoogleLongrunning_Operation": google_longrunning_operation
|
"/videointelligence:v1beta1/GoogleLongrunning_Operation": google_longrunning_operation
|
||||||
"/videointelligence:v1beta1/GoogleLongrunning_Operation/done": done
|
"/videointelligence:v1beta1/GoogleLongrunning_Operation/done": done
|
||||||
"/videointelligence:v1beta1/GoogleLongrunning_Operation/error": error
|
"/videointelligence:v1beta1/GoogleLongrunning_Operation/error": error
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/bigquery/
|
# @see https://cloud.google.com/bigquery/
|
||||||
module BigquerydatatransferV1
|
module BigquerydatatransferV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180202'
|
REVISION = '20180303'
|
||||||
|
|
||||||
# View and manage your data in Google BigQuery
|
# View and manage your data in Google BigQuery
|
||||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
|
|
@ -478,6 +478,12 @@ module Google
|
||||||
class Location
|
class Location
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The friendly name for this location, typically a nearby city name.
|
||||||
|
# For example, "Tokyo".
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
# Cross-service attributes for the location. For example
|
# Cross-service attributes for the location. For example
|
||||||
# `"cloud.googleapis.com/region": "us-east1"`
|
# `"cloud.googleapis.com/region": "us-east1"`
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
|
@ -507,6 +513,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
@labels = args[:labels] if args.key?(:labels)
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
@location_id = args[:location_id] if args.key?(:location_id)
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
@metadata = args[:metadata] if args.key?(:metadata)
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
|
|
@ -238,6 +238,7 @@ module Google
|
||||||
class Location
|
class Location
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
hash :labels, as: 'labels'
|
hash :labels, as: 'labels'
|
||||||
property :location_id, as: 'locationId'
|
property :location_id, as: 'locationId'
|
||||||
hash :metadata, as: 'metadata'
|
hash :metadata, as: 'metadata'
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
# Copyright 2015 Google Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
require 'google/apis/chat_v1/service.rb'
|
|
||||||
require 'google/apis/chat_v1/classes.rb'
|
|
||||||
require 'google/apis/chat_v1/representations.rb'
|
|
||||||
|
|
||||||
module Google
|
|
||||||
module Apis
|
|
||||||
# Hangouts Chat API
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# @see https://developers.google.com/hangouts/chat
|
|
||||||
module ChatV1
|
|
||||||
VERSION = 'V1'
|
|
||||||
REVISION = '20180227'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,890 +0,0 @@
|
||||||
# Copyright 2015 Google Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
require 'date'
|
|
||||||
require 'google/apis/core/base_service'
|
|
||||||
require 'google/apis/core/json_representation'
|
|
||||||
require 'google/apis/core/hashable'
|
|
||||||
require 'google/apis/errors'
|
|
||||||
|
|
||||||
module Google
|
|
||||||
module Apis
|
|
||||||
module ChatV1
|
|
||||||
|
|
||||||
# List of string parameters to supply when the action method is invoked.
|
|
||||||
# For example, consider three snooze buttons: snooze now, snooze 1 day,
|
|
||||||
# snooze next week. You might use action method = snooze(), passing the
|
|
||||||
# snooze type and snooze time in the list of string parameters.
|
|
||||||
class ActionParameter
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The name of the parameter for the action script.
|
|
||||||
# Corresponds to the JSON property `key`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :key
|
|
||||||
|
|
||||||
# The value of the parameter.
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Parameters that a bot can use to configure how it's response is posted.
|
|
||||||
class ActionResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The type of bot response.
|
|
||||||
# Corresponds to the JSON property `type`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :type
|
|
||||||
|
|
||||||
# URL for users to auth or config. (Only for REQUEST_CONFIG response types.)
|
|
||||||
# Corresponds to the JSON property `url`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :url
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
|
||||||
@url = args[:url] if args.key?(:url)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Annotations associated with the plain-text body of the message.
|
|
||||||
# Example plain-text message body:
|
|
||||||
# ```
|
|
||||||
# Hello @FooBot how are you!"
|
|
||||||
# ```
|
|
||||||
# The corresponding annotations metadata:
|
|
||||||
# ```
|
|
||||||
# "annotations":[`
|
|
||||||
# "type":"USER_MENTION",
|
|
||||||
# "startIndex":6,
|
|
||||||
# "length":7,
|
|
||||||
# "userMention": `
|
|
||||||
# "user": `
|
|
||||||
# "name":"users/107946847022116401880",
|
|
||||||
# "displayName":"FooBot",
|
|
||||||
# "avatarUrl":"https://goo.gl/aeDtrS",
|
|
||||||
# "type":"BOT"
|
|
||||||
# `,
|
|
||||||
# "type":"MENTION"
|
|
||||||
# `
|
|
||||||
# `]
|
|
||||||
# ```
|
|
||||||
class Annotation
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Length of the substring in the plain-text message body this annotation
|
|
||||||
# corresponds to.
|
|
||||||
# Corresponds to the JSON property `length`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :length
|
|
||||||
|
|
||||||
# Start index (0-based, inclusive) in the plain-text message body this
|
|
||||||
# annotation corresponds to.
|
|
||||||
# Corresponds to the JSON property `startIndex`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :start_index
|
|
||||||
|
|
||||||
# The type of this annotation.
|
|
||||||
# Corresponds to the JSON property `type`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :type
|
|
||||||
|
|
||||||
# Annotation metadata for user mentions (@).
|
|
||||||
# Corresponds to the JSON property `userMention`
|
|
||||||
# @return [Google::Apis::ChatV1::UserMentionMetadata]
|
|
||||||
attr_accessor :user_mention
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@length = args[:length] if args.key?(:length)
|
|
||||||
@start_index = args[:start_index] if args.key?(:start_index)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
|
||||||
@user_mention = args[:user_mention] if args.key?(:user_mention)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A button. Can be a text button or an image button.
|
|
||||||
class Button
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# An image button with an onclick action.
|
|
||||||
# Corresponds to the JSON property `imageButton`
|
|
||||||
# @return [Google::Apis::ChatV1::ImageButton]
|
|
||||||
attr_accessor :image_button
|
|
||||||
|
|
||||||
# A button with text and onclick action.
|
|
||||||
# Corresponds to the JSON property `textButton`
|
|
||||||
# @return [Google::Apis::ChatV1::TextButton]
|
|
||||||
attr_accessor :text_button
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@image_button = args[:image_button] if args.key?(:image_button)
|
|
||||||
@text_button = args[:text_button] if args.key?(:text_button)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A card is a UI element that can contain UI widgets such as texts, images.
|
|
||||||
class Card
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The actions of this card.
|
|
||||||
# Corresponds to the JSON property `cardActions`
|
|
||||||
# @return [Array<Google::Apis::ChatV1::CardAction>]
|
|
||||||
attr_accessor :card_actions
|
|
||||||
|
|
||||||
# The header of the card. A header usually contains a title and an image.
|
|
||||||
# Corresponds to the JSON property `header`
|
|
||||||
# @return [Google::Apis::ChatV1::CardHeader]
|
|
||||||
attr_accessor :header
|
|
||||||
|
|
||||||
# Name of the card.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# Sections are separated by a line divider.
|
|
||||||
# Corresponds to the JSON property `sections`
|
|
||||||
# @return [Array<Google::Apis::ChatV1::Section>]
|
|
||||||
attr_accessor :sections
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@card_actions = args[:card_actions] if args.key?(:card_actions)
|
|
||||||
@header = args[:header] if args.key?(:header)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@sections = args[:sections] if args.key?(:sections)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A card action is
|
|
||||||
# the action associated with the card. For an invoice card, a
|
|
||||||
# typical action would be: delete invoice, email invoice or open the
|
|
||||||
# invoice in browser.
|
|
||||||
class CardAction
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The label used to be displayed in the action menu item.
|
|
||||||
# Corresponds to the JSON property `actionLabel`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :action_label
|
|
||||||
|
|
||||||
# An onclick action (e.g. open a link).
|
|
||||||
# Corresponds to the JSON property `onClick`
|
|
||||||
# @return [Google::Apis::ChatV1::OnClick]
|
|
||||||
attr_accessor :on_click
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@action_label = args[:action_label] if args.key?(:action_label)
|
|
||||||
@on_click = args[:on_click] if args.key?(:on_click)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class CardHeader
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The image's type (e.g. square border or circular border).
|
|
||||||
# Corresponds to the JSON property `imageStyle`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :image_style
|
|
||||||
|
|
||||||
# The URL of the image in the card header.
|
|
||||||
# Corresponds to the JSON property `imageUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :image_url
|
|
||||||
|
|
||||||
# The subtitle of the card header.
|
|
||||||
# Corresponds to the JSON property `subtitle`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :subtitle
|
|
||||||
|
|
||||||
# The title must be specified. The header has a fixed height: if both a
|
|
||||||
# title and subtitle is specified, each will take up 1 line. If only the
|
|
||||||
# title is specified, it will take up both lines.
|
|
||||||
# Corresponds to the JSON property `title`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :title
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@image_style = args[:image_style] if args.key?(:image_style)
|
|
||||||
@image_url = args[:image_url] if args.key?(:image_url)
|
|
||||||
@subtitle = args[:subtitle] if args.key?(:subtitle)
|
|
||||||
@title = args[:title] if args.key?(:title)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A generic empty message that you can re-use to avoid defining duplicated
|
|
||||||
# empty messages in your APIs. A typical example is to use it as the request
|
|
||||||
# or the response type of an API method. For instance:
|
|
||||||
# service Foo `
|
|
||||||
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
||||||
# `
|
|
||||||
# The JSON representation for `Empty` is empty JSON object ````.
|
|
||||||
class Empty
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A form action describes the behavior when the form is submitted.
|
|
||||||
# For example, an Apps Script can be invoked to handle the form.
|
|
||||||
class FormAction
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Apps Script function to invoke when the containing element is
|
|
||||||
# clicked/activated.
|
|
||||||
# Corresponds to the JSON property `actionMethodName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :action_method_name
|
|
||||||
|
|
||||||
# List of action parameters.
|
|
||||||
# Corresponds to the JSON property `parameters`
|
|
||||||
# @return [Array<Google::Apis::ChatV1::ActionParameter>]
|
|
||||||
attr_accessor :parameters
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@action_method_name = args[:action_method_name] if args.key?(:action_method_name)
|
|
||||||
@parameters = args[:parameters] if args.key?(:parameters)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# An image that is specified by a URL and can have an onclick action.
|
|
||||||
class Image
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The aspect ratio of this image (width/height).
|
|
||||||
# Corresponds to the JSON property `aspectRatio`
|
|
||||||
# @return [Float]
|
|
||||||
attr_accessor :aspect_ratio
|
|
||||||
|
|
||||||
# The URL of the image.
|
|
||||||
# Corresponds to the JSON property `imageUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :image_url
|
|
||||||
|
|
||||||
# An onclick action (e.g. open a link).
|
|
||||||
# Corresponds to the JSON property `onClick`
|
|
||||||
# @return [Google::Apis::ChatV1::OnClick]
|
|
||||||
attr_accessor :on_click
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio)
|
|
||||||
@image_url = args[:image_url] if args.key?(:image_url)
|
|
||||||
@on_click = args[:on_click] if args.key?(:on_click)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# An image button with an onclick action.
|
|
||||||
class ImageButton
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The icon specified by an enum that indices to an icon provided by Chat
|
|
||||||
# API.
|
|
||||||
# Corresponds to the JSON property `icon`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :icon
|
|
||||||
|
|
||||||
# The icon specified by a URL.
|
|
||||||
# Corresponds to the JSON property `iconUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :icon_url
|
|
||||||
|
|
||||||
# The name of this image_button which will be used for accessibility.
|
|
||||||
# Default value will be provided if developers don't specify.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# An onclick action (e.g. open a link).
|
|
||||||
# Corresponds to the JSON property `onClick`
|
|
||||||
# @return [Google::Apis::ChatV1::OnClick]
|
|
||||||
attr_accessor :on_click
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@icon = args[:icon] if args.key?(:icon)
|
|
||||||
@icon_url = args[:icon_url] if args.key?(:icon_url)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@on_click = args[:on_click] if args.key?(:on_click)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A UI element contains a key (label) and a value (content). And this
|
|
||||||
# element may also contain some actions such as onclick button.
|
|
||||||
class KeyValue
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The text of the bottom label. Formatted text supported.
|
|
||||||
# Corresponds to the JSON property `bottomLabel`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :bottom_label
|
|
||||||
|
|
||||||
# A button. Can be a text button or an image button.
|
|
||||||
# Corresponds to the JSON property `button`
|
|
||||||
# @return [Google::Apis::ChatV1::Button]
|
|
||||||
attr_accessor :button
|
|
||||||
|
|
||||||
# The text of the content. Formatted text supported and always required.
|
|
||||||
# Corresponds to the JSON property `content`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :content
|
|
||||||
|
|
||||||
# If the content should be multiline.
|
|
||||||
# Corresponds to the JSON property `contentMultiline`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :content_multiline
|
|
||||||
alias_method :content_multiline?, :content_multiline
|
|
||||||
|
|
||||||
# An enum value that will be replaced by the Chat API with the
|
|
||||||
# corresponding icon image.
|
|
||||||
# Corresponds to the JSON property `icon`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :icon
|
|
||||||
|
|
||||||
# The icon specified by a URL.
|
|
||||||
# Corresponds to the JSON property `iconUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :icon_url
|
|
||||||
|
|
||||||
# An onclick action (e.g. open a link).
|
|
||||||
# Corresponds to the JSON property `onClick`
|
|
||||||
# @return [Google::Apis::ChatV1::OnClick]
|
|
||||||
attr_accessor :on_click
|
|
||||||
|
|
||||||
# The text of the top label. Formatted text supported.
|
|
||||||
# Corresponds to the JSON property `topLabel`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :top_label
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@bottom_label = args[:bottom_label] if args.key?(:bottom_label)
|
|
||||||
@button = args[:button] if args.key?(:button)
|
|
||||||
@content = args[:content] if args.key?(:content)
|
|
||||||
@content_multiline = args[:content_multiline] if args.key?(:content_multiline)
|
|
||||||
@icon = args[:icon] if args.key?(:icon)
|
|
||||||
@icon_url = args[:icon_url] if args.key?(:icon_url)
|
|
||||||
@on_click = args[:on_click] if args.key?(:on_click)
|
|
||||||
@top_label = args[:top_label] if args.key?(:top_label)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class ListMembershipsResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# List of memberships in the requested (or first) page.
|
|
||||||
# Corresponds to the JSON property `memberships`
|
|
||||||
# @return [Array<Google::Apis::ChatV1::Membership>]
|
|
||||||
attr_accessor :memberships
|
|
||||||
|
|
||||||
# Continuation token to retrieve the next page of results. It will be empty
|
|
||||||
# for the last page of results.
|
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :next_page_token
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@memberships = args[:memberships] if args.key?(:memberships)
|
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class ListSpacesResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Continuation token to retrieve the next page of results. It will be empty
|
|
||||||
# for the last page of results. Tokens expire in an hour. An error is thrown
|
|
||||||
# if an expired token is passed.
|
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :next_page_token
|
|
||||||
|
|
||||||
# List of spaces in the requested (or first) page.
|
|
||||||
# Corresponds to the JSON property `spaces`
|
|
||||||
# @return [Array<Google::Apis::ChatV1::Space>]
|
|
||||||
attr_accessor :spaces
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
||||||
@spaces = args[:spaces] if args.key?(:spaces)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Represents a membership relation in Hangouts Chat.
|
|
||||||
class Membership
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The creation time of the membership a.k.a the time at which the member
|
|
||||||
# joined the space, if applicable.
|
|
||||||
# Corresponds to the JSON property `createTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :create_time
|
|
||||||
|
|
||||||
# A user in Hangouts Chat.
|
|
||||||
# Corresponds to the JSON property `member`
|
|
||||||
# @return [Google::Apis::ChatV1::User]
|
|
||||||
attr_accessor :member
|
|
||||||
|
|
||||||
# Resource name of the membership, in the form "spaces/*/members/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY/members/105115627578887013105
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# State of the membership.
|
|
||||||
# Corresponds to the JSON property `state`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :state
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
|
||||||
@member = args[:member] if args.key?(:member)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@state = args[:state] if args.key?(:state)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A message in Hangouts Chat.
|
|
||||||
class Message
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Parameters that a bot can use to configure how it's response is posted.
|
|
||||||
# Corresponds to the JSON property `actionResponse`
|
|
||||||
# @return [Google::Apis::ChatV1::ActionResponse]
|
|
||||||
attr_accessor :action_response
|
|
||||||
|
|
||||||
# Output only. Annotations associated with the text in this message.
|
|
||||||
# Corresponds to the JSON property `annotations`
|
|
||||||
# @return [Array<Google::Apis::ChatV1::Annotation>]
|
|
||||||
attr_accessor :annotations
|
|
||||||
|
|
||||||
# Rich, formatted and interactive cards that can be used to display UI
|
|
||||||
# elements such as: formatted texts, buttons, clickable images. Cards are
|
|
||||||
# normally displayed below the plain-text body of the message.
|
|
||||||
# Corresponds to the JSON property `cards`
|
|
||||||
# @return [Array<Google::Apis::ChatV1::Card>]
|
|
||||||
attr_accessor :cards
|
|
||||||
|
|
||||||
# Output only. The time at which the message was created in Hangouts Chat
|
|
||||||
# server.
|
|
||||||
# Corresponds to the JSON property `createTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :create_time
|
|
||||||
|
|
||||||
# A plain-text description of the message's cards, used when the actual cards
|
|
||||||
# cannot be displayed (e.g. mobile notifications).
|
|
||||||
# Corresponds to the JSON property `fallbackText`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :fallback_text
|
|
||||||
|
|
||||||
# Resource name, in the form "spaces/*/messages/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# Text for generating preview chips. This text will not be displayed to the
|
|
||||||
# user, but any links to images, web pages, videos, etc. included here will
|
|
||||||
# generate preview chips.
|
|
||||||
# Corresponds to the JSON property `previewText`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :preview_text
|
|
||||||
|
|
||||||
# A user in Hangouts Chat.
|
|
||||||
# Corresponds to the JSON property `sender`
|
|
||||||
# @return [Google::Apis::ChatV1::User]
|
|
||||||
attr_accessor :sender
|
|
||||||
|
|
||||||
# A room or DM in Hangouts Chat.
|
|
||||||
# Corresponds to the JSON property `space`
|
|
||||||
# @return [Google::Apis::ChatV1::Space]
|
|
||||||
attr_accessor :space
|
|
||||||
|
|
||||||
# Plain-text body of the message.
|
|
||||||
# Corresponds to the JSON property `text`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :text
|
|
||||||
|
|
||||||
# A thread in Hangouts Chat.
|
|
||||||
# Corresponds to the JSON property `thread`
|
|
||||||
# @return [Google::Apis::ChatV1::Thread]
|
|
||||||
attr_accessor :thread
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@action_response = args[:action_response] if args.key?(:action_response)
|
|
||||||
@annotations = args[:annotations] if args.key?(:annotations)
|
|
||||||
@cards = args[:cards] if args.key?(:cards)
|
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
|
||||||
@fallback_text = args[:fallback_text] if args.key?(:fallback_text)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@preview_text = args[:preview_text] if args.key?(:preview_text)
|
|
||||||
@sender = args[:sender] if args.key?(:sender)
|
|
||||||
@space = args[:space] if args.key?(:space)
|
|
||||||
@text = args[:text] if args.key?(:text)
|
|
||||||
@thread = args[:thread] if args.key?(:thread)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# An onclick action (e.g. open a link).
|
|
||||||
class OnClick
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A form action describes the behavior when the form is submitted.
|
|
||||||
# For example, an Apps Script can be invoked to handle the form.
|
|
||||||
# Corresponds to the JSON property `action`
|
|
||||||
# @return [Google::Apis::ChatV1::FormAction]
|
|
||||||
attr_accessor :action
|
|
||||||
|
|
||||||
# A link that opens a new window.
|
|
||||||
# Corresponds to the JSON property `openLink`
|
|
||||||
# @return [Google::Apis::ChatV1::OpenLink]
|
|
||||||
attr_accessor :open_link
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@action = args[:action] if args.key?(:action)
|
|
||||||
@open_link = args[:open_link] if args.key?(:open_link)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A link that opens a new window.
|
|
||||||
class OpenLink
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The URL to open.
|
|
||||||
# Corresponds to the JSON property `url`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :url
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@url = args[:url] if args.key?(:url)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A section contains a collection of widgets that are rendered
|
|
||||||
# (vertically) in the order that they are specified. Across all platforms,
|
|
||||||
# cards have a narrow fixed width, so
|
|
||||||
# there is currently no need for layout properties (e.g. float).
|
|
||||||
class Section
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The header of the section, text formatted supported.
|
|
||||||
# Corresponds to the JSON property `header`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :header
|
|
||||||
|
|
||||||
# A section must contain at least 1 widget.
|
|
||||||
# Corresponds to the JSON property `widgets`
|
|
||||||
# @return [Array<Google::Apis::ChatV1::WidgetMarkup>]
|
|
||||||
attr_accessor :widgets
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@header = args[:header] if args.key?(:header)
|
|
||||||
@widgets = args[:widgets] if args.key?(:widgets)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A room or DM in Hangouts Chat.
|
|
||||||
class Space
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Output only. The display name (only if the space is a room).
|
|
||||||
# Corresponds to the JSON property `displayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :display_name
|
|
||||||
|
|
||||||
# Resource name of the space, in the form "spaces/*".
|
|
||||||
# Example: spaces/AAAAMpdlehYs
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# Output only. The type of a space.
|
|
||||||
# Corresponds to the JSON property `type`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :type
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@display_name = args[:display_name] if args.key?(:display_name)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A button with text and onclick action.
|
|
||||||
class TextButton
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# An onclick action (e.g. open a link).
|
|
||||||
# Corresponds to the JSON property `onClick`
|
|
||||||
# @return [Google::Apis::ChatV1::OnClick]
|
|
||||||
attr_accessor :on_click
|
|
||||||
|
|
||||||
# The text of the button.
|
|
||||||
# Corresponds to the JSON property `text`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :text
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@on_click = args[:on_click] if args.key?(:on_click)
|
|
||||||
@text = args[:text] if args.key?(:text)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A paragraph of text. Formatted text supported.
|
|
||||||
class TextParagraph
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `text`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :text
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@text = args[:text] if args.key?(:text)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A thread in Hangouts Chat.
|
|
||||||
class Thread
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Resource name, in the form "spaces/*/threads/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY/threads/UMxbHmzDlr4
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A user in Hangouts Chat.
|
|
||||||
class User
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The user's display name.
|
|
||||||
# Corresponds to the JSON property `displayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :display_name
|
|
||||||
|
|
||||||
# Resource name, in the format "users/*".
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# User type.
|
|
||||||
# Corresponds to the JSON property `type`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :type
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@display_name = args[:display_name] if args.key?(:display_name)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Annotation metadata for user mentions (@).
|
|
||||||
class UserMentionMetadata
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The type of user mention.
|
|
||||||
# Corresponds to the JSON property `type`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :type
|
|
||||||
|
|
||||||
# A user in Hangouts Chat.
|
|
||||||
# Corresponds to the JSON property `user`
|
|
||||||
# @return [Google::Apis::ChatV1::User]
|
|
||||||
attr_accessor :user
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
|
||||||
@user = args[:user] if args.key?(:user)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A widget is a UI element that presents texts, images, etc.
|
|
||||||
class WidgetMarkup
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A list of buttons. Buttons is also oneof data and only one of these
|
|
||||||
# fields should be set.
|
|
||||||
# Corresponds to the JSON property `buttons`
|
|
||||||
# @return [Array<Google::Apis::ChatV1::Button>]
|
|
||||||
attr_accessor :buttons
|
|
||||||
|
|
||||||
# An image that is specified by a URL and can have an onclick action.
|
|
||||||
# Corresponds to the JSON property `image`
|
|
||||||
# @return [Google::Apis::ChatV1::Image]
|
|
||||||
attr_accessor :image
|
|
||||||
|
|
||||||
# A UI element contains a key (label) and a value (content). And this
|
|
||||||
# element may also contain some actions such as onclick button.
|
|
||||||
# Corresponds to the JSON property `keyValue`
|
|
||||||
# @return [Google::Apis::ChatV1::KeyValue]
|
|
||||||
attr_accessor :key_value
|
|
||||||
|
|
||||||
# A paragraph of text. Formatted text supported.
|
|
||||||
# Corresponds to the JSON property `textParagraph`
|
|
||||||
# @return [Google::Apis::ChatV1::TextParagraph]
|
|
||||||
attr_accessor :text_paragraph
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@buttons = args[:buttons] if args.key?(:buttons)
|
|
||||||
@image = args[:image] if args.key?(:image)
|
|
||||||
@key_value = args[:key_value] if args.key?(:key_value)
|
|
||||||
@text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,445 +0,0 @@
|
||||||
# Copyright 2015 Google Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
require 'date'
|
|
||||||
require 'google/apis/core/base_service'
|
|
||||||
require 'google/apis/core/json_representation'
|
|
||||||
require 'google/apis/core/hashable'
|
|
||||||
require 'google/apis/errors'
|
|
||||||
|
|
||||||
module Google
|
|
||||||
module Apis
|
|
||||||
module ChatV1
|
|
||||||
|
|
||||||
class ActionParameter
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ActionResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Annotation
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Button
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Card
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CardAction
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CardHeader
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Empty
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class FormAction
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Image
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ImageButton
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class KeyValue
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListMembershipsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListSpacesResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Membership
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Message
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class OnClick
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class OpenLink
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Section
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Space
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class TextButton
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class TextParagraph
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Thread
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class User
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class UserMentionMetadata
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class WidgetMarkup
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ActionParameter
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :key, as: 'key'
|
|
||||||
property :value, as: 'value'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ActionResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :type, as: 'type'
|
|
||||||
property :url, as: 'url'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Annotation
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :length, as: 'length'
|
|
||||||
property :start_index, as: 'startIndex'
|
|
||||||
property :type, as: 'type'
|
|
||||||
property :user_mention, as: 'userMention', class: Google::Apis::ChatV1::UserMentionMetadata, decorator: Google::Apis::ChatV1::UserMentionMetadata::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Button
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :image_button, as: 'imageButton', class: Google::Apis::ChatV1::ImageButton, decorator: Google::Apis::ChatV1::ImageButton::Representation
|
|
||||||
|
|
||||||
property :text_button, as: 'textButton', class: Google::Apis::ChatV1::TextButton, decorator: Google::Apis::ChatV1::TextButton::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Card
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :card_actions, as: 'cardActions', class: Google::Apis::ChatV1::CardAction, decorator: Google::Apis::ChatV1::CardAction::Representation
|
|
||||||
|
|
||||||
property :header, as: 'header', class: Google::Apis::ChatV1::CardHeader, decorator: Google::Apis::ChatV1::CardHeader::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
|
||||||
collection :sections, as: 'sections', class: Google::Apis::ChatV1::Section, decorator: Google::Apis::ChatV1::Section::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CardAction
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :action_label, as: 'actionLabel'
|
|
||||||
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CardHeader
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :image_style, as: 'imageStyle'
|
|
||||||
property :image_url, as: 'imageUrl'
|
|
||||||
property :subtitle, as: 'subtitle'
|
|
||||||
property :title, as: 'title'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Empty
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class FormAction
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :action_method_name, as: 'actionMethodName'
|
|
||||||
collection :parameters, as: 'parameters', class: Google::Apis::ChatV1::ActionParameter, decorator: Google::Apis::ChatV1::ActionParameter::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Image
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :aspect_ratio, as: 'aspectRatio'
|
|
||||||
property :image_url, as: 'imageUrl'
|
|
||||||
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ImageButton
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :icon, as: 'icon'
|
|
||||||
property :icon_url, as: 'iconUrl'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class KeyValue
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :bottom_label, as: 'bottomLabel'
|
|
||||||
property :button, as: 'button', class: Google::Apis::ChatV1::Button, decorator: Google::Apis::ChatV1::Button::Representation
|
|
||||||
|
|
||||||
property :content, as: 'content'
|
|
||||||
property :content_multiline, as: 'contentMultiline'
|
|
||||||
property :icon, as: 'icon'
|
|
||||||
property :icon_url, as: 'iconUrl'
|
|
||||||
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
|
|
||||||
|
|
||||||
property :top_label, as: 'topLabel'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListMembershipsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :memberships, as: 'memberships', class: Google::Apis::ChatV1::Membership, decorator: Google::Apis::ChatV1::Membership::Representation
|
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListSpacesResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :spaces, as: 'spaces', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Membership
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :member, as: 'member', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :state, as: 'state'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Message
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :action_response, as: 'actionResponse', class: Google::Apis::ChatV1::ActionResponse, decorator: Google::Apis::ChatV1::ActionResponse::Representation
|
|
||||||
|
|
||||||
collection :annotations, as: 'annotations', class: Google::Apis::ChatV1::Annotation, decorator: Google::Apis::ChatV1::Annotation::Representation
|
|
||||||
|
|
||||||
collection :cards, as: 'cards', class: Google::Apis::ChatV1::Card, decorator: Google::Apis::ChatV1::Card::Representation
|
|
||||||
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :fallback_text, as: 'fallbackText'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :preview_text, as: 'previewText'
|
|
||||||
property :sender, as: 'sender', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
|
|
||||||
|
|
||||||
property :space, as: 'space', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
|
|
||||||
|
|
||||||
property :text, as: 'text'
|
|
||||||
property :thread, as: 'thread', class: Google::Apis::ChatV1::Thread, decorator: Google::Apis::ChatV1::Thread::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class OnClick
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :action, as: 'action', class: Google::Apis::ChatV1::FormAction, decorator: Google::Apis::ChatV1::FormAction::Representation
|
|
||||||
|
|
||||||
property :open_link, as: 'openLink', class: Google::Apis::ChatV1::OpenLink, decorator: Google::Apis::ChatV1::OpenLink::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class OpenLink
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :url, as: 'url'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Section
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :header, as: 'header'
|
|
||||||
collection :widgets, as: 'widgets', class: Google::Apis::ChatV1::WidgetMarkup, decorator: Google::Apis::ChatV1::WidgetMarkup::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Space
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :display_name, as: 'displayName'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :type, as: 'type'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class TextButton
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
|
|
||||||
|
|
||||||
property :text, as: 'text'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class TextParagraph
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :text, as: 'text'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Thread
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class User
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :display_name, as: 'displayName'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :type, as: 'type'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class UserMentionMetadata
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :type, as: 'type'
|
|
||||||
property :user, as: 'user', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class WidgetMarkup
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :buttons, as: 'buttons', class: Google::Apis::ChatV1::Button, decorator: Google::Apis::ChatV1::Button::Representation
|
|
||||||
|
|
||||||
property :image, as: 'image', class: Google::Apis::ChatV1::Image, decorator: Google::Apis::ChatV1::Image::Representation
|
|
||||||
|
|
||||||
property :key_value, as: 'keyValue', class: Google::Apis::ChatV1::KeyValue, decorator: Google::Apis::ChatV1::KeyValue::Representation
|
|
||||||
|
|
||||||
property :text_paragraph, as: 'textParagraph', class: Google::Apis::ChatV1::TextParagraph, decorator: Google::Apis::ChatV1::TextParagraph::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,524 +0,0 @@
|
||||||
# Copyright 2015 Google Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
require 'google/apis/core/base_service'
|
|
||||||
require 'google/apis/core/json_representation'
|
|
||||||
require 'google/apis/core/hashable'
|
|
||||||
require 'google/apis/errors'
|
|
||||||
|
|
||||||
module Google
|
|
||||||
module Apis
|
|
||||||
module ChatV1
|
|
||||||
# Hangouts Chat API
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# @example
|
|
||||||
# require 'google/apis/chat_v1'
|
|
||||||
#
|
|
||||||
# Chat = Google::Apis::ChatV1 # Alias the module
|
|
||||||
# service = Chat::HangoutsChatService.new
|
|
||||||
#
|
|
||||||
# @see https://developers.google.com/hangouts/chat
|
|
||||||
class HangoutsChatService < Google::Apis::Core::BaseService
|
|
||||||
# @return [String]
|
|
||||||
# API key. Your API key identifies your project and provides you with API access,
|
|
||||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
||||||
attr_accessor :key
|
|
||||||
|
|
||||||
# @return [String]
|
|
||||||
# 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.
|
|
||||||
attr_accessor :quota_user
|
|
||||||
|
|
||||||
def initialize
|
|
||||||
super('https://chat.googleapis.com/', '')
|
|
||||||
@batch_path = 'batch'
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a message.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. Space resource name, in the form "spaces/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY
|
|
||||||
# @param [Google::Apis::ChatV1::Message] message_object
|
|
||||||
# @param [String] thread_key
|
|
||||||
# Opaque thread identifier string that can be specified to group messages
|
|
||||||
# into a single thread. If this is the first message with a given thread
|
|
||||||
# identifier, a new thread is created. Subsequent messages with the same
|
|
||||||
# thread identifier will be posted into the same thread. This relieves bots
|
|
||||||
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
|
|
||||||
# created earlier by them) to post
|
|
||||||
# further updates to it.
|
|
||||||
# Has no effect if thread field,
|
|
||||||
# corresponding to an existing thread, is set in message.
|
|
||||||
# @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::ChatV1::Message] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Message]
|
|
||||||
#
|
|
||||||
# @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 create_dm_conversation_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
|
|
||||||
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.request_object = message_object
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Message
|
|
||||||
command.params['parent'] = parent unless parent.nil?
|
|
||||||
command.query['threadKey'] = thread_key unless thread_key.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a message.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. Space resource name, in the form "spaces/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY
|
|
||||||
# @param [Google::Apis::ChatV1::Message] message_object
|
|
||||||
# @param [String] thread_key
|
|
||||||
# Opaque thread identifier string that can be specified to group messages
|
|
||||||
# into a single thread. If this is the first message with a given thread
|
|
||||||
# identifier, a new thread is created. Subsequent messages with the same
|
|
||||||
# thread identifier will be posted into the same thread. This relieves bots
|
|
||||||
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
|
|
||||||
# created earlier by them) to post
|
|
||||||
# further updates to it.
|
|
||||||
# Has no effect if thread field,
|
|
||||||
# corresponding to an existing thread, is set in message.
|
|
||||||
# @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::ChatV1::Message] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Message]
|
|
||||||
#
|
|
||||||
# @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 create_dm_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
|
|
||||||
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.request_object = message_object
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Message
|
|
||||||
command.params['parent'] = parent unless parent.nil?
|
|
||||||
command.query['threadKey'] = thread_key unless thread_key.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a message.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. Space resource name, in the form "spaces/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY
|
|
||||||
# @param [Google::Apis::ChatV1::Message] message_object
|
|
||||||
# @param [String] thread_key
|
|
||||||
# Opaque thread identifier string that can be specified to group messages
|
|
||||||
# into a single thread. If this is the first message with a given thread
|
|
||||||
# identifier, a new thread is created. Subsequent messages with the same
|
|
||||||
# thread identifier will be posted into the same thread. This relieves bots
|
|
||||||
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
|
|
||||||
# created earlier by them) to post
|
|
||||||
# further updates to it.
|
|
||||||
# Has no effect if thread field,
|
|
||||||
# corresponding to an existing thread, is set in message.
|
|
||||||
# @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::ChatV1::Message] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Message]
|
|
||||||
#
|
|
||||||
# @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 create_room_conversation_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
|
|
||||||
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.request_object = message_object
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Message
|
|
||||||
command.params['parent'] = parent unless parent.nil?
|
|
||||||
command.query['threadKey'] = thread_key unless thread_key.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a message.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. Space resource name, in the form "spaces/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY
|
|
||||||
# @param [Google::Apis::ChatV1::Message] message_object
|
|
||||||
# @param [String] thread_key
|
|
||||||
# Opaque thread identifier string that can be specified to group messages
|
|
||||||
# into a single thread. If this is the first message with a given thread
|
|
||||||
# identifier, a new thread is created. Subsequent messages with the same
|
|
||||||
# thread identifier will be posted into the same thread. This relieves bots
|
|
||||||
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
|
|
||||||
# created earlier by them) to post
|
|
||||||
# further updates to it.
|
|
||||||
# Has no effect if thread field,
|
|
||||||
# corresponding to an existing thread, is set in message.
|
|
||||||
# @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::ChatV1::Message] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Message]
|
|
||||||
#
|
|
||||||
# @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 create_room_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
|
|
||||||
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.request_object = message_object
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Message
|
|
||||||
command.params['parent'] = parent unless parent.nil?
|
|
||||||
command.query['threadKey'] = thread_key unless thread_key.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns a space.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. Resource name of the space, in the form "spaces/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY
|
|
||||||
# @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::ChatV1::Space] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Space]
|
|
||||||
#
|
|
||||||
# @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_space(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Space::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Space
|
|
||||||
command.params['name'] = name unless 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
|
|
||||||
|
|
||||||
# Lists spaces the caller is a member of.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# Requested page size. The value is capped at 1000.
|
|
||||||
# Server may return fewer results than requested.
|
|
||||||
# If unspecified, server will default to 100.
|
|
||||||
# @param [String] page_token
|
|
||||||
# A token identifying a page of results the server should return.
|
|
||||||
# @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::ChatV1::ListSpacesResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::ListSpacesResponse]
|
|
||||||
#
|
|
||||||
# @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_spaces(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/spaces', options)
|
|
||||||
command.response_representation = Google::Apis::ChatV1::ListSpacesResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::ListSpacesResponse
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns a membership.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. Resource name of the membership to be retrieved, in the form
|
|
||||||
# "spaces/*/members/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY/members/105115627578887013105
|
|
||||||
# @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::ChatV1::Membership] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Membership]
|
|
||||||
#
|
|
||||||
# @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_space_member(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Membership::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Membership
|
|
||||||
command.params['name'] = name unless 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
|
|
||||||
|
|
||||||
# Lists human memberships in a space.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. The resource name of the space for which membership list is to be
|
|
||||||
# fetched, in the form "spaces/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# Requested page size. The value is capped at 1000.
|
|
||||||
# Server may return fewer results than requested.
|
|
||||||
# If unspecified, server will default to 100.
|
|
||||||
# @param [String] page_token
|
|
||||||
# A token identifying a page of results the server should return.
|
|
||||||
# @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::ChatV1::ListMembershipsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::ListMembershipsResponse]
|
|
||||||
#
|
|
||||||
# @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_space_members(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/{+parent}/members', options)
|
|
||||||
command.response_representation = Google::Apis::ChatV1::ListMembershipsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::ListMembershipsResponse
|
|
||||||
command.params['parent'] = parent unless parent.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a message.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. Space resource name, in the form "spaces/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY
|
|
||||||
# @param [Google::Apis::ChatV1::Message] message_object
|
|
||||||
# @param [String] thread_key
|
|
||||||
# Opaque thread identifier string that can be specified to group messages
|
|
||||||
# into a single thread. If this is the first message with a given thread
|
|
||||||
# identifier, a new thread is created. Subsequent messages with the same
|
|
||||||
# thread identifier will be posted into the same thread. This relieves bots
|
|
||||||
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
|
|
||||||
# created earlier by them) to post
|
|
||||||
# further updates to it.
|
|
||||||
# Has no effect if thread field,
|
|
||||||
# corresponding to an existing thread, is set in message.
|
|
||||||
# @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::ChatV1::Message] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Message]
|
|
||||||
#
|
|
||||||
# @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 create_space_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
|
|
||||||
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.request_object = message_object
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Message
|
|
||||||
command.params['parent'] = parent unless parent.nil?
|
|
||||||
command.query['threadKey'] = thread_key unless thread_key.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Deletes a message.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. Resource name of the message to be deleted, in the form
|
|
||||||
# "spaces/*/messages/*"
|
|
||||||
# Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
|
|
||||||
# @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::ChatV1::Empty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Empty]
|
|
||||||
#
|
|
||||||
# @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_space_message(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Empty::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Empty
|
|
||||||
command.params['name'] = name unless 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
|
|
||||||
|
|
||||||
# Returns a message.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. Resource name of the message to be retrieved, in the form
|
|
||||||
# "spaces/*/messages/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
|
|
||||||
# @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::ChatV1::Message] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Message]
|
|
||||||
#
|
|
||||||
# @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_space_message(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Message
|
|
||||||
command.params['name'] = name unless 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
|
|
||||||
|
|
||||||
# Updates a message.
|
|
||||||
# @param [String] name
|
|
||||||
# Resource name, in the form "spaces/*/messages/*".
|
|
||||||
# Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
|
|
||||||
# @param [Google::Apis::ChatV1::Message] message_object
|
|
||||||
# @param [String] update_mask
|
|
||||||
# Required. The field paths to be updated.
|
|
||||||
# Currently supported field paths: "text", "cards".
|
|
||||||
# @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::ChatV1::Message] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ChatV1::Message]
|
|
||||||
#
|
|
||||||
# @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_space_message(name, message_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:put, 'v1/{+name}', options)
|
|
||||||
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.request_object = message_object
|
|
||||||
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
|
||||||
command.response_class = Google::Apis::ChatV1::Message
|
|
||||||
command.params['name'] = name unless name.nil?
|
|
||||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
protected
|
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
|
||||||
command.query['key'] = key unless key.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/iot
|
# @see https://cloud.google.com/iot
|
||||||
module CloudiotV1
|
module CloudiotV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180222'
|
REVISION = '20180227'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -336,11 +336,12 @@ module Google
|
||||||
# The configuration for notification of telemetry events received from the
|
# The configuration for notification of telemetry events received from the
|
||||||
# device. All telemetry events that were successfully published by the
|
# device. All telemetry events that were successfully published by the
|
||||||
# device and acknowledged by Cloud IoT Core are guaranteed to be
|
# device and acknowledged by Cloud IoT Core are guaranteed to be
|
||||||
# delivered to Cloud Pub/Sub. Only the first configuration is used. If you
|
# delivered to Cloud Pub/Sub. If multiple configurations match a message,
|
||||||
# try to publish a device telemetry event using MQTT without specifying a
|
# only the first matching configuration is used. If you try to publish a
|
||||||
# Cloud Pub/Sub topic for the device's registry, the connection closes
|
# device telemetry event using MQTT without specifying a Cloud Pub/Sub topic
|
||||||
# automatically. If you try to do so using an HTTP connection, an error
|
# for the device's registry, the connection closes automatically. If you try
|
||||||
# is returned.
|
# to do so using an HTTP connection, an error is returned. Up to 10
|
||||||
|
# configurations may be provided.
|
||||||
# Corresponds to the JSON property `eventNotificationConfigs`
|
# Corresponds to the JSON property `eventNotificationConfigs`
|
||||||
# @return [Array<Google::Apis::CloudiotV1::EventNotificationConfig>]
|
# @return [Array<Google::Apis::CloudiotV1::EventNotificationConfig>]
|
||||||
attr_accessor :event_notification_configs
|
attr_accessor :event_notification_configs
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/kms/
|
# @see https://cloud.google.com/kms/
|
||||||
module CloudkmsV1
|
module CloudkmsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180223'
|
REVISION = '20180303'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -582,6 +582,12 @@ module Google
|
||||||
class Location
|
class Location
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The friendly name for this location, typically a nearby city name.
|
||||||
|
# For example, "Tokyo".
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
# Cross-service attributes for the location. For example
|
# Cross-service attributes for the location. For example
|
||||||
# `"cloud.googleapis.com/region": "us-east1"`
|
# `"cloud.googleapis.com/region": "us-east1"`
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
|
@ -611,6 +617,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
@labels = args[:labels] if args.key?(:labels)
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
@location_id = args[:location_id] if args.key?(:location_id)
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
@metadata = args[:metadata] if args.key?(:metadata)
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
|
|
@ -291,6 +291,7 @@ module Google
|
||||||
class Location
|
class Location
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
hash :labels, as: 'labels'
|
hash :labels, as: 'labels'
|
||||||
property :location_id, as: 'locationId'
|
property :location_id, as: 'locationId'
|
||||||
hash :metadata, as: 'metadata'
|
hash :metadata, as: 'metadata'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1
|
module CloudresourcemanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180219'
|
REVISION = '20180305'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -1181,7 +1181,7 @@ module Google
|
||||||
class OrganizationOwner
|
class OrganizationOwner
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The Google for Work customer id used in the Directory API.
|
# The G Suite customer id used in the Directory API.
|
||||||
# Corresponds to the JSON property `directoryCustomerId`
|
# Corresponds to the JSON property `directoryCustomerId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :directory_customer_id
|
attr_accessor :directory_customer_id
|
||||||
|
@ -1448,7 +1448,7 @@ module Google
|
||||||
# An optional query string used to filter the Organizations to return in
|
# An optional query string used to filter the Organizations to return in
|
||||||
# the response. Filter rules are case-insensitive.
|
# the response. Filter rules are case-insensitive.
|
||||||
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
||||||
# `domain`, where the domain is a Google for Work domain, for example:
|
# `domain`, where the domain is a G Suite domain, for example:
|
||||||
# |Filter|Description|
|
# |Filter|Description|
|
||||||
# |------|-----------|
|
# |------|-----------|
|
||||||
# |owner.directorycustomerid:123456789|Organizations with
|
# |owner.directorycustomerid:123456789|Organizations with
|
||||||
|
|
|
@ -44,7 +44,7 @@ module Google
|
||||||
attr_accessor :quota_user
|
attr_accessor :quota_user
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://cloudresourcemanager.googleapis.com/', '')
|
super('https://content-cloudresourcemanager.googleapis.com/', '')
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -821,7 +821,8 @@ module Google
|
||||||
# polling at the 5th second with an exponential backoff.
|
# polling at the 5th second with an exponential backoff.
|
||||||
# Authorization requires the Google IAM permission
|
# Authorization requires the Google IAM permission
|
||||||
# `resourcemanager.projects.create` on the specified parent for the new
|
# `resourcemanager.projects.create` on the specified parent for the new
|
||||||
# project.
|
# project. The parent is identified by a specified ResourceId,
|
||||||
|
# which must include both an ID and a type, such as organization.
|
||||||
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
||||||
# @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.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/cloud-tasks/
|
# @see https://cloud.google.com/cloud-tasks/
|
||||||
module CloudtasksV2beta2
|
module CloudtasksV2beta2
|
||||||
VERSION = 'V2beta2'
|
VERSION = 'V2beta2'
|
||||||
REVISION = '20180123'
|
REVISION = '20180302'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -751,6 +751,12 @@ module Google
|
||||||
class Location
|
class Location
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The friendly name for this location, typically a nearby city name.
|
||||||
|
# For example, "Tokyo".
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
# Cross-service attributes for the location. For example
|
# Cross-service attributes for the location. For example
|
||||||
# `"cloud.googleapis.com/region": "us-east1"`
|
# `"cloud.googleapis.com/region": "us-east1"`
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
|
@ -780,6 +786,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
@labels = args[:labels] if args.key?(:labels)
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
@location_id = args[:location_id] if args.key?(:location_id)
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
@metadata = args[:metadata] if args.key?(:metadata)
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
|
|
@ -353,6 +353,7 @@ module Google
|
||||||
class Location
|
class Location
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
hash :labels, as: 'labels'
|
hash :labels, as: 'labels'
|
||||||
property :location_id, as: 'locationId'
|
property :location_id, as: 'locationId'
|
||||||
hash :metadata, as: 'metadata'
|
hash :metadata, as: 'metadata'
|
||||||
|
|
|
@ -18,14 +18,14 @@ require 'google/apis/oslogin_v1beta/representations.rb'
|
||||||
|
|
||||||
module Google
|
module Google
|
||||||
module Apis
|
module Apis
|
||||||
# Google Cloud OS Login API
|
# Cloud OS Login API
|
||||||
#
|
#
|
||||||
# Manages OS login configuration for Google account users.
|
# Manages OS login configuration for Google account users.
|
||||||
#
|
#
|
||||||
# @see https://cloud.google.com/compute/docs/oslogin/rest/
|
# @see https://cloud.google.com/compute/docs/oslogin/rest/
|
||||||
module OsloginV1beta
|
module OsloginV1beta
|
||||||
VERSION = 'V1beta'
|
VERSION = 'V1beta'
|
||||||
REVISION = '20180117'
|
REVISION = '20180306'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -20,7 +20,7 @@ require 'google/apis/errors'
|
||||||
module Google
|
module Google
|
||||||
module Apis
|
module Apis
|
||||||
module OsloginV1beta
|
module OsloginV1beta
|
||||||
# Google Cloud OS Login API
|
# Cloud OS Login API
|
||||||
#
|
#
|
||||||
# Manages OS login configuration for Google account users.
|
# Manages OS login configuration for Google account users.
|
||||||
#
|
#
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/apps-script/api/
|
# @see https://developers.google.com/apps-script/api/
|
||||||
module ScriptV1
|
module ScriptV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180118'
|
REVISION = '20180305'
|
||||||
|
|
||||||
# Read, send, delete, and manage your email
|
# Read, send, delete, and manage your email
|
||||||
AUTH_SCOPE = 'https://mail.google.com/'
|
AUTH_SCOPE = 'https://mail.google.com/'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://firebase.google.com/docs/test-lab/
|
# @see https://firebase.google.com/docs/test-lab/
|
||||||
module ToolresultsV1beta3
|
module ToolresultsV1beta3
|
||||||
VERSION = 'V1beta3'
|
VERSION = 'V1beta3'
|
||||||
REVISION = '20180226'
|
REVISION = '20180305'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -913,7 +913,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :history_id
|
attr_accessor :history_id
|
||||||
|
|
||||||
# A name to uniquely identify a history within a project. Maximum of 100
|
# A name to uniquely identify a history within a project. Maximum of 200
|
||||||
# characters.
|
# characters.
|
||||||
# - In response always set - In create request: always set
|
# - In response always set - In create request: always set
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/video-intelligence/docs/
|
# @see https://cloud.google.com/video-intelligence/docs/
|
||||||
module VideointelligenceV1beta1
|
module VideointelligenceV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20171104'
|
REVISION = '20180306'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -1206,6 +1206,656 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Video annotation progress. Included in the `metadata`
|
||||||
|
# field of the `Operation` returned by the `GetOperation`
|
||||||
|
# call of the `google::longrunning::Operations` service.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Progress metadata for all videos specified in `AnnotateVideoRequest`.
|
||||||
|
# Corresponds to the JSON property `annotationProgress`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress>]
|
||||||
|
attr_accessor :annotation_progress
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@annotation_progress = args[:annotation_progress] if args.key?(:annotation_progress)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Video annotation response. Included in the `response`
|
||||||
|
# field of the `Operation` returned by the `GetOperation`
|
||||||
|
# call of the `google::longrunning::Operations` service.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Annotation results for all videos specified in `AnnotateVideoRequest`.
|
||||||
|
# Corresponds to the JSON property `annotationResults`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults>]
|
||||||
|
attr_accessor :annotation_results
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@annotation_results = args[:annotation_results] if args.key?(:annotation_results)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Emotion attribute.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Emotion entry.
|
||||||
|
# Corresponds to the JSON property `emotion`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :emotion
|
||||||
|
|
||||||
|
# Confidence score.
|
||||||
|
# Corresponds to the JSON property `score`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :score
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@emotion = args[:emotion] if args.key?(:emotion)
|
||||||
|
@score = args[:score] if args.key?(:score)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Detected entity from video analysis.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1Entity
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Textual description, e.g. `Fixed-gear bicycle`.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# Opaque entity ID. Some IDs may be available in
|
||||||
|
# [Google Knowledge Graph Search
|
||||||
|
# API](https://developers.google.com/knowledge-graph/).
|
||||||
|
# Corresponds to the JSON property `entityId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :entity_id
|
||||||
|
|
||||||
|
# Language code for `description` in BCP-47 format.
|
||||||
|
# Corresponds to the JSON property `languageCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language_code
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
||||||
|
@language_code = args[:language_code] if args.key?(:language_code)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Explicit content annotation (based on per-frame visual signals only).
|
||||||
|
# If no explicit content has been detected in a frame, no annotations are
|
||||||
|
# present for that frame.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# All video frames where explicit content was detected.
|
||||||
|
# Corresponds to the JSON property `frames`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame>]
|
||||||
|
attr_accessor :frames
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@frames = args[:frames] if args.key?(:frames)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Video frame level annotation results for explicit content.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Likelihood of the pornography content..
|
||||||
|
# Corresponds to the JSON property `pornographyLikelihood`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :pornography_likelihood
|
||||||
|
|
||||||
|
# Time-offset, relative to the beginning of the video, corresponding to the
|
||||||
|
# video frame for this location.
|
||||||
|
# Corresponds to the JSON property `timeOffset`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time_offset
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@pornography_likelihood = args[:pornography_likelihood] if args.key?(:pornography_likelihood)
|
||||||
|
@time_offset = args[:time_offset] if args.key?(:time_offset)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Face detection annotation.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# All video frames where a face was detected.
|
||||||
|
# Corresponds to the JSON property `frames`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame>]
|
||||||
|
attr_accessor :frames
|
||||||
|
|
||||||
|
# All video segments where a face was detected.
|
||||||
|
# Corresponds to the JSON property `segments`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceSegment>]
|
||||||
|
attr_accessor :segments
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@frames = args[:frames] if args.key?(:frames)
|
||||||
|
@segments = args[:segments] if args.key?(:segments)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Face detection attribute.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Emotion attributes.
|
||||||
|
# Corresponds to the JSON property `emotions`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute>]
|
||||||
|
attr_accessor :emotions
|
||||||
|
|
||||||
|
# Normalized bounding box.
|
||||||
|
# The normalized vertex coordinates are relative to the original image.
|
||||||
|
# Range: [0, 1].
|
||||||
|
# Corresponds to the JSON property `normalizedBoundingBox`
|
||||||
|
# @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox]
|
||||||
|
attr_accessor :normalized_bounding_box
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@emotions = args[:emotions] if args.key?(:emotions)
|
||||||
|
@normalized_bounding_box = args[:normalized_bounding_box] if args.key?(:normalized_bounding_box)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Video frame level annotation results for face detection.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Face attributes in a frame.
|
||||||
|
# There can be more than one attributes if the same face is detected in
|
||||||
|
# multiple locations within the current frame.
|
||||||
|
# Corresponds to the JSON property `attributes`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute>]
|
||||||
|
attr_accessor :attributes
|
||||||
|
|
||||||
|
# Time-offset, relative to the beginning of the video,
|
||||||
|
# corresponding to the video frame for this location.
|
||||||
|
# Corresponds to the JSON property `timeOffset`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time_offset
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@attributes = args[:attributes] if args.key?(:attributes)
|
||||||
|
@time_offset = args[:time_offset] if args.key?(:time_offset)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Video segment level annotation results for face detection.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Video segment.
|
||||||
|
# Corresponds to the JSON property `segment`
|
||||||
|
# @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment]
|
||||||
|
attr_accessor :segment
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@segment = args[:segment] if args.key?(:segment)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Label annotation.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Common categories for the detected entity.
|
||||||
|
# E.g. when the label is `Terrier` the category is likely `dog`. And in some
|
||||||
|
# cases there might be more than one categories e.g. `Terrier` could also be
|
||||||
|
# a `pet`.
|
||||||
|
# Corresponds to the JSON property `categoryEntities`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity>]
|
||||||
|
attr_accessor :category_entities
|
||||||
|
|
||||||
|
# Detected entity from video analysis.
|
||||||
|
# Corresponds to the JSON property `entity`
|
||||||
|
# @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity]
|
||||||
|
attr_accessor :entity
|
||||||
|
|
||||||
|
# All video frames where a label was detected.
|
||||||
|
# Corresponds to the JSON property `frames`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelFrame>]
|
||||||
|
attr_accessor :frames
|
||||||
|
|
||||||
|
# All video segments where a label was detected.
|
||||||
|
# Corresponds to the JSON property `segments`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelSegment>]
|
||||||
|
attr_accessor :segments
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@category_entities = args[:category_entities] if args.key?(:category_entities)
|
||||||
|
@entity = args[:entity] if args.key?(:entity)
|
||||||
|
@frames = args[:frames] if args.key?(:frames)
|
||||||
|
@segments = args[:segments] if args.key?(:segments)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Video frame level annotation results for label detection.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1LabelFrame
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Confidence that the label is accurate. Range: [0, 1].
|
||||||
|
# Corresponds to the JSON property `confidence`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :confidence
|
||||||
|
|
||||||
|
# Time-offset, relative to the beginning of the video, corresponding to the
|
||||||
|
# video frame for this location.
|
||||||
|
# Corresponds to the JSON property `timeOffset`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time_offset
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@confidence = args[:confidence] if args.key?(:confidence)
|
||||||
|
@time_offset = args[:time_offset] if args.key?(:time_offset)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Video segment level annotation results for label detection.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1LabelSegment
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Confidence that the label is accurate. Range: [0, 1].
|
||||||
|
# Corresponds to the JSON property `confidence`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :confidence
|
||||||
|
|
||||||
|
# Video segment.
|
||||||
|
# Corresponds to the JSON property `segment`
|
||||||
|
# @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment]
|
||||||
|
attr_accessor :segment
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@confidence = args[:confidence] if args.key?(:confidence)
|
||||||
|
@segment = args[:segment] if args.key?(:segment)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Normalized bounding box.
|
||||||
|
# The normalized vertex coordinates are relative to the original image.
|
||||||
|
# Range: [0, 1].
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Bottom Y coordinate.
|
||||||
|
# Corresponds to the JSON property `bottom`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :bottom
|
||||||
|
|
||||||
|
# Left X coordinate.
|
||||||
|
# Corresponds to the JSON property `left`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :left
|
||||||
|
|
||||||
|
# Right X coordinate.
|
||||||
|
# Corresponds to the JSON property `right`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :right
|
||||||
|
|
||||||
|
# Top Y coordinate.
|
||||||
|
# Corresponds to the JSON property `top`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :top
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@bottom = args[:bottom] if args.key?(:bottom)
|
||||||
|
@left = args[:left] if args.key?(:left)
|
||||||
|
@right = args[:right] if args.key?(:right)
|
||||||
|
@top = args[:top] if args.key?(:top)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Alternative hypotheses (a.k.a. n-best list).
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Output only. The confidence estimate between 0.0 and 1.0. A higher number
|
||||||
|
# indicates an estimated greater likelihood that the recognized words are
|
||||||
|
# correct. This field is typically provided only for the top hypothesis, and
|
||||||
|
# only for `is_final=true` results. Clients should not rely on the
|
||||||
|
# `confidence` field as it is not guaranteed to be accurate or consistent.
|
||||||
|
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
||||||
|
# Corresponds to the JSON property `confidence`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :confidence
|
||||||
|
|
||||||
|
# Output only. Transcript text representing the words that the user spoke.
|
||||||
|
# Corresponds to the JSON property `transcript`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :transcript
|
||||||
|
|
||||||
|
# Output only. A list of word-specific information for each recognized word.
|
||||||
|
# Corresponds to the JSON property `words`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1WordInfo>]
|
||||||
|
attr_accessor :words
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@confidence = args[:confidence] if args.key?(:confidence)
|
||||||
|
@transcript = args[:transcript] if args.key?(:transcript)
|
||||||
|
@words = args[:words] if args.key?(:words)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A speech recognition result corresponding to a portion of the audio.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1SpeechTranscription
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Output only. May contain one or more recognition hypotheses (up to the
|
||||||
|
# maximum specified in `max_alternatives`).
|
||||||
|
# These alternatives are ordered in terms of accuracy, with the top (first)
|
||||||
|
# alternative being the most probable, as ranked by the recognizer.
|
||||||
|
# Corresponds to the JSON property `alternatives`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative>]
|
||||||
|
attr_accessor :alternatives
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@alternatives = args[:alternatives] if args.key?(:alternatives)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Annotation progress for a single video.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Video file location in
|
||||||
|
# [Google Cloud Storage](https://cloud.google.com/storage/).
|
||||||
|
# Corresponds to the JSON property `inputUri`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :input_uri
|
||||||
|
|
||||||
|
# Approximate percentage processed thus far.
|
||||||
|
# Guaranteed to be 100 when fully processed.
|
||||||
|
# Corresponds to the JSON property `progressPercent`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :progress_percent
|
||||||
|
|
||||||
|
# Time when the request was received.
|
||||||
|
# Corresponds to the JSON property `startTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_time
|
||||||
|
|
||||||
|
# Time of the most recent update.
|
||||||
|
# Corresponds to the JSON property `updateTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@input_uri = args[:input_uri] if args.key?(:input_uri)
|
||||||
|
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
|
||||||
|
@start_time = args[:start_time] if args.key?(:start_time)
|
||||||
|
@update_time = args[:update_time] if args.key?(:update_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Annotation results for a single video.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||||
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error message,
|
||||||
|
# and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` that can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
# Corresponds to the JSON property `error`
|
||||||
|
# @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus]
|
||||||
|
attr_accessor :error
|
||||||
|
|
||||||
|
# Explicit content annotation (based on per-frame visual signals only).
|
||||||
|
# If no explicit content has been detected in a frame, no annotations are
|
||||||
|
# present for that frame.
|
||||||
|
# Corresponds to the JSON property `explicitAnnotation`
|
||||||
|
# @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation]
|
||||||
|
attr_accessor :explicit_annotation
|
||||||
|
|
||||||
|
# Face detection annotations.
|
||||||
|
# Corresponds to the JSON property `faceDetectionAnnotations`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation>]
|
||||||
|
attr_accessor :face_detection_annotations
|
||||||
|
|
||||||
|
# Label annotations on frame level.
|
||||||
|
# There is exactly one element for each unique label.
|
||||||
|
# Corresponds to the JSON property `frameLabelAnnotations`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>]
|
||||||
|
attr_accessor :frame_label_annotations
|
||||||
|
|
||||||
|
# Video file location in
|
||||||
|
# [Google Cloud Storage](https://cloud.google.com/storage/).
|
||||||
|
# Corresponds to the JSON property `inputUri`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :input_uri
|
||||||
|
|
||||||
|
# Label annotations on video level or user specified segment level.
|
||||||
|
# There is exactly one element for each unique label.
|
||||||
|
# Corresponds to the JSON property `segmentLabelAnnotations`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>]
|
||||||
|
attr_accessor :segment_label_annotations
|
||||||
|
|
||||||
|
# Shot annotations. Each shot is represented as a video segment.
|
||||||
|
# Corresponds to the JSON property `shotAnnotations`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment>]
|
||||||
|
attr_accessor :shot_annotations
|
||||||
|
|
||||||
|
# Label annotations on shot level.
|
||||||
|
# There is exactly one element for each unique label.
|
||||||
|
# Corresponds to the JSON property `shotLabelAnnotations`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>]
|
||||||
|
attr_accessor :shot_label_annotations
|
||||||
|
|
||||||
|
# Speech transcription.
|
||||||
|
# Corresponds to the JSON property `speechTranscriptions`
|
||||||
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscription>]
|
||||||
|
attr_accessor :speech_transcriptions
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@error = args[:error] if args.key?(:error)
|
||||||
|
@explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation)
|
||||||
|
@face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations)
|
||||||
|
@frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
|
||||||
|
@input_uri = args[:input_uri] if args.key?(:input_uri)
|
||||||
|
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
|
||||||
|
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
|
||||||
|
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
|
||||||
|
@speech_transcriptions = args[:speech_transcriptions] if args.key?(:speech_transcriptions)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Video segment.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1VideoSegment
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Time-offset, relative to the beginning of the video,
|
||||||
|
# corresponding to the end of the segment (inclusive).
|
||||||
|
# Corresponds to the JSON property `endTimeOffset`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :end_time_offset
|
||||||
|
|
||||||
|
# Time-offset, relative to the beginning of the video,
|
||||||
|
# corresponding to the start of the segment (inclusive).
|
||||||
|
# Corresponds to the JSON property `startTimeOffset`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_time_offset
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset)
|
||||||
|
@start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Word-specific information for recognized words. Word information is only
|
||||||
|
# included in the response when certain request parameters are set, such
|
||||||
|
# as `enable_word_time_offsets`.
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1WordInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Output only. Time offset relative to the beginning of the audio, and
|
||||||
|
# corresponding to the end of the spoken word. This field is only set if
|
||||||
|
# `enable_word_time_offsets=true` and only in the top hypothesis. This is an
|
||||||
|
# experimental feature and the accuracy of the time offset can vary.
|
||||||
|
# Corresponds to the JSON property `endTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :end_time
|
||||||
|
|
||||||
|
# Output only. Time offset relative to the beginning of the audio, and
|
||||||
|
# corresponding to the start of the spoken word. This field is only set if
|
||||||
|
# `enable_word_time_offsets=true` and only in the top hypothesis. This is an
|
||||||
|
# experimental feature and the accuracy of the time offset can vary.
|
||||||
|
# Corresponds to the JSON property `startTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_time
|
||||||
|
|
||||||
|
# Output only. The word corresponding to this set of information.
|
||||||
|
# Corresponds to the JSON property `word`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :word
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@end_time = args[:end_time] if args.key?(:end_time)
|
||||||
|
@start_time = args[:start_time] if args.key?(:start_time)
|
||||||
|
@word = args[:word] if args.key?(:word)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# This resource represents a long-running operation that is the result of a
|
# This resource represents a long-running operation that is the result of a
|
||||||
# network API call.
|
# network API call.
|
||||||
class GoogleLongrunningOperation
|
class GoogleLongrunningOperation
|
||||||
|
|
|
@ -214,6 +214,126 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1Entity
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1LabelFrame
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1LabelSegment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1SpeechTranscription
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1VideoSegment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1WordInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleLongrunningOperation
|
class GoogleLongrunningOperation
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -551,6 +671,201 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :emotion, as: 'emotion'
|
||||||
|
property :score, as: 'score'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1Entity
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :entity_id, as: 'entityId'
|
||||||
|
property :language_code, as: 'languageCode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :pornography_likelihood, as: 'pornographyLikelihood'
|
||||||
|
property :time_offset, as: 'timeOffset'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame::Representation
|
||||||
|
|
||||||
|
collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceSegment::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :emotions, as: 'emotions', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute::Representation
|
||||||
|
|
||||||
|
property :normalized_bounding_box, as: 'normalizedBoundingBox', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :attributes, as: 'attributes', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute::Representation
|
||||||
|
|
||||||
|
property :time_offset, as: 'timeOffset'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :category_entities, as: 'categoryEntities', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity::Representation
|
||||||
|
|
||||||
|
property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity::Representation
|
||||||
|
|
||||||
|
collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelFrame::Representation
|
||||||
|
|
||||||
|
collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelSegment::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1LabelFrame
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :confidence, as: 'confidence'
|
||||||
|
property :time_offset, as: 'timeOffset'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1LabelSegment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :confidence, as: 'confidence'
|
||||||
|
property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :bottom, as: 'bottom'
|
||||||
|
property :left, as: 'left'
|
||||||
|
property :right, as: 'right'
|
||||||
|
property :top, as: 'top'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :confidence, as: 'confidence'
|
||||||
|
property :transcript, as: 'transcript'
|
||||||
|
collection :words, as: 'words', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1WordInfo, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1WordInfo::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1SpeechTranscription
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :alternatives, as: 'alternatives', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :input_uri, as: 'inputUri'
|
||||||
|
property :progress_percent, as: 'progressPercent'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus::Representation
|
||||||
|
|
||||||
|
property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation::Representation
|
||||||
|
|
||||||
|
collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation::Representation
|
||||||
|
|
||||||
|
collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation
|
||||||
|
|
||||||
|
property :input_uri, as: 'inputUri'
|
||||||
|
collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation
|
||||||
|
|
||||||
|
collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation
|
||||||
|
|
||||||
|
collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation
|
||||||
|
|
||||||
|
collection :speech_transcriptions, as: 'speechTranscriptions', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscription, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscription::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1VideoSegment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :end_time_offset, as: 'endTimeOffset'
|
||||||
|
property :start_time_offset, as: 'startTimeOffset'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudVideointelligenceV1p1beta1WordInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :word, as: 'word'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleLongrunningOperation
|
class GoogleLongrunningOperation
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
Loading…
Reference in New Issue