google-api-client 0.15.0 → 0.16.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 +75 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
- data/generated/google/apis/admin_directory_v1/service.rb +71 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
- data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
- data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
- data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1 -46
- data/generated/google/apis/appengine_v1/representations.rb +0 -17
- data/generated/google/apis/appengine_v1/service.rb +5 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
- data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
- data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
- data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
- data/generated/google/apis/appengine_v1beta/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
- data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +41 -24
- 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 +3 -7
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +15 -3
- data/generated/google/apis/classroom_v1.rb +4 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +7 -3
- data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
- data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +143 -83
- data/generated/google/apis/compute_alpha/representations.rb +50 -30
- data/generated/google/apis/compute_alpha/service.rb +171 -5
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +47 -43
- data/generated/google/apis/compute_beta/representations.rb +1 -2
- data/generated/google/apis/compute_beta/service.rb +60 -5
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1326 -168
- data/generated/google/apis/compute_v1/representations.rb +402 -0
- data/generated/google/apis/compute_v1/service.rb +751 -5
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +23 -16
- data/generated/google/apis/content_v2/service.rb +142 -162
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/service.rb +43 -43
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
- data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
- data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +39 -60
- data/generated/google/apis/datastore_v1/representations.rb +27 -0
- data/generated/google/apis/datastore_v1/service.rb +34 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
- data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
- data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
- data/generated/google/apis/dns_v1beta2.rb +43 -0
- data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
- data/generated/google/apis/dns_v1beta2/service.rb +769 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +6 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +51 -8
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +6 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +45 -7
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
- data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
- data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
- data/generated/google/apis/firebaserules_v1/service.rb +37 -0
- data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
- data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
- data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +5 -7
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +78 -0
- data/generated/google/apis/language_v1/representations.rb +45 -0
- data/generated/google/apis/language_v1/service.rb +30 -0
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +3 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +9 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +517 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +22 -6
- data/generated/google/apis/ml_v1/service.rb +8 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +358 -0
- data/generated/google/apis/monitoring_v3/representations.rb +145 -0
- data/generated/google/apis/monitoring_v3/service.rb +229 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +7 -60
- data/generated/google/apis/partners_v2/representations.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/classes.rb +57 -51
- data/generated/google/apis/script_v1/representations.rb +0 -1
- data/generated/google/apis/script_v1/service.rb +2 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1 -2
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +505 -11
- data/generated/google/apis/slides_v1/representations.rb +220 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +10 -1
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +51 -72
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
- data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +8 -3
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/generator/model.rb +9 -3
- data/lib/google/apis/generator/templates/_class.tmpl +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -12
- data/generated/google/apis/playmoviespartner_v1.rb +0 -34
- data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
- data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
- data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
- data/generated/google/apis/qpx_express_v1.rb +0 -31
- data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
- data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
- data/generated/google/apis/qpx_express_v1/service.rb +0 -101
@@ -172,13 +172,13 @@ module Google
|
|
172
172
|
include Google::Apis::Core::JsonObjectSupport
|
173
173
|
end
|
174
174
|
|
175
|
-
class
|
175
|
+
class LatLng
|
176
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
177
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
179
179
|
end
|
180
180
|
|
181
|
-
class
|
181
|
+
class ListCollectionIdsRequest
|
182
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
183
|
|
184
184
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -238,12 +238,6 @@ module Google
|
|
238
238
|
include Google::Apis::Core::JsonObjectSupport
|
239
239
|
end
|
240
240
|
|
241
|
-
class Progress
|
242
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
-
|
244
|
-
include Google::Apis::Core::JsonObjectSupport
|
245
|
-
end
|
246
|
-
|
247
241
|
class Projection
|
248
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
243
|
|
@@ -576,24 +570,19 @@ module Google
|
|
576
570
|
end
|
577
571
|
end
|
578
572
|
|
579
|
-
class
|
573
|
+
class LatLng
|
580
574
|
# @private
|
581
575
|
class Representation < Google::Apis::Core::JsonRepresentation
|
582
|
-
property :
|
583
|
-
property :
|
584
|
-
|
585
|
-
property :end_time, as: 'endTime'
|
586
|
-
property :index, as: 'index'
|
587
|
-
property :operation_type, as: 'operationType'
|
588
|
-
property :start_time, as: 'startTime'
|
576
|
+
property :latitude, as: 'latitude'
|
577
|
+
property :longitude, as: 'longitude'
|
589
578
|
end
|
590
579
|
end
|
591
580
|
|
592
|
-
class
|
581
|
+
class ListCollectionIdsRequest
|
593
582
|
# @private
|
594
583
|
class Representation < Google::Apis::Core::JsonRepresentation
|
595
|
-
property :
|
596
|
-
property :
|
584
|
+
property :page_size, as: 'pageSize'
|
585
|
+
property :page_token, as: 'pageToken'
|
597
586
|
end
|
598
587
|
end
|
599
588
|
|
@@ -686,14 +675,6 @@ module Google
|
|
686
675
|
end
|
687
676
|
end
|
688
677
|
|
689
|
-
class Progress
|
690
|
-
# @private
|
691
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
692
|
-
property :work_completed, :numeric_string => true, as: 'workCompleted'
|
693
|
-
property :work_estimated, :numeric_string => true, as: 'workEstimated'
|
694
|
-
end
|
695
|
-
end
|
696
|
-
|
697
678
|
class Projection
|
698
679
|
# @private
|
699
680
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -352,11 +352,7 @@ module Google
|
|
352
352
|
# `projects/`project_id`/databases/`database_id`/documents/`document_path``.
|
353
353
|
# For example:
|
354
354
|
# `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
|
355
|
-
# @param [
|
356
|
-
# The maximum number of results to return.
|
357
|
-
# @param [String] page_token
|
358
|
-
# A page token. Must be a value from
|
359
|
-
# ListCollectionIdsResponse.
|
355
|
+
# @param [Google::Apis::FirestoreV1beta1::ListCollectionIdsRequest] list_collection_ids_request_object
|
360
356
|
# @param [String] fields
|
361
357
|
# Selector specifying which fields to include in a partial response.
|
362
358
|
# @param [String] quota_user
|
@@ -374,13 +370,13 @@ module Google
|
|
374
370
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
375
371
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
376
372
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
377
|
-
def list_project_database_document_collection_ids(parent,
|
373
|
+
def list_project_database_document_collection_ids(parent, list_collection_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
378
374
|
command = make_simple_command(:post, 'v1beta1/{+parent}:listCollectionIds', options)
|
375
|
+
command.request_representation = Google::Apis::FirestoreV1beta1::ListCollectionIdsRequest::Representation
|
376
|
+
command.request_object = list_collection_ids_request_object
|
379
377
|
command.response_representation = Google::Apis::FirestoreV1beta1::ListCollectionIdsResponse::Representation
|
380
378
|
command.response_class = Google::Apis::FirestoreV1beta1::ListCollectionIdsResponse
|
381
379
|
command.params['parent'] = parent unless parent.nil?
|
382
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
383
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
384
380
|
command.query['fields'] = fields unless fields.nil?
|
385
381
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
386
382
|
execute_or_queue_command(command, &block)
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/genomics
|
26
26
|
module GenomicsV1alpha2
|
27
27
|
VERSION = 'V1alpha2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171026'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -790,6 +790,22 @@ module Google
|
|
790
790
|
class PipelineResources
|
791
791
|
include Google::Apis::Core::Hashable
|
792
792
|
|
793
|
+
# Optional. The number of accelerators of the specified type to attach.
|
794
|
+
# By specifying this parameter, you will download and install the following
|
795
|
+
# third-party software onto your managed GCE instances: NVIDIA® Tesla®
|
796
|
+
# drivers and NVIDIA® CUDA toolkit.
|
797
|
+
# Corresponds to the JSON property `acceleratorCount`
|
798
|
+
# @return [Fixnum]
|
799
|
+
attr_accessor :accelerator_count
|
800
|
+
|
801
|
+
# Optional. The GCE defined accelerator type.
|
802
|
+
# By specifying this parameter, you will download and install the following
|
803
|
+
# third-party software onto your managed GCE instances: NVIDIA® Tesla®
|
804
|
+
# drivers and NVIDIA® CUDA toolkit.
|
805
|
+
# Corresponds to the JSON property `acceleratorType`
|
806
|
+
# @return [String]
|
807
|
+
attr_accessor :accelerator_type
|
808
|
+
|
793
809
|
# The size of the boot disk. Defaults to 10 (GB).
|
794
810
|
# Corresponds to the JSON property `bootDiskSizeGb`
|
795
811
|
# @return [Fixnum]
|
@@ -848,6 +864,8 @@ module Google
|
|
848
864
|
|
849
865
|
# Update properties of this object
|
850
866
|
def update!(**args)
|
867
|
+
@accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
|
868
|
+
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
|
851
869
|
@boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
|
852
870
|
@disks = args[:disks] if args.key?(:disks)
|
853
871
|
@minimum_cpu_cores = args[:minimum_cpu_cores] if args.key?(:minimum_cpu_cores)
|
@@ -353,6 +353,8 @@ module Google
|
|
353
353
|
class PipelineResources
|
354
354
|
# @private
|
355
355
|
class Representation < Google::Apis::Core::JsonRepresentation
|
356
|
+
property :accelerator_count, :numeric_string => true, as: 'acceleratorCount'
|
357
|
+
property :accelerator_type, as: 'acceleratorType'
|
356
358
|
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
357
359
|
collection :disks, as: 'disks', class: Google::Apis::GenomicsV1alpha2::Disk, decorator: Google::Apis::GenomicsV1alpha2::Disk::Representation
|
358
360
|
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/iam/
|
28
28
|
module IamV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20171027'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -200,9 +200,8 @@ module Google
|
|
200
200
|
# to generate the service account email address and a stable
|
201
201
|
# `unique_id`.
|
202
202
|
# If the account already exists, the account's resource name is returned
|
203
|
-
# in
|
204
|
-
#
|
205
|
-
# use the name in other methods to access the account.
|
203
|
+
# in the format of projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`. The caller
|
204
|
+
# can use the name in other methods to access the account.
|
206
205
|
# All other methods can identify the service account using the format
|
207
206
|
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
|
208
207
|
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
|
@@ -694,9 +693,8 @@ module Google
|
|
694
693
|
# to generate the service account email address and a stable
|
695
694
|
# `unique_id`.
|
696
695
|
# If the account already exists, the account's resource name is returned
|
697
|
-
# in
|
698
|
-
#
|
699
|
-
# use the name in other methods to access the account.
|
696
|
+
# in the format of projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`. The caller
|
697
|
+
# can use the name in other methods to access the account.
|
700
698
|
# All other methods can identify the service account using the format
|
701
699
|
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
|
702
700
|
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
|
@@ -733,7 +731,7 @@ module Google
|
|
733
731
|
# @return [String]
|
734
732
|
attr_accessor :name
|
735
733
|
|
736
|
-
# @OutputOnly
|
734
|
+
# @OutputOnly The OAuth2 client id for the service account.
|
737
735
|
# This is used in conjunction with the OAuth2 clientconfig API to make
|
738
736
|
# three legged OAuth2 (3LO) flows to access the data of Google users.
|
739
737
|
# Corresponds to the JSON property `oauth2ClientId`
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/natural-language/
|
28
28
|
module LanguageV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20171023'
|
31
31
|
|
32
32
|
# Apply machine learning models to reveal the structure and meaning of text
|
33
33
|
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
|
@@ -285,6 +285,11 @@ module Google
|
|
285
285
|
class AnnotateTextResponse
|
286
286
|
include Google::Apis::Core::Hashable
|
287
287
|
|
288
|
+
# Categories identified in the input document.
|
289
|
+
# Corresponds to the JSON property `categories`
|
290
|
+
# @return [Array<Google::Apis::LanguageV1::ClassificationCategory>]
|
291
|
+
attr_accessor :categories
|
292
|
+
|
288
293
|
# Represents the feeling associated with the entire text or entities in
|
289
294
|
# the text.
|
290
295
|
# Corresponds to the JSON property `documentSentiment`
|
@@ -324,6 +329,7 @@ module Google
|
|
324
329
|
|
325
330
|
# Update properties of this object
|
326
331
|
def update!(**args)
|
332
|
+
@categories = args[:categories] if args.key?(:categories)
|
327
333
|
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
328
334
|
@entities = args[:entities] if args.key?(:entities)
|
329
335
|
@language = args[:language] if args.key?(:language)
|
@@ -332,6 +338,71 @@ module Google
|
|
332
338
|
end
|
333
339
|
end
|
334
340
|
|
341
|
+
# Represents a category returned from the text classifier.
|
342
|
+
class ClassificationCategory
|
343
|
+
include Google::Apis::Core::Hashable
|
344
|
+
|
345
|
+
# The classifier's confidence of the category. Number represents how certain
|
346
|
+
# the classifier is that this category represents the given text.
|
347
|
+
# Corresponds to the JSON property `confidence`
|
348
|
+
# @return [Float]
|
349
|
+
attr_accessor :confidence
|
350
|
+
|
351
|
+
# The name of the category representing the document.
|
352
|
+
# Corresponds to the JSON property `name`
|
353
|
+
# @return [String]
|
354
|
+
attr_accessor :name
|
355
|
+
|
356
|
+
def initialize(**args)
|
357
|
+
update!(**args)
|
358
|
+
end
|
359
|
+
|
360
|
+
# Update properties of this object
|
361
|
+
def update!(**args)
|
362
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
363
|
+
@name = args[:name] if args.key?(:name)
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
367
|
+
# The document classification request message.
|
368
|
+
class ClassifyTextRequest
|
369
|
+
include Google::Apis::Core::Hashable
|
370
|
+
|
371
|
+
# ################################################################ #
|
372
|
+
# Represents the input to API methods.
|
373
|
+
# Corresponds to the JSON property `document`
|
374
|
+
# @return [Google::Apis::LanguageV1::Document]
|
375
|
+
attr_accessor :document
|
376
|
+
|
377
|
+
def initialize(**args)
|
378
|
+
update!(**args)
|
379
|
+
end
|
380
|
+
|
381
|
+
# Update properties of this object
|
382
|
+
def update!(**args)
|
383
|
+
@document = args[:document] if args.key?(:document)
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
387
|
+
# The document classification response message.
|
388
|
+
class ClassifyTextResponse
|
389
|
+
include Google::Apis::Core::Hashable
|
390
|
+
|
391
|
+
# Categories representing the input document.
|
392
|
+
# Corresponds to the JSON property `categories`
|
393
|
+
# @return [Array<Google::Apis::LanguageV1::ClassificationCategory>]
|
394
|
+
attr_accessor :categories
|
395
|
+
|
396
|
+
def initialize(**args)
|
397
|
+
update!(**args)
|
398
|
+
end
|
399
|
+
|
400
|
+
# Update properties of this object
|
401
|
+
def update!(**args)
|
402
|
+
@categories = args[:categories] if args.key?(:categories)
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
335
406
|
# Represents dependency parse tree information for a token. (For more
|
336
407
|
# information on dependency labels, see
|
337
408
|
# http://www.aclweb.org/anthology/P13-2017
|
@@ -509,6 +580,12 @@ module Google
|
|
509
580
|
class Features
|
510
581
|
include Google::Apis::Core::Hashable
|
511
582
|
|
583
|
+
# Classify the full document into categories.
|
584
|
+
# Corresponds to the JSON property `classifyText`
|
585
|
+
# @return [Boolean]
|
586
|
+
attr_accessor :classify_text
|
587
|
+
alias_method :classify_text?, :classify_text
|
588
|
+
|
512
589
|
# Extract document-level sentiment.
|
513
590
|
# Corresponds to the JSON property `extractDocumentSentiment`
|
514
591
|
# @return [Boolean]
|
@@ -539,6 +616,7 @@ module Google
|
|
539
616
|
|
540
617
|
# Update properties of this object
|
541
618
|
def update!(**args)
|
619
|
+
@classify_text = args[:classify_text] if args.key?(:classify_text)
|
542
620
|
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
|
543
621
|
@extract_entities = args[:extract_entities] if args.key?(:extract_entities)
|
544
622
|
@extract_entity_sentiment = args[:extract_entity_sentiment] if args.key?(:extract_entity_sentiment)
|
@@ -82,6 +82,24 @@ module Google
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
+
class ClassificationCategory
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class ClassifyTextRequest
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class ClassifyTextResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
85
103
|
class DependencyEdge
|
86
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
105
|
|
@@ -238,6 +256,8 @@ module Google
|
|
238
256
|
class AnnotateTextResponse
|
239
257
|
# @private
|
240
258
|
class Representation < Google::Apis::Core::JsonRepresentation
|
259
|
+
collection :categories, as: 'categories', class: Google::Apis::LanguageV1::ClassificationCategory, decorator: Google::Apis::LanguageV1::ClassificationCategory::Representation
|
260
|
+
|
241
261
|
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
242
262
|
|
243
263
|
collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation
|
@@ -250,6 +270,30 @@ module Google
|
|
250
270
|
end
|
251
271
|
end
|
252
272
|
|
273
|
+
class ClassificationCategory
|
274
|
+
# @private
|
275
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
276
|
+
property :confidence, as: 'confidence'
|
277
|
+
property :name, as: 'name'
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
class ClassifyTextRequest
|
282
|
+
# @private
|
283
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
284
|
+
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
285
|
+
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
class ClassifyTextResponse
|
290
|
+
# @private
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
+
collection :categories, as: 'categories', class: Google::Apis::LanguageV1::ClassificationCategory, decorator: Google::Apis::LanguageV1::ClassificationCategory::Representation
|
293
|
+
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
253
297
|
class DependencyEdge
|
254
298
|
# @private
|
255
299
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -296,6 +340,7 @@ module Google
|
|
296
340
|
class Features
|
297
341
|
# @private
|
298
342
|
class Representation < Google::Apis::Core::JsonRepresentation
|
343
|
+
property :classify_text, as: 'classifyText'
|
299
344
|
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
300
345
|
property :extract_entities, as: 'extractEntities'
|
301
346
|
property :extract_entity_sentiment, as: 'extractEntitySentiment'
|
@@ -204,6 +204,36 @@ module Google
|
|
204
204
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
205
205
|
execute_or_queue_command(command, &block)
|
206
206
|
end
|
207
|
+
|
208
|
+
# Classifies a document into categories.
|
209
|
+
# @param [Google::Apis::LanguageV1::ClassifyTextRequest] classify_text_request_object
|
210
|
+
# @param [String] fields
|
211
|
+
# Selector specifying which fields to include in a partial response.
|
212
|
+
# @param [String] quota_user
|
213
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
214
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
215
|
+
# @param [Google::Apis::RequestOptions] options
|
216
|
+
# Request-specific options
|
217
|
+
#
|
218
|
+
# @yield [result, err] Result & error if block supplied
|
219
|
+
# @yieldparam result [Google::Apis::LanguageV1::ClassifyTextResponse] parsed result object
|
220
|
+
# @yieldparam err [StandardError] error object if request failed
|
221
|
+
#
|
222
|
+
# @return [Google::Apis::LanguageV1::ClassifyTextResponse]
|
223
|
+
#
|
224
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
225
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
226
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
227
|
+
def classify_document_text(classify_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
228
|
+
command = make_simple_command(:post, 'v1/documents:classifyText', options)
|
229
|
+
command.request_representation = Google::Apis::LanguageV1::ClassifyTextRequest::Representation
|
230
|
+
command.request_object = classify_text_request_object
|
231
|
+
command.response_representation = Google::Apis::LanguageV1::ClassifyTextResponse::Representation
|
232
|
+
command.response_class = Google::Apis::LanguageV1::ClassifyTextResponse
|
233
|
+
command.query['fields'] = fields unless fields.nil?
|
234
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
235
|
+
execute_or_queue_command(command, &block)
|
236
|
+
end
|
207
237
|
|
208
238
|
protected
|
209
239
|
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/natural-language/
|
28
28
|
module LanguageV1beta2
|
29
29
|
VERSION = 'V1beta2'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20171031'
|
31
31
|
|
32
32
|
# Apply machine learning models to reveal the structure and meaning of text
|
33
33
|
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
|
@@ -579,7 +579,9 @@ module Google
|
|
579
579
|
class Features
|
580
580
|
include Google::Apis::Core::Hashable
|
581
581
|
|
582
|
-
# Classify the full document into categories.
|
582
|
+
# Classify the full document into categories. If this is true,
|
583
|
+
# the API will use the default model which classifies into a
|
584
|
+
# [predefined taxonomy](/natural-language/docs/categories).
|
583
585
|
# Corresponds to the JSON property `classifyText`
|
584
586
|
# @return [Boolean]
|
585
587
|
attr_accessor :classify_text
|