google-api-client 0.17.4 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +35 -0
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +101 -0
- data/generated/google/apis/abusiveexperiencereport_v1/representations.rb +59 -0
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +124 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +7 -5
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +148 -8
- data/generated/google/apis/admin_directory_v1/representations.rb +55 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/classes.rb +9 -2
- data/generated/google/apis/admin_reports_v1/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1/service.rb +58 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +55 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +10 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +26 -26
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +28 -1
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -1
- data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
- data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -105
- data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -67
- data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -107
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +0 -25
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +0 -4
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -143
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +0 -66
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +3 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +2 -4
- data/generated/google/apis/dataproc_v1/service.rb +9 -1
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +17 -6
- data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +39 -5
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +2 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +15 -3
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +25 -5
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +9 -9
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +39 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +16 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +76 -0
- data/generated/google/apis/ml_v1/representations.rb +44 -0
- data/generated/google/apis/ml_v1/service.rb +73 -0
- data/generated/google/apis/poly_v1.rb +2 -2
- data/generated/google/apis/poly_v1/service.rb +1 -1
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +132 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +64 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +31 -0
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +2 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -7
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -6
- data/generated/google/apis/dfareporting_v2_7.rb +0 -40
- data/generated/google/apis/dfareporting_v2_7/classes.rb +0 -11876
- data/generated/google/apis/dfareporting_v2_7/representations.rb +0 -4243
- data/generated/google/apis/dfareporting_v2_7/service.rb +0 -9098
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
26
26
|
module BigqueryV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171202'
|
29
29
|
|
30
30
|
# View and manage your data in Google BigQuery
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -619,6 +619,11 @@ module Google
|
|
619
619
|
class ExplainQueryStage
|
620
620
|
include Google::Apis::Core::Hashable
|
621
621
|
|
622
|
+
# Number of parallel input segments completed.
|
623
|
+
# Corresponds to the JSON property `completedParallelInputs`
|
624
|
+
# @return [Fixnum]
|
625
|
+
attr_accessor :completed_parallel_inputs
|
626
|
+
|
622
627
|
# Milliseconds the average shard spent on CPU-bound tasks.
|
623
628
|
# Corresponds to the JSON property `computeMsAvg`
|
624
629
|
# @return [Fixnum]
|
@@ -649,6 +654,11 @@ module Google
|
|
649
654
|
# @return [String]
|
650
655
|
attr_accessor :name
|
651
656
|
|
657
|
+
# Number of parallel input segments to be processed.
|
658
|
+
# Corresponds to the JSON property `parallelInputs`
|
659
|
+
# @return [Fixnum]
|
660
|
+
attr_accessor :parallel_inputs
|
661
|
+
|
652
662
|
# Milliseconds the average shard spent reading input.
|
653
663
|
# Corresponds to the JSON property `readMsAvg`
|
654
664
|
# @return [Fixnum]
|
@@ -746,12 +756,14 @@ module Google
|
|
746
756
|
|
747
757
|
# Update properties of this object
|
748
758
|
def update!(**args)
|
759
|
+
@completed_parallel_inputs = args[:completed_parallel_inputs] if args.key?(:completed_parallel_inputs)
|
749
760
|
@compute_ms_avg = args[:compute_ms_avg] if args.key?(:compute_ms_avg)
|
750
761
|
@compute_ms_max = args[:compute_ms_max] if args.key?(:compute_ms_max)
|
751
762
|
@compute_ratio_avg = args[:compute_ratio_avg] if args.key?(:compute_ratio_avg)
|
752
763
|
@compute_ratio_max = args[:compute_ratio_max] if args.key?(:compute_ratio_max)
|
753
764
|
@id = args[:id] if args.key?(:id)
|
754
765
|
@name = args[:name] if args.key?(:name)
|
766
|
+
@parallel_inputs = args[:parallel_inputs] if args.key?(:parallel_inputs)
|
755
767
|
@read_ms_avg = args[:read_ms_avg] if args.key?(:read_ms_avg)
|
756
768
|
@read_ms_max = args[:read_ms_max] if args.key?(:read_ms_max)
|
757
769
|
@read_ratio_avg = args[:read_ratio_avg] if args.key?(:read_ratio_avg)
|
@@ -1962,6 +1974,11 @@ module Google
|
|
1962
1974
|
# @return [Google::Apis::BigqueryV2::TableReference]
|
1963
1975
|
attr_accessor :ddl_target_table
|
1964
1976
|
|
1977
|
+
# [Output-only] The original estimate of bytes processed for the job.
|
1978
|
+
# Corresponds to the JSON property `estimatedBytesProcessed`
|
1979
|
+
# @return [Fixnum]
|
1980
|
+
attr_accessor :estimated_bytes_processed
|
1981
|
+
|
1965
1982
|
# [Output-only] The number of rows affected by a DML statement. Present only for
|
1966
1983
|
# DML statements INSERT, UPDATE or DELETE.
|
1967
1984
|
# Corresponds to the JSON property `numDmlAffectedRows`
|
@@ -1985,7 +2002,16 @@ module Google
|
|
1985
2002
|
# @return [Google::Apis::BigqueryV2::TableSchema]
|
1986
2003
|
attr_accessor :schema
|
1987
2004
|
|
1988
|
-
# [Output-only, Experimental] The type of query statement, if valid.
|
2005
|
+
# [Output-only, Experimental] The type of query statement, if valid. Possible
|
2006
|
+
# values (new values might be added in the future): "SELECT": SELECT query. "
|
2007
|
+
# INSERT": INSERT query; see https://cloud.google.com/bigquery/docs/reference/
|
2008
|
+
# standard-sql/data-manipulation-language "UPDATE": UPDATE query; see https://
|
2009
|
+
# cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-
|
2010
|
+
# language "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/
|
2011
|
+
# reference/standard-sql/data-manipulation-language "CREATE_TABLE": CREATE [OR
|
2012
|
+
# REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE]
|
2013
|
+
# TABLE ... AS SELECT ... "DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE
|
2014
|
+
# [OR REPLACE] VIEW ... AS SELECT ... "DROP_VIEW": DROP VIEW query.
|
1989
2015
|
# Corresponds to the JSON property `statementType`
|
1990
2016
|
# @return [String]
|
1991
2017
|
attr_accessor :statement_type
|
@@ -2021,6 +2047,7 @@ module Google
|
|
2021
2047
|
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
2022
2048
|
@ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
|
2023
2049
|
@ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table)
|
2050
|
+
@estimated_bytes_processed = args[:estimated_bytes_processed] if args.key?(:estimated_bytes_processed)
|
2024
2051
|
@num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
|
2025
2052
|
@query_plan = args[:query_plan] if args.key?(:query_plan)
|
2026
2053
|
@referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
|
@@ -507,12 +507,14 @@ module Google
|
|
507
507
|
class ExplainQueryStage
|
508
508
|
# @private
|
509
509
|
class Representation < Google::Apis::Core::JsonRepresentation
|
510
|
+
property :completed_parallel_inputs, :numeric_string => true, as: 'completedParallelInputs'
|
510
511
|
property :compute_ms_avg, :numeric_string => true, as: 'computeMsAvg'
|
511
512
|
property :compute_ms_max, :numeric_string => true, as: 'computeMsMax'
|
512
513
|
property :compute_ratio_avg, as: 'computeRatioAvg'
|
513
514
|
property :compute_ratio_max, as: 'computeRatioMax'
|
514
515
|
property :id, :numeric_string => true, as: 'id'
|
515
516
|
property :name, as: 'name'
|
517
|
+
property :parallel_inputs, :numeric_string => true, as: 'parallelInputs'
|
516
518
|
property :read_ms_avg, :numeric_string => true, as: 'readMsAvg'
|
517
519
|
property :read_ms_max, :numeric_string => true, as: 'readMsMax'
|
518
520
|
property :read_ratio_avg, as: 'readRatioAvg'
|
@@ -802,6 +804,7 @@ module Google
|
|
802
804
|
property :ddl_operation_performed, as: 'ddlOperationPerformed'
|
803
805
|
property :ddl_target_table, as: 'ddlTargetTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
804
806
|
|
807
|
+
property :estimated_bytes_processed, :numeric_string => true, as: 'estimatedBytesProcessed'
|
805
808
|
property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
|
806
809
|
collection :query_plan, as: 'queryPlan', class: Google::Apis::BigqueryV2::ExplainQueryStage, decorator: Google::Apis::BigqueryV2::ExplainQueryStage::Representation
|
807
810
|
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/bigquery/
|
27
27
|
module BigquerydatatransferV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20171203'
|
30
30
|
|
31
31
|
# View and manage your data in Google BigQuery
|
32
32
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/iot
|
27
27
|
module CloudiotV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20171204'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -541,111 +541,6 @@ module Google
|
|
541
541
|
end
|
542
542
|
end
|
543
543
|
|
544
|
-
# The device configuration obtained from Cloud IoT Core.
|
545
|
-
class HttpDeviceConfig
|
546
|
-
include Google::Apis::Core::Hashable
|
547
|
-
|
548
|
-
# Data in binary format.
|
549
|
-
# Corresponds to the JSON property `binaryData`
|
550
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
551
|
-
# @return [String]
|
552
|
-
attr_accessor :binary_data
|
553
|
-
|
554
|
-
# The version of the configuration in Cloud IoT Core.
|
555
|
-
# Corresponds to the JSON property `version`
|
556
|
-
# @return [Fixnum]
|
557
|
-
attr_accessor :version
|
558
|
-
|
559
|
-
def initialize(**args)
|
560
|
-
update!(**args)
|
561
|
-
end
|
562
|
-
|
563
|
-
# Update properties of this object
|
564
|
-
def update!(**args)
|
565
|
-
@binary_data = args[:binary_data] if args.key?(:binary_data)
|
566
|
-
@version = args[:version] if args.key?(:version)
|
567
|
-
end
|
568
|
-
end
|
569
|
-
|
570
|
-
# The device state reported to Cloud IoT Core.
|
571
|
-
class HttpDeviceState
|
572
|
-
include Google::Apis::Core::Hashable
|
573
|
-
|
574
|
-
# Data in binary format.
|
575
|
-
# Corresponds to the JSON property `binaryData`
|
576
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
577
|
-
# @return [String]
|
578
|
-
attr_accessor :binary_data
|
579
|
-
|
580
|
-
def initialize(**args)
|
581
|
-
update!(**args)
|
582
|
-
end
|
583
|
-
|
584
|
-
# Update properties of this object
|
585
|
-
def update!(**args)
|
586
|
-
@binary_data = args[:binary_data] if args.key?(:binary_data)
|
587
|
-
end
|
588
|
-
end
|
589
|
-
|
590
|
-
# Request for `PublishEvent`.
|
591
|
-
class HttpPublishEventRequest
|
592
|
-
include Google::Apis::Core::Hashable
|
593
|
-
|
594
|
-
# Payload data in binary format.
|
595
|
-
# Corresponds to the JSON property `binaryData`
|
596
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
597
|
-
# @return [String]
|
598
|
-
attr_accessor :binary_data
|
599
|
-
|
600
|
-
# Optional subfolder for the telemetry event. This can be used to classify
|
601
|
-
# types of events, and is included in the Pub/Sub message attributes.
|
602
|
-
# Corresponds to the JSON property `subFolder`
|
603
|
-
# @return [String]
|
604
|
-
attr_accessor :sub_folder
|
605
|
-
|
606
|
-
def initialize(**args)
|
607
|
-
update!(**args)
|
608
|
-
end
|
609
|
-
|
610
|
-
# Update properties of this object
|
611
|
-
def update!(**args)
|
612
|
-
@binary_data = args[:binary_data] if args.key?(:binary_data)
|
613
|
-
@sub_folder = args[:sub_folder] if args.key?(:sub_folder)
|
614
|
-
end
|
615
|
-
end
|
616
|
-
|
617
|
-
# Response for `PublishEvent`.
|
618
|
-
class HttpPublishEventResponse
|
619
|
-
include Google::Apis::Core::Hashable
|
620
|
-
|
621
|
-
def initialize(**args)
|
622
|
-
update!(**args)
|
623
|
-
end
|
624
|
-
|
625
|
-
# Update properties of this object
|
626
|
-
def update!(**args)
|
627
|
-
end
|
628
|
-
end
|
629
|
-
|
630
|
-
# Request for `SetDeviceState`.
|
631
|
-
class HttpSetDeviceStateRequest
|
632
|
-
include Google::Apis::Core::Hashable
|
633
|
-
|
634
|
-
# The device state reported to Cloud IoT Core.
|
635
|
-
# Corresponds to the JSON property `state`
|
636
|
-
# @return [Google::Apis::CloudiotV1beta1::HttpDeviceState]
|
637
|
-
attr_accessor :state
|
638
|
-
|
639
|
-
def initialize(**args)
|
640
|
-
update!(**args)
|
641
|
-
end
|
642
|
-
|
643
|
-
# Update properties of this object
|
644
|
-
def update!(**args)
|
645
|
-
@state = args[:state] if args.key?(:state)
|
646
|
-
end
|
647
|
-
end
|
648
|
-
|
649
544
|
# Response for `ListDeviceConfigVersions`.
|
650
545
|
class ListDeviceConfigVersionsResponse
|
651
546
|
include Google::Apis::Core::Hashable
|
@@ -88,36 +88,6 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
-
class HttpDeviceConfig
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class HttpDeviceState
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
-
|
100
|
-
include Google::Apis::Core::JsonObjectSupport
|
101
|
-
end
|
102
|
-
|
103
|
-
class HttpPublishEventRequest
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
|
-
class HttpPublishEventResponse
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
|
-
class HttpSetDeviceStateRequest
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
91
|
class ListDeviceConfigVersionsResponse
|
122
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
93
|
|
@@ -299,43 +269,6 @@ module Google
|
|
299
269
|
end
|
300
270
|
end
|
301
271
|
|
302
|
-
class HttpDeviceConfig
|
303
|
-
# @private
|
304
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
305
|
-
property :binary_data, :base64 => true, as: 'binaryData'
|
306
|
-
property :version, :numeric_string => true, as: 'version'
|
307
|
-
end
|
308
|
-
end
|
309
|
-
|
310
|
-
class HttpDeviceState
|
311
|
-
# @private
|
312
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
313
|
-
property :binary_data, :base64 => true, as: 'binaryData'
|
314
|
-
end
|
315
|
-
end
|
316
|
-
|
317
|
-
class HttpPublishEventRequest
|
318
|
-
# @private
|
319
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
320
|
-
property :binary_data, :base64 => true, as: 'binaryData'
|
321
|
-
property :sub_folder, as: 'subFolder'
|
322
|
-
end
|
323
|
-
end
|
324
|
-
|
325
|
-
class HttpPublishEventResponse
|
326
|
-
# @private
|
327
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
328
|
-
end
|
329
|
-
end
|
330
|
-
|
331
|
-
class HttpSetDeviceStateRequest
|
332
|
-
# @private
|
333
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
334
|
-
property :state, as: 'state', class: Google::Apis::CloudiotV1beta1::HttpDeviceState, decorator: Google::Apis::CloudiotV1beta1::HttpDeviceState::Representation
|
335
|
-
|
336
|
-
end
|
337
|
-
end
|
338
|
-
|
339
272
|
class ListDeviceConfigVersionsResponse
|
340
273
|
# @private
|
341
274
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -432,45 +432,6 @@ module Google
|
|
432
432
|
execute_or_queue_command(command, &block)
|
433
433
|
end
|
434
434
|
|
435
|
-
# Gets the configuration of a device.
|
436
|
-
# @param [String] name
|
437
|
-
# The name of the device. For example,
|
438
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/device0`.
|
439
|
-
# @param [Fixnum] local_version
|
440
|
-
# If zero, returns the current device configuration from Cloud IoT Core.
|
441
|
-
# If nonzero, specifies the local version of the configuration on the device.
|
442
|
-
# The server returns config data only if a higher (newer) version is
|
443
|
-
# available from Cloud IoT Core.
|
444
|
-
# If this value is higher than the latest version available in Cloud IoT
|
445
|
-
# Core, returns an `OUT_OF_RANGE` error.
|
446
|
-
# @param [String] fields
|
447
|
-
# Selector specifying which fields to include in a partial response.
|
448
|
-
# @param [String] quota_user
|
449
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
450
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
451
|
-
# @param [Google::Apis::RequestOptions] options
|
452
|
-
# Request-specific options
|
453
|
-
#
|
454
|
-
# @yield [result, err] Result & error if block supplied
|
455
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::HttpDeviceConfig] parsed result object
|
456
|
-
# @yieldparam err [StandardError] error object if request failed
|
457
|
-
#
|
458
|
-
# @return [Google::Apis::CloudiotV1beta1::HttpDeviceConfig]
|
459
|
-
#
|
460
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
461
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
462
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
463
|
-
def get_project_location_registry_device_config(name, local_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
464
|
-
command = make_simple_command(:get, 'v1beta1/{+name}/config', options)
|
465
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::HttpDeviceConfig::Representation
|
466
|
-
command.response_class = Google::Apis::CloudiotV1beta1::HttpDeviceConfig
|
467
|
-
command.params['name'] = name unless name.nil?
|
468
|
-
command.query['localVersion'] = local_version unless local_version.nil?
|
469
|
-
command.query['fields'] = fields unless fields.nil?
|
470
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
471
|
-
execute_or_queue_command(command, &block)
|
472
|
-
end
|
473
|
-
|
474
435
|
# List devices in a device registry.
|
475
436
|
# @param [String] parent
|
476
437
|
# The device registry path. Required. For example,
|
@@ -607,74 +568,6 @@ module Google
|
|
607
568
|
execute_or_queue_command(command, &block)
|
608
569
|
end
|
609
570
|
|
610
|
-
# Publishes a telemetry event for a device.
|
611
|
-
# @param [String] name
|
612
|
-
# The name of the device. For example,
|
613
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/device0`.
|
614
|
-
# @param [Google::Apis::CloudiotV1beta1::HttpPublishEventRequest] http_publish_event_request_object
|
615
|
-
# @param [String] fields
|
616
|
-
# Selector specifying which fields to include in a partial response.
|
617
|
-
# @param [String] quota_user
|
618
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
619
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
620
|
-
# @param [Google::Apis::RequestOptions] options
|
621
|
-
# Request-specific options
|
622
|
-
#
|
623
|
-
# @yield [result, err] Result & error if block supplied
|
624
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::HttpPublishEventResponse] parsed result object
|
625
|
-
# @yieldparam err [StandardError] error object if request failed
|
626
|
-
#
|
627
|
-
# @return [Google::Apis::CloudiotV1beta1::HttpPublishEventResponse]
|
628
|
-
#
|
629
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
630
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
631
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
632
|
-
def publish_project_location_registry_device_event(name, http_publish_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
633
|
-
command = make_simple_command(:post, 'v1beta1/{+name}:publishEvent', options)
|
634
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::HttpPublishEventRequest::Representation
|
635
|
-
command.request_object = http_publish_event_request_object
|
636
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::HttpPublishEventResponse::Representation
|
637
|
-
command.response_class = Google::Apis::CloudiotV1beta1::HttpPublishEventResponse
|
638
|
-
command.params['name'] = name unless name.nil?
|
639
|
-
command.query['fields'] = fields unless fields.nil?
|
640
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
641
|
-
execute_or_queue_command(command, &block)
|
642
|
-
end
|
643
|
-
|
644
|
-
# Sets the state of a device.
|
645
|
-
# @param [String] name
|
646
|
-
# The name of the device. For example,
|
647
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/device0`.
|
648
|
-
# @param [Google::Apis::CloudiotV1beta1::HttpSetDeviceStateRequest] http_set_device_state_request_object
|
649
|
-
# @param [String] fields
|
650
|
-
# Selector specifying which fields to include in a partial response.
|
651
|
-
# @param [String] quota_user
|
652
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
653
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
654
|
-
# @param [Google::Apis::RequestOptions] options
|
655
|
-
# Request-specific options
|
656
|
-
#
|
657
|
-
# @yield [result, err] Result & error if block supplied
|
658
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::Empty] parsed result object
|
659
|
-
# @yieldparam err [StandardError] error object if request failed
|
660
|
-
#
|
661
|
-
# @return [Google::Apis::CloudiotV1beta1::Empty]
|
662
|
-
#
|
663
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
664
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
665
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
666
|
-
def set_project_location_registry_device_state(name, http_set_device_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
667
|
-
command = make_simple_command(:post, 'v1beta1/{+name}:setState', options)
|
668
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::HttpSetDeviceStateRequest::Representation
|
669
|
-
command.request_object = http_set_device_state_request_object
|
670
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::Empty::Representation
|
671
|
-
command.response_class = Google::Apis::CloudiotV1beta1::Empty
|
672
|
-
command.params['name'] = name unless name.nil?
|
673
|
-
command.query['fields'] = fields unless fields.nil?
|
674
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
675
|
-
execute_or_queue_command(command, &block)
|
676
|
-
end
|
677
|
-
|
678
571
|
# Lists the last few versions of the device configuration in descending
|
679
572
|
# order (i.e.: newest first).
|
680
573
|
# @param [String] name
|