google-api-client 0.30.9 → 0.30.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +89 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +18 -7
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +5 -10
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +24 -12
- data/generated/google/apis/adexperiencereport_v1/service.rb +6 -9
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +62 -9
- data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -9
- data/generated/google/apis/bigquery_v2/representations.rb +5 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +37 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +645 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +263 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +378 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +41 -16
- data/generated/google/apis/bigtableadmin_v2/representations.rb +15 -0
- data/generated/google/apis/binaryauthorization_v1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1/classes.rb +388 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +167 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +313 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -1
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -6
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +52 -1
- data/generated/google/apis/cloudasset_v1/representations.rb +17 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +11 -4
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -14
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -2
- data/generated/google/apis/cloudkms_v1/service.rb +3 -3
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +12 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -2
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -4
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -4
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +14 -3
- data/generated/google/apis/cloudsearch_v1/representations.rb +1 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +3 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +8 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +1 -0
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +1 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +17 -24
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +17 -24
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1139 -284
- data/generated/google/apis/compute_alpha/representations.rb +304 -1
- data/generated/google/apis/compute_alpha/service.rb +935 -23
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +554 -98
- data/generated/google/apis/compute_beta/representations.rb +117 -0
- data/generated/google/apis/compute_beta/service.rb +63 -19
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1187 -165
- data/generated/google/apis/compute_v1/representations.rb +402 -0
- data/generated/google/apis/compute_v1/service.rb +832 -12
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +36 -0
- data/generated/google/apis/container_v1/representations.rb +16 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +153 -0
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +93 -2
- data/generated/google/apis/content_v2/representations.rb +37 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +86 -2
- data/generated/google/apis/content_v2_1/representations.rb +36 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +21 -106
- data/generated/google/apis/dataflow_v1b3/representations.rb +3 -58
- data/generated/google/apis/dataflow_v1b3/service.rb +0 -327
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +7 -0
- data/generated/google/apis/dataproc_v1/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +7 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +9 -75
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +9 -75
- data/generated/google/apis/dfareporting_v3_1.rb +1 -1
- data/generated/google/apis/dfareporting_v3_1/classes.rb +42 -302
- data/generated/google/apis/dfareporting_v3_1/representations.rb +8 -84
- data/generated/google/apis/dfareporting_v3_1/service.rb +5 -107
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +118 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +70 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +75 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +42 -0
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +125 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +128 -0
- data/generated/google/apis/docs_v1/representations.rb +49 -0
- data/generated/google/apis/{appstate_v1.rb → domainsrdap_v1.rb} +8 -11
- data/generated/google/apis/domainsrdap_v1/classes.rb +269 -0
- data/generated/google/apis/{appstate_v1 → domainsrdap_v1}/representations.rb +33 -22
- data/generated/google/apis/domainsrdap_v1/service.rb +350 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +10 -1
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +10 -1
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +21 -130
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +16 -122
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +14 -83
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +94 -48
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +16 -0
- data/generated/google/apis/healthcare_v1alpha2/service.rb +117 -75
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +56 -2
- data/generated/google/apis/healthcare_v1beta1/representations.rb +17 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +10 -5
- data/generated/google/apis/homegraph_v1.rb +31 -0
- data/generated/google/apis/homegraph_v1/classes.rb +692 -0
- data/generated/google/apis/homegraph_v1/representations.rb +323 -0
- data/generated/google/apis/homegraph_v1/service.rb +255 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +8 -7
- data/generated/google/apis/logging_v2/service.rb +40 -35
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +6 -1
- data/generated/google/apis/pubsub_v1/service.rb +15 -9
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -1
- data/generated/google/apis/pubsub_v1beta2/service.rb +10 -6
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +26 -6
- data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/run_v1alpha1/service.rb +5 -3
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +5 -3
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/service.rb +6 -5
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +11 -4
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +11 -4
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1/service.rb +5 -3
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +5 -3
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1beta1/service.rb +5 -3
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -4
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +11 -4
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1 -4
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -4
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +30 -4
- data/generated/google/apis/serviceusage_v1/representations.rb +14 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +30 -4
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +14 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +9 -7
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +17 -15
- data/generated/google/apis/speech_v2beta.rb +1 -1
- data/generated/google/apis/speech_v2beta/classes.rb +3 -3
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +72 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +35 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -1
- data/generated/google/apis/storage_v1/representations.rb +2 -2
- data/generated/google/apis/storage_v1/service.rb +6 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/service.rb +1 -9
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +19 -0
- data/generated/google/apis/testing_v1/representations.rb +3 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +1 -0
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +33 -0
- data/generated/google/apis/translate_v3beta1/representations.rb +3 -0
- data/generated/google/apis/verifiedaccess_v1.rb +35 -0
- data/generated/google/apis/verifiedaccess_v1/classes.rb +174 -0
- data/generated/google/apis/verifiedaccess_v1/representations.rb +99 -0
- data/generated/google/apis/verifiedaccess_v1/service.rb +120 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +204 -2375
- data/generated/google/apis/vision_v1/representations.rb +701 -1634
- data/generated/google/apis/vision_v1/service.rb +17 -17
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +135 -2306
- data/generated/google/apis/vision_v1p1beta1/representations.rb +768 -1701
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +326 -2161
- data/generated/google/apis/vision_v1p2beta1/representations.rb +897 -1710
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +8 -2
- data/generated/google/apis/youtube_v3/representations.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +22 -6
- data/generated/google/apis/appstate_v1/classes.rb +0 -154
- data/generated/google/apis/appstate_v1/service.rb +0 -249
@@ -178,6 +178,12 @@ module Google
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
179
179
|
end
|
180
180
|
|
181
|
+
class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
181
187
|
class GoogleCloudHealthcareV1beta1FhirRestExportResourcesResponse
|
182
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
189
|
|
@@ -659,11 +665,22 @@ module Google
|
|
659
665
|
# @private
|
660
666
|
class Representation < Google::Apis::Core::JsonRepresentation
|
661
667
|
property :dataset_uri, as: 'datasetUri'
|
668
|
+
property :force, as: 'force'
|
662
669
|
property :schema_config, as: 'schemaConfig', class: Google::Apis::HealthcareV1beta1::SchemaConfig, decorator: Google::Apis::HealthcareV1beta1::SchemaConfig::Representation
|
663
670
|
|
664
671
|
end
|
665
672
|
end
|
666
673
|
|
674
|
+
class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails
|
675
|
+
# @private
|
676
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
677
|
+
property :error_count, :numeric_string => true, as: 'errorCount'
|
678
|
+
property :fhir_store, as: 'fhirStore'
|
679
|
+
property :resource_count, :numeric_string => true, as: 'resourceCount'
|
680
|
+
property :success_count, :numeric_string => true, as: 'successCount'
|
681
|
+
end
|
682
|
+
end
|
683
|
+
|
667
684
|
class GoogleCloudHealthcareV1beta1FhirRestExportResourcesResponse
|
668
685
|
# @private
|
669
686
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -169,6 +169,8 @@ module Google
|
|
169
169
|
# If errors occur,
|
170
170
|
# details field type is
|
171
171
|
# DeidentifyErrorDetails.
|
172
|
+
# Errors are also logged to Stackdriver
|
173
|
+
# (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)).
|
172
174
|
# @param [String] source_dataset
|
173
175
|
# Source dataset resource name. (e.g.,
|
174
176
|
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``).
|
@@ -1664,7 +1666,9 @@ module Google
|
|
1664
1666
|
# be used to track the status of the export by calling
|
1665
1667
|
# GetOperation.
|
1666
1668
|
# Immediate fatal errors appear in the
|
1667
|
-
# error field
|
1669
|
+
# error field, errors are also logged
|
1670
|
+
# to Stackdriver (see [Viewing
|
1671
|
+
# logs](/healthcare/docs/how-tos/stackdriver-logging)).
|
1668
1672
|
# Otherwise, when the operation finishes, a detailed response of type
|
1669
1673
|
# ExportResourcesResponse is returned in the
|
1670
1674
|
# response field.
|
@@ -1839,10 +1843,11 @@ module Google
|
|
1839
1843
|
# be used to track the status of the import by calling
|
1840
1844
|
# GetOperation.
|
1841
1845
|
# Immediate fatal errors appear in the
|
1842
|
-
# error field
|
1843
|
-
#
|
1844
|
-
#
|
1845
|
-
# response
|
1846
|
+
# error field, errors are also logged
|
1847
|
+
# to Stackdriver (see [Viewing
|
1848
|
+
# logs](/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when the
|
1849
|
+
# operation finishes, a detailed response of type ImportResourcesResponse
|
1850
|
+
# is returned in the response field.
|
1846
1851
|
# The metadata field type for this
|
1847
1852
|
# operation is OperationMetadata.
|
1848
1853
|
# @param [String] name
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/homegraph_v1/service.rb'
|
16
|
+
require 'google/apis/homegraph_v1/classes.rb'
|
17
|
+
require 'google/apis/homegraph_v1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# HomeGraph API
|
22
|
+
#
|
23
|
+
#
|
24
|
+
#
|
25
|
+
# @see https://developers.google.com/actions/smarthome/create-app#request-sync
|
26
|
+
module HomegraphV1
|
27
|
+
VERSION = 'V1'
|
28
|
+
REVISION = '20190827'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,692 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module HomegraphV1
|
24
|
+
|
25
|
+
# Third-party partner's device ID for one device.
|
26
|
+
class AgentDeviceId
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Third-party partner's device ID.
|
30
|
+
# Corresponds to the JSON property `id`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :id
|
33
|
+
|
34
|
+
def initialize(**args)
|
35
|
+
update!(**args)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Update properties of this object
|
39
|
+
def update!(**args)
|
40
|
+
@id = args[:id] if args.key?(:id)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# Identifies a device in the third party or first party system.
|
45
|
+
class AgentOtherDeviceId
|
46
|
+
include Google::Apis::Core::Hashable
|
47
|
+
|
48
|
+
# The agent's ID. Generally it is the agent's AoG project id.
|
49
|
+
# Corresponds to the JSON property `agentId`
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :agent_id
|
52
|
+
|
53
|
+
# Device ID defined by the agent. The device_id must be unique.
|
54
|
+
# Corresponds to the JSON property `deviceId`
|
55
|
+
# @return [String]
|
56
|
+
attr_accessor :device_id
|
57
|
+
|
58
|
+
def initialize(**args)
|
59
|
+
update!(**args)
|
60
|
+
end
|
61
|
+
|
62
|
+
# Update properties of this object
|
63
|
+
def update!(**args)
|
64
|
+
@agent_id = args[:agent_id] if args.key?(:agent_id)
|
65
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# Third-party partner's device definition.
|
70
|
+
class Device
|
71
|
+
include Google::Apis::Core::Hashable
|
72
|
+
|
73
|
+
# Attributes for the traits supported by the device.
|
74
|
+
# Corresponds to the JSON property `attributes`
|
75
|
+
# @return [Hash<String,Object>]
|
76
|
+
attr_accessor :attributes
|
77
|
+
|
78
|
+
# Custom JSON data provided by the manufacturer and attached to QUERY and
|
79
|
+
# EXECUTE requests in AoG.
|
80
|
+
# Corresponds to the JSON property `customData`
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :custom_data
|
83
|
+
|
84
|
+
# Device information.
|
85
|
+
# Corresponds to the JSON property `deviceInfo`
|
86
|
+
# @return [Google::Apis::HomegraphV1::DeviceInfo]
|
87
|
+
attr_accessor :device_info
|
88
|
+
|
89
|
+
# Third-party partner's device ID.
|
90
|
+
# Corresponds to the JSON property `id`
|
91
|
+
# @return [String]
|
92
|
+
attr_accessor :id
|
93
|
+
|
94
|
+
# Different names for the device.
|
95
|
+
# Corresponds to the JSON property `name`
|
96
|
+
# @return [Google::Apis::HomegraphV1::DeviceNames]
|
97
|
+
attr_accessor :name
|
98
|
+
|
99
|
+
# IDs of other devices associated with this device. This is used to
|
100
|
+
# represent a device group (e.g. bonded zone) or "facets" synced
|
101
|
+
# through different flows (e.g. Google Nest Hub Max with a Nest Camera).
|
102
|
+
# This may also be used to pass in alternate IDs used to identify a cloud
|
103
|
+
# synced device for local execution (i.e. local verification). If used for
|
104
|
+
# local verification, this field is synced from the cloud.
|
105
|
+
# Corresponds to the JSON property `otherDeviceIds`
|
106
|
+
# @return [Array<Google::Apis::HomegraphV1::AgentOtherDeviceId>]
|
107
|
+
attr_accessor :other_device_ids
|
108
|
+
|
109
|
+
# If the third-party partner's cloud configuration includes placing devices
|
110
|
+
# in rooms, the name of the room can be provided here.
|
111
|
+
# Corresponds to the JSON property `roomHint`
|
112
|
+
# @return [String]
|
113
|
+
attr_accessor :room_hint
|
114
|
+
|
115
|
+
# As in roomHint, for structures that users set up in the partner's system.
|
116
|
+
# Corresponds to the JSON property `structureHint`
|
117
|
+
# @return [String]
|
118
|
+
attr_accessor :structure_hint
|
119
|
+
|
120
|
+
# Traits supported by the device.
|
121
|
+
# Corresponds to the JSON property `traits`
|
122
|
+
# @return [Array<String>]
|
123
|
+
attr_accessor :traits
|
124
|
+
|
125
|
+
# Hardware type of the device (e.g. light, outlet, etc).
|
126
|
+
# Corresponds to the JSON property `type`
|
127
|
+
# @return [String]
|
128
|
+
attr_accessor :type
|
129
|
+
|
130
|
+
# Indicates whether the state of this device is being reported to Google
|
131
|
+
# through ReportStateAndNotification call.
|
132
|
+
# Corresponds to the JSON property `willReportState`
|
133
|
+
# @return [Boolean]
|
134
|
+
attr_accessor :will_report_state
|
135
|
+
alias_method :will_report_state?, :will_report_state
|
136
|
+
|
137
|
+
def initialize(**args)
|
138
|
+
update!(**args)
|
139
|
+
end
|
140
|
+
|
141
|
+
# Update properties of this object
|
142
|
+
def update!(**args)
|
143
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
144
|
+
@custom_data = args[:custom_data] if args.key?(:custom_data)
|
145
|
+
@device_info = args[:device_info] if args.key?(:device_info)
|
146
|
+
@id = args[:id] if args.key?(:id)
|
147
|
+
@name = args[:name] if args.key?(:name)
|
148
|
+
@other_device_ids = args[:other_device_ids] if args.key?(:other_device_ids)
|
149
|
+
@room_hint = args[:room_hint] if args.key?(:room_hint)
|
150
|
+
@structure_hint = args[:structure_hint] if args.key?(:structure_hint)
|
151
|
+
@traits = args[:traits] if args.key?(:traits)
|
152
|
+
@type = args[:type] if args.key?(:type)
|
153
|
+
@will_report_state = args[:will_report_state] if args.key?(:will_report_state)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# Device information.
|
158
|
+
class DeviceInfo
|
159
|
+
include Google::Apis::Core::Hashable
|
160
|
+
|
161
|
+
# Device hardware version.
|
162
|
+
# Corresponds to the JSON property `hwVersion`
|
163
|
+
# @return [String]
|
164
|
+
attr_accessor :hw_version
|
165
|
+
|
166
|
+
# Device manufacturer.
|
167
|
+
# Corresponds to the JSON property `manufacturer`
|
168
|
+
# @return [String]
|
169
|
+
attr_accessor :manufacturer
|
170
|
+
|
171
|
+
# Device model.
|
172
|
+
# Corresponds to the JSON property `model`
|
173
|
+
# @return [String]
|
174
|
+
attr_accessor :model
|
175
|
+
|
176
|
+
# Device software version.
|
177
|
+
# Corresponds to the JSON property `swVersion`
|
178
|
+
# @return [String]
|
179
|
+
attr_accessor :sw_version
|
180
|
+
|
181
|
+
def initialize(**args)
|
182
|
+
update!(**args)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Update properties of this object
|
186
|
+
def update!(**args)
|
187
|
+
@hw_version = args[:hw_version] if args.key?(:hw_version)
|
188
|
+
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
|
189
|
+
@model = args[:model] if args.key?(:model)
|
190
|
+
@sw_version = args[:sw_version] if args.key?(:sw_version)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
# Different names for the device.
|
195
|
+
class DeviceNames
|
196
|
+
include Google::Apis::Core::Hashable
|
197
|
+
|
198
|
+
# List of names provided by the partner rather than the user, often
|
199
|
+
# manufacturer names, SKUs, etc.
|
200
|
+
# Corresponds to the JSON property `defaultNames`
|
201
|
+
# @return [Array<String>]
|
202
|
+
attr_accessor :default_names
|
203
|
+
|
204
|
+
# Primary name of the device, generally provided by the user.
|
205
|
+
# Corresponds to the JSON property `name`
|
206
|
+
# @return [String]
|
207
|
+
attr_accessor :name
|
208
|
+
|
209
|
+
# Additional names provided by the user for the device.
|
210
|
+
# Corresponds to the JSON property `nicknames`
|
211
|
+
# @return [Array<String>]
|
212
|
+
attr_accessor :nicknames
|
213
|
+
|
214
|
+
def initialize(**args)
|
215
|
+
update!(**args)
|
216
|
+
end
|
217
|
+
|
218
|
+
# Update properties of this object
|
219
|
+
def update!(**args)
|
220
|
+
@default_names = args[:default_names] if args.key?(:default_names)
|
221
|
+
@name = args[:name] if args.key?(:name)
|
222
|
+
@nicknames = args[:nicknames] if args.key?(:nicknames)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
227
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
228
|
+
# or the response type of an API method. For instance:
|
229
|
+
# service Foo `
|
230
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
231
|
+
# `
|
232
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
233
|
+
class Empty
|
234
|
+
include Google::Apis::Core::Hashable
|
235
|
+
|
236
|
+
def initialize(**args)
|
237
|
+
update!(**args)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Update properties of this object
|
241
|
+
def update!(**args)
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# Request type for the
|
246
|
+
# [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call. This should
|
247
|
+
# be the same format as the Actions on Google `action.devices.QUERY`
|
248
|
+
# [request](/actions/smarthome/create-app#actiondevicesquery) with the
|
249
|
+
# exception of the extra `agent_user_id` and no `intent` and `customData`
|
250
|
+
# fields.
|
251
|
+
class QueryRequest
|
252
|
+
include Google::Apis::Core::Hashable
|
253
|
+
|
254
|
+
# Required. Third-party user ID.
|
255
|
+
# Corresponds to the JSON property `agentUserId`
|
256
|
+
# @return [String]
|
257
|
+
attr_accessor :agent_user_id
|
258
|
+
|
259
|
+
# Required. Inputs containing third-party partner's device IDs for which to
|
260
|
+
# get the device states.
|
261
|
+
# Corresponds to the JSON property `inputs`
|
262
|
+
# @return [Array<Google::Apis::HomegraphV1::QueryRequestInput>]
|
263
|
+
attr_accessor :inputs
|
264
|
+
|
265
|
+
# Request ID used for debugging.
|
266
|
+
# Corresponds to the JSON property `requestId`
|
267
|
+
# @return [String]
|
268
|
+
attr_accessor :request_id
|
269
|
+
|
270
|
+
def initialize(**args)
|
271
|
+
update!(**args)
|
272
|
+
end
|
273
|
+
|
274
|
+
# Update properties of this object
|
275
|
+
def update!(**args)
|
276
|
+
@agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id)
|
277
|
+
@inputs = args[:inputs] if args.key?(:inputs)
|
278
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
# Device ID inputs to QueryRequest.
|
283
|
+
class QueryRequestInput
|
284
|
+
include Google::Apis::Core::Hashable
|
285
|
+
|
286
|
+
# Payload containing device IDs.
|
287
|
+
# Corresponds to the JSON property `payload`
|
288
|
+
# @return [Google::Apis::HomegraphV1::QueryRequestPayload]
|
289
|
+
attr_accessor :payload
|
290
|
+
|
291
|
+
def initialize(**args)
|
292
|
+
update!(**args)
|
293
|
+
end
|
294
|
+
|
295
|
+
# Update properties of this object
|
296
|
+
def update!(**args)
|
297
|
+
@payload = args[:payload] if args.key?(:payload)
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
# Payload containing device IDs.
|
302
|
+
class QueryRequestPayload
|
303
|
+
include Google::Apis::Core::Hashable
|
304
|
+
|
305
|
+
# Third-party partner's device IDs for which to get the device states.
|
306
|
+
# Corresponds to the JSON property `devices`
|
307
|
+
# @return [Array<Google::Apis::HomegraphV1::AgentDeviceId>]
|
308
|
+
attr_accessor :devices
|
309
|
+
|
310
|
+
def initialize(**args)
|
311
|
+
update!(**args)
|
312
|
+
end
|
313
|
+
|
314
|
+
# Update properties of this object
|
315
|
+
def update!(**args)
|
316
|
+
@devices = args[:devices] if args.key?(:devices)
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
# Response type for the
|
321
|
+
# [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call. This should
|
322
|
+
# follow the same format as the Actions on Google `action.devices.QUERY`
|
323
|
+
# [response](/actions/smarthome/create-app#actiondevicesquery).
|
324
|
+
# # Example
|
325
|
+
# ```json
|
326
|
+
# `
|
327
|
+
# "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
|
328
|
+
# "payload": `
|
329
|
+
# "devices": `
|
330
|
+
# "123": `
|
331
|
+
# "on": true,
|
332
|
+
# "online": true
|
333
|
+
# `,
|
334
|
+
# "456": `
|
335
|
+
# "on": true,
|
336
|
+
# "online": true,
|
337
|
+
# "brightness": 80,
|
338
|
+
# "color": `
|
339
|
+
# "name": "cerulean",
|
340
|
+
# "spectrumRGB": 31655
|
341
|
+
# `
|
342
|
+
# `
|
343
|
+
# `
|
344
|
+
# `
|
345
|
+
# `
|
346
|
+
# ```
|
347
|
+
class QueryResponse
|
348
|
+
include Google::Apis::Core::Hashable
|
349
|
+
|
350
|
+
# Payload containing device states information.
|
351
|
+
# Corresponds to the JSON property `payload`
|
352
|
+
# @return [Google::Apis::HomegraphV1::QueryResponsePayload]
|
353
|
+
attr_accessor :payload
|
354
|
+
|
355
|
+
# Request ID used for debugging. Copied from the request.
|
356
|
+
# Corresponds to the JSON property `requestId`
|
357
|
+
# @return [String]
|
358
|
+
attr_accessor :request_id
|
359
|
+
|
360
|
+
def initialize(**args)
|
361
|
+
update!(**args)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Update properties of this object
|
365
|
+
def update!(**args)
|
366
|
+
@payload = args[:payload] if args.key?(:payload)
|
367
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
371
|
+
# Payload containing device states information.
|
372
|
+
class QueryResponsePayload
|
373
|
+
include Google::Apis::Core::Hashable
|
374
|
+
|
375
|
+
# States of the devices. Map of third-party device ID to struct of device
|
376
|
+
# states.
|
377
|
+
# Corresponds to the JSON property `devices`
|
378
|
+
# @return [Hash<String,Hash<String,Object>>]
|
379
|
+
attr_accessor :devices
|
380
|
+
|
381
|
+
def initialize(**args)
|
382
|
+
update!(**args)
|
383
|
+
end
|
384
|
+
|
385
|
+
# Update properties of this object
|
386
|
+
def update!(**args)
|
387
|
+
@devices = args[:devices] if args.key?(:devices)
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
# The states and notifications specific to a device.
|
392
|
+
class ReportStateAndNotificationDevice
|
393
|
+
include Google::Apis::Core::Hashable
|
394
|
+
|
395
|
+
# Notifications metadata for devices.
|
396
|
+
# Corresponds to the JSON property `notifications`
|
397
|
+
# @return [Hash<String,Object>]
|
398
|
+
attr_accessor :notifications
|
399
|
+
|
400
|
+
# States of devices to update.
|
401
|
+
# Corresponds to the JSON property `states`
|
402
|
+
# @return [Hash<String,Object>]
|
403
|
+
attr_accessor :states
|
404
|
+
|
405
|
+
def initialize(**args)
|
406
|
+
update!(**args)
|
407
|
+
end
|
408
|
+
|
409
|
+
# Update properties of this object
|
410
|
+
def update!(**args)
|
411
|
+
@notifications = args[:notifications] if args.key?(:notifications)
|
412
|
+
@states = args[:states] if args.key?(:states)
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
416
|
+
# Request type for the
|
417
|
+
# [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService.
|
418
|
+
# ReportStateAndNotification)
|
419
|
+
# call. It may include States, Notifications, or both. This request uses
|
420
|
+
# globally unique flattened state names instead of namespaces based on traits
|
421
|
+
# to align with the existing QUERY and EXECUTE APIs implemented by 90+ Smart
|
422
|
+
# Home partners. States and notifications are defined per `device_id` (for
|
423
|
+
# example, "123"
|
424
|
+
# and "456" in the following example). # Example
|
425
|
+
# ```json
|
426
|
+
# `
|
427
|
+
# "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
|
428
|
+
# "agentUserId": "1234",
|
429
|
+
# "payload": `
|
430
|
+
# "devices": `
|
431
|
+
# "states": `
|
432
|
+
# "123": `
|
433
|
+
# "on": true
|
434
|
+
# `,
|
435
|
+
# "456": `
|
436
|
+
# "on": true,
|
437
|
+
# "brightness": 10
|
438
|
+
# `
|
439
|
+
# `,
|
440
|
+
# `
|
441
|
+
# `
|
442
|
+
# `
|
443
|
+
# ```
|
444
|
+
class ReportStateAndNotificationRequest
|
445
|
+
include Google::Apis::Core::Hashable
|
446
|
+
|
447
|
+
# Required. Third-party user ID.
|
448
|
+
# Corresponds to the JSON property `agentUserId`
|
449
|
+
# @return [String]
|
450
|
+
attr_accessor :agent_user_id
|
451
|
+
|
452
|
+
# Unique identifier per event (for example, a doorbell press).
|
453
|
+
# Corresponds to the JSON property `eventId`
|
454
|
+
# @return [String]
|
455
|
+
attr_accessor :event_id
|
456
|
+
|
457
|
+
# Token to maintain state in the follow up notification response.
|
458
|
+
# Corresponds to the JSON property `followUpToken`
|
459
|
+
# @return [String]
|
460
|
+
attr_accessor :follow_up_token
|
461
|
+
|
462
|
+
# Payload containing the state and notification information for devices.
|
463
|
+
# Corresponds to the JSON property `payload`
|
464
|
+
# @return [Google::Apis::HomegraphV1::StateAndNotificationPayload]
|
465
|
+
attr_accessor :payload
|
466
|
+
|
467
|
+
# Request ID used for debugging.
|
468
|
+
# Corresponds to the JSON property `requestId`
|
469
|
+
# @return [String]
|
470
|
+
attr_accessor :request_id
|
471
|
+
|
472
|
+
def initialize(**args)
|
473
|
+
update!(**args)
|
474
|
+
end
|
475
|
+
|
476
|
+
# Update properties of this object
|
477
|
+
def update!(**args)
|
478
|
+
@agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id)
|
479
|
+
@event_id = args[:event_id] if args.key?(:event_id)
|
480
|
+
@follow_up_token = args[:follow_up_token] if args.key?(:follow_up_token)
|
481
|
+
@payload = args[:payload] if args.key?(:payload)
|
482
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
483
|
+
end
|
484
|
+
end
|
485
|
+
|
486
|
+
# Response type for the
|
487
|
+
# [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService.
|
488
|
+
# ReportStateAndNotification)
|
489
|
+
# call.
|
490
|
+
class ReportStateAndNotificationResponse
|
491
|
+
include Google::Apis::Core::Hashable
|
492
|
+
|
493
|
+
# Request ID copied from ReportStateAndNotificationRequest.
|
494
|
+
# Corresponds to the JSON property `requestId`
|
495
|
+
# @return [String]
|
496
|
+
attr_accessor :request_id
|
497
|
+
|
498
|
+
def initialize(**args)
|
499
|
+
update!(**args)
|
500
|
+
end
|
501
|
+
|
502
|
+
# Update properties of this object
|
503
|
+
def update!(**args)
|
504
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
508
|
+
# Request type for the
|
509
|
+
# [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService.
|
510
|
+
# RequestSyncDevices)
|
511
|
+
# call.
|
512
|
+
class RequestSyncDevicesRequest
|
513
|
+
include Google::Apis::Core::Hashable
|
514
|
+
|
515
|
+
# Required. Third-party user ID issued by agent's third-party identity
|
516
|
+
# provider.
|
517
|
+
# Corresponds to the JSON property `agentUserId`
|
518
|
+
# @return [String]
|
519
|
+
attr_accessor :agent_user_id
|
520
|
+
|
521
|
+
# Optional. If set, the request will be added to a queue and a response will
|
522
|
+
# be returned immediately. The queue allows for de-duplication of
|
523
|
+
# simultaneous requests.
|
524
|
+
# Corresponds to the JSON property `async`
|
525
|
+
# @return [Boolean]
|
526
|
+
attr_accessor :async
|
527
|
+
alias_method :async?, :async
|
528
|
+
|
529
|
+
def initialize(**args)
|
530
|
+
update!(**args)
|
531
|
+
end
|
532
|
+
|
533
|
+
# Update properties of this object
|
534
|
+
def update!(**args)
|
535
|
+
@agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id)
|
536
|
+
@async = args[:async] if args.key?(:async)
|
537
|
+
end
|
538
|
+
end
|
539
|
+
|
540
|
+
# Response type for the
|
541
|
+
# [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService.
|
542
|
+
# RequestSyncDevices)
|
543
|
+
# call. Intentionally empty upon success. An HTTP response code is returned
|
544
|
+
# with more details upon failure.
|
545
|
+
class RequestSyncDevicesResponse
|
546
|
+
include Google::Apis::Core::Hashable
|
547
|
+
|
548
|
+
def initialize(**args)
|
549
|
+
update!(**args)
|
550
|
+
end
|
551
|
+
|
552
|
+
# Update properties of this object
|
553
|
+
def update!(**args)
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
557
|
+
# Payload containing the state and notification information for devices.
|
558
|
+
class StateAndNotificationPayload
|
559
|
+
include Google::Apis::Core::Hashable
|
560
|
+
|
561
|
+
# The states and notifications specific to a device.
|
562
|
+
# Corresponds to the JSON property `devices`
|
563
|
+
# @return [Google::Apis::HomegraphV1::ReportStateAndNotificationDevice]
|
564
|
+
attr_accessor :devices
|
565
|
+
|
566
|
+
def initialize(**args)
|
567
|
+
update!(**args)
|
568
|
+
end
|
569
|
+
|
570
|
+
# Update properties of this object
|
571
|
+
def update!(**args)
|
572
|
+
@devices = args[:devices] if args.key?(:devices)
|
573
|
+
end
|
574
|
+
end
|
575
|
+
|
576
|
+
# Request type for the [`Sync`](#google.home.graph.v1.HomeGraphApiService.Sync)
|
577
|
+
# call. This should follow the same format as the Actions on Google
|
578
|
+
# `action.devices.SYNC`
|
579
|
+
# [request](/actions/smarthome/create-app#actiondevicessync) with the exception
|
580
|
+
# of the extra `agent_user_id` and no `intent` field.
|
581
|
+
class SyncRequest
|
582
|
+
include Google::Apis::Core::Hashable
|
583
|
+
|
584
|
+
# Required. Third-party user ID.
|
585
|
+
# Corresponds to the JSON property `agentUserId`
|
586
|
+
# @return [String]
|
587
|
+
attr_accessor :agent_user_id
|
588
|
+
|
589
|
+
# Request ID used for debugging.
|
590
|
+
# Corresponds to the JSON property `requestId`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :request_id
|
593
|
+
|
594
|
+
def initialize(**args)
|
595
|
+
update!(**args)
|
596
|
+
end
|
597
|
+
|
598
|
+
# Update properties of this object
|
599
|
+
def update!(**args)
|
600
|
+
@agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id)
|
601
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
605
|
+
# Response type for the
|
606
|
+
# [`Sync`](#google.home.graph.v1.HomeGraphApiService.Sync) call. This should
|
607
|
+
# follow the same format as the Actions on Google `action.devices.SYNC`
|
608
|
+
# [response](/actions/smarthome/create-app#actiondevicessync).
|
609
|
+
# # Example
|
610
|
+
# ```json
|
611
|
+
# `
|
612
|
+
# "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
|
613
|
+
# "payload": `
|
614
|
+
# "agentUserId": "1836.15267389",
|
615
|
+
# "devices": [`
|
616
|
+
# "id": "123",
|
617
|
+
# "type": "action.devices.types.OUTLET",
|
618
|
+
# "traits": [
|
619
|
+
# "action.devices.traits.OnOff"
|
620
|
+
# ],
|
621
|
+
# "name": `
|
622
|
+
# "defaultNames": ["My Outlet 1234"],
|
623
|
+
# "name": "Night light",
|
624
|
+
# "nicknames": ["wall plug"]
|
625
|
+
# `,
|
626
|
+
# "willReportState": false,
|
627
|
+
# "deviceInfo": `
|
628
|
+
# "manufacturer": "lights-out-inc",
|
629
|
+
# "model": "hs1234",
|
630
|
+
# "hwVersion": "3.2",
|
631
|
+
# "swVersion": "11.4"
|
632
|
+
# `,
|
633
|
+
# "customData": `
|
634
|
+
# "fooValue": 74,
|
635
|
+
# "barValue": true,
|
636
|
+
# "bazValue": "foo"
|
637
|
+
# `
|
638
|
+
# `]
|
639
|
+
# `
|
640
|
+
# `
|
641
|
+
# ```
|
642
|
+
class SyncResponse
|
643
|
+
include Google::Apis::Core::Hashable
|
644
|
+
|
645
|
+
# Payload containing device information.
|
646
|
+
# Corresponds to the JSON property `payload`
|
647
|
+
# @return [Google::Apis::HomegraphV1::SyncResponsePayload]
|
648
|
+
attr_accessor :payload
|
649
|
+
|
650
|
+
# Request ID used for debugging. Copied from the request.
|
651
|
+
# Corresponds to the JSON property `requestId`
|
652
|
+
# @return [String]
|
653
|
+
attr_accessor :request_id
|
654
|
+
|
655
|
+
def initialize(**args)
|
656
|
+
update!(**args)
|
657
|
+
end
|
658
|
+
|
659
|
+
# Update properties of this object
|
660
|
+
def update!(**args)
|
661
|
+
@payload = args[:payload] if args.key?(:payload)
|
662
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
663
|
+
end
|
664
|
+
end
|
665
|
+
|
666
|
+
# Payload containing device information.
|
667
|
+
class SyncResponsePayload
|
668
|
+
include Google::Apis::Core::Hashable
|
669
|
+
|
670
|
+
# Third-party user ID
|
671
|
+
# Corresponds to the JSON property `agentUserId`
|
672
|
+
# @return [String]
|
673
|
+
attr_accessor :agent_user_id
|
674
|
+
|
675
|
+
# Devices associated with the third-party user.
|
676
|
+
# Corresponds to the JSON property `devices`
|
677
|
+
# @return [Array<Google::Apis::HomegraphV1::Device>]
|
678
|
+
attr_accessor :devices
|
679
|
+
|
680
|
+
def initialize(**args)
|
681
|
+
update!(**args)
|
682
|
+
end
|
683
|
+
|
684
|
+
# Update properties of this object
|
685
|
+
def update!(**args)
|
686
|
+
@agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id)
|
687
|
+
@devices = args[:devices] if args.key?(:devices)
|
688
|
+
end
|
689
|
+
end
|
690
|
+
end
|
691
|
+
end
|
692
|
+
end
|