From 325d59fd1424a0ce1b7d6563be93bfa276e8a327 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 11 Oct 2018 00:36:32 +0000 Subject: [PATCH] Autogenerated update (2018-10-11) Update: - adexchangebuyer2_v2beta1 - alertcenter_v1beta1 - androidpublisher_v1 - androidpublisher_v1_1 - androidpublisher_v2 - androidpublisher_v3 - firestore_v1beta2 - serviceconsumermanagement_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - youtube_partner_v1 --- api_names_out.yaml | 32 +++ .../google/apis/adexchangebuyer2_v2beta1.rb | 2 +- .../apis/adexchangebuyer2_v2beta1/service.rb | 4 +- generated/google/apis/alertcenter_v1beta1.rb | 7 +- .../apis/alertcenter_v1beta1/service.rb | 5 +- generated/google/apis/androidpublisher_v1.rb | 4 +- .../apis/androidpublisher_v1/service.rb | 2 +- .../google/apis/androidpublisher_v1_1.rb | 4 +- .../apis/androidpublisher_v1_1/service.rb | 2 +- generated/google/apis/androidpublisher_v2.rb | 4 +- .../apis/androidpublisher_v2/service.rb | 5 +- generated/google/apis/androidpublisher_v3.rb | 4 +- .../apis/androidpublisher_v3/service.rb | 5 +- generated/google/apis/firestore_v1beta2.rb | 2 +- .../google/apis/firestore_v1beta2/classes.rb | 205 ++++++++++++++++++ .../apis/firestore_v1beta2/representations.rb | 83 +++++++ .../google/apis/firestore_v1beta2/service.rb | 79 +++++++ .../apis/serviceconsumermanagement_v1.rb | 5 +- .../serviceconsumermanagement_v1/service.rb | 3 +- generated/google/apis/servicecontrol_v1.rb | 2 +- generated/google/apis/servicemanagement_v1.rb | 2 +- .../apis/servicemanagement_v1/classes.rb | 2 +- generated/google/apis/serviceuser_v1.rb | 2 +- .../google/apis/serviceuser_v1/classes.rb | 2 +- generated/google/apis/youtube_partner_v1.rb | 2 +- 25 files changed, 435 insertions(+), 34 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index ac147b55e..e43a48897 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -63718,6 +63718,21 @@ "/firestore:v1beta1/key": key "/firestore:v1beta1/quotaUser": quota_user "/firestore:v1beta2/Empty": empty +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsMetadata": google_firestore_admin_v1beta2_export_documents_metadata +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsMetadata/collectionIds": collection_ids +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsMetadata/collectionIds/collection_id": collection_id +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsMetadata/endTime": end_time +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsMetadata/operationState": operation_state +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsMetadata/outputUriPrefix": output_uri_prefix +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsMetadata/progressBytes": progress_bytes +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsMetadata/progressDocuments": progress_documents +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsMetadata/startTime": start_time +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsRequest": google_firestore_admin_v1beta2_export_documents_request +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsRequest/collectionIds": collection_ids +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsRequest/collectionIds/collection_id": collection_id +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsRequest/outputUriPrefix": output_uri_prefix +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsResponse": google_firestore_admin_v1beta2_export_documents_response +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ExportDocumentsResponse/outputUriPrefix": output_uri_prefix "/firestore:v1beta2/GoogleFirestoreAdminV1beta2Field": google_firestore_admin_v1beta2_field "/firestore:v1beta2/GoogleFirestoreAdminV1beta2Field/indexConfig": index_config "/firestore:v1beta2/GoogleFirestoreAdminV1beta2Field/name": name @@ -63730,6 +63745,19 @@ "/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/indexConfigDeltas/index_config_delta": index_config_delta "/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/startTime": start_time "/firestore:v1beta2/GoogleFirestoreAdminV1beta2FieldOperationMetadata/state": state +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsMetadata": google_firestore_admin_v1beta2_import_documents_metadata +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsMetadata/collectionIds": collection_ids +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsMetadata/collectionIds/collection_id": collection_id +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsMetadata/endTime": end_time +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsMetadata/inputUriPrefix": input_uri_prefix +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsMetadata/operationState": operation_state +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsMetadata/progressBytes": progress_bytes +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsMetadata/progressDocuments": progress_documents +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsMetadata/startTime": start_time +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsRequest": google_firestore_admin_v1beta2_import_documents_request +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsRequest/collectionIds": collection_ids +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsRequest/collectionIds/collection_id": collection_id +"/firestore:v1beta2/GoogleFirestoreAdminV1beta2ImportDocumentsRequest/inputUriPrefix": input_uri_prefix "/firestore:v1beta2/GoogleFirestoreAdminV1beta2Index": google_firestore_admin_v1beta2_index "/firestore:v1beta2/GoogleFirestoreAdminV1beta2Index/fields": fields "/firestore:v1beta2/GoogleFirestoreAdminV1beta2Index/fields/field": field @@ -63810,6 +63838,10 @@ "/firestore:v1beta2/firestore.projects.databases.collectionGroups.indexes.list/pageSize": page_size "/firestore:v1beta2/firestore.projects.databases.collectionGroups.indexes.list/pageToken": page_token "/firestore:v1beta2/firestore.projects.databases.collectionGroups.indexes.list/parent": parent +"/firestore:v1beta2/firestore.projects.databases.exportDocuments": export_project_database_documents +"/firestore:v1beta2/firestore.projects.databases.exportDocuments/name": name +"/firestore:v1beta2/firestore.projects.databases.importDocuments": import_project_database_documents +"/firestore:v1beta2/firestore.projects.databases.importDocuments/name": name "/firestore:v1beta2/key": key "/firestore:v1beta2/quotaUser": quota_user "/fitness:v1/AggregateBucket": aggregate_bucket diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index 175b42752..2a4aa84ad 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/authorized-buyers/apis/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20180925' + REVISION = '20181009' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb index 0d9b0bce7..66b919ff1 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb @@ -1453,9 +1453,9 @@ module Google # Name of the owner (bidder or account) of the creative to be deleted. # For example: # - For an account-level creative for the buyer account representing bidder - # 123: `bidders/123/accounts/123/` + # 123: `bidders/123/accounts/123` # - For an account-level creative for the child seat buyer account 456 - # whose bidder is 123: `bidders/123/accounts/456/` + # whose bidder is 123: `bidders/123/accounts/456` # @param [String] creative_id # The ID of the creative to delete. # @param [String] fields diff --git a/generated/google/apis/alertcenter_v1beta1.rb b/generated/google/apis/alertcenter_v1beta1.rb index bbd36bf0d..0e58ee16a 100644 --- a/generated/google/apis/alertcenter_v1beta1.rb +++ b/generated/google/apis/alertcenter_v1beta1.rb @@ -20,12 +20,13 @@ module Google module Apis # G Suite Alert Center API # - # G Suite API for alerts managment. + # G Suite Alert Center API to view and manage alerts on issues affecting your + # domain. # - # @see https://gsuite.google.com/products/alerts/ + # @see https://developers.google.com/admin-sdk/alertcenter/ module AlertcenterV1beta1 VERSION = 'V1beta1' - REVISION = '20181005' + REVISION = '20181010' end end end diff --git a/generated/google/apis/alertcenter_v1beta1/service.rb b/generated/google/apis/alertcenter_v1beta1/service.rb index fbd932438..fa58b8577 100644 --- a/generated/google/apis/alertcenter_v1beta1/service.rb +++ b/generated/google/apis/alertcenter_v1beta1/service.rb @@ -22,7 +22,8 @@ module Google module AlertcenterV1beta1 # G Suite Alert Center API # - # G Suite API for alerts managment. + # G Suite Alert Center API to view and manage alerts on issues affecting your + # domain. # # @example # require 'google/apis/alertcenter_v1beta1' @@ -30,7 +31,7 @@ module Google # Alertcenter = Google::Apis::AlertcenterV1beta1 # Alias the module # service = Alertcenter::AlertCenterService.new # - # @see https://gsuite.google.com/products/alerts/ + # @see https://developers.google.com/admin-sdk/alertcenter/ class AlertCenterService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, diff --git a/generated/google/apis/androidpublisher_v1.rb b/generated/google/apis/androidpublisher_v1.rb index d58205e6a..1441eb522 100644 --- a/generated/google/apis/androidpublisher_v1.rb +++ b/generated/google/apis/androidpublisher_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Play Developer API # - # Lets Android application developers access their Google Play accounts. + # Accesses Android application developers' Google Play accounts. # # @see https://developers.google.com/android-publisher module AndroidpublisherV1 VERSION = 'V1' - REVISION = '20180807' + REVISION = '20181009' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v1/service.rb b/generated/google/apis/androidpublisher_v1/service.rb index ee7f5fea9..488306a60 100644 --- a/generated/google/apis/androidpublisher_v1/service.rb +++ b/generated/google/apis/androidpublisher_v1/service.rb @@ -22,7 +22,7 @@ module Google module AndroidpublisherV1 # Google Play Developer API # - # Lets Android application developers access their Google Play accounts. + # Accesses Android application developers' Google Play accounts. # # @example # require 'google/apis/androidpublisher_v1' diff --git a/generated/google/apis/androidpublisher_v1_1.rb b/generated/google/apis/androidpublisher_v1_1.rb index cb2fa5422..66ef7debe 100644 --- a/generated/google/apis/androidpublisher_v1_1.rb +++ b/generated/google/apis/androidpublisher_v1_1.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Play Developer API # - # Lets Android application developers access their Google Play accounts. + # Accesses Android application developers' Google Play accounts. # # @see https://developers.google.com/android-publisher module AndroidpublisherV1_1 VERSION = 'V1_1' - REVISION = '20180807' + REVISION = '20181009' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v1_1/service.rb b/generated/google/apis/androidpublisher_v1_1/service.rb index fce1fe3da..1b3f4756d 100644 --- a/generated/google/apis/androidpublisher_v1_1/service.rb +++ b/generated/google/apis/androidpublisher_v1_1/service.rb @@ -22,7 +22,7 @@ module Google module AndroidpublisherV1_1 # Google Play Developer API # - # Lets Android application developers access their Google Play accounts. + # Accesses Android application developers' Google Play accounts. # # @example # require 'google/apis/androidpublisher_v1_1' diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 584ffae36..d0b915a3d 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Play Developer API # - # Lets Android application developers access their Google Play accounts. + # Accesses Android application developers' Google Play accounts. # # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '20181002' + REVISION = '20181009' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v2/service.rb b/generated/google/apis/androidpublisher_v2/service.rb index 830b3a63b..f8d3acb77 100644 --- a/generated/google/apis/androidpublisher_v2/service.rb +++ b/generated/google/apis/androidpublisher_v2/service.rb @@ -22,7 +22,7 @@ module Google module AndroidpublisherV2 # Google Play Developer API # - # Lets Android application developers access their Google Play accounts. + # Accesses Android application developers' Google Play accounts. # # @example # require 'google/apis/androidpublisher_v2' @@ -680,7 +680,8 @@ module Google # Unique identifier for this edit. # @param [Boolean] ack_bundle_installation_warning # Must be set to true if the bundle installation may trigger a warning on user - # devices (i.e. if installation size may be over a threshold, typically 100 MB). + # devices (for example, if installation size may be over a threshold, typically + # 100 MB). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index 35effcfae..cc80445c8 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Play Developer API # - # Lets Android application developers access their Google Play accounts. + # Accesses Android application developers' Google Play accounts. # # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '20181002' + REVISION = '20181009' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v3/service.rb b/generated/google/apis/androidpublisher_v3/service.rb index dd2be64df..11da6eacb 100644 --- a/generated/google/apis/androidpublisher_v3/service.rb +++ b/generated/google/apis/androidpublisher_v3/service.rb @@ -22,7 +22,7 @@ module Google module AndroidpublisherV3 # Google Play Developer API # - # Lets Android application developers access their Google Play accounts. + # Accesses Android application developers' Google Play accounts. # # @example # require 'google/apis/androidpublisher_v3' @@ -414,7 +414,8 @@ module Google # Unique identifier for this edit. # @param [Boolean] ack_bundle_installation_warning # Must be set to true if the bundle installation may trigger a warning on user - # devices (i.e. if installation size may be over a threshold, typically 100 MB). + # devices (for example, if installation size may be over a threshold, typically + # 100 MB). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/firestore_v1beta2.rb b/generated/google/apis/firestore_v1beta2.rb index f8863e1d2..b468885b8 100644 --- a/generated/google/apis/firestore_v1beta2.rb +++ b/generated/google/apis/firestore_v1beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1beta2 VERSION = 'V1beta2' - REVISION = '20180919' + REVISION = '20181002' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/firestore_v1beta2/classes.rb b/generated/google/apis/firestore_v1beta2/classes.rb index a586cf38f..9d7e7a6d0 100644 --- a/generated/google/apis/firestore_v1beta2/classes.rb +++ b/generated/google/apis/firestore_v1beta2/classes.rb @@ -41,6 +41,120 @@ module Google end end + # Metadata for google.longrunning.Operation results from + # FirestoreAdmin.ExportDocuments. + class GoogleFirestoreAdminV1beta2ExportDocumentsMetadata + include Google::Apis::Core::Hashable + + # Which collection ids are being exported. + # Corresponds to the JSON property `collectionIds` + # @return [Array] + attr_accessor :collection_ids + + # The time this operation completed. Will be unset if operation still in + # progress. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The state of the export operation. + # Corresponds to the JSON property `operationState` + # @return [String] + attr_accessor :operation_state + + # Where the entities are being exported to. + # Corresponds to the JSON property `outputUriPrefix` + # @return [String] + attr_accessor :output_uri_prefix + + # Describes the progress of the operation. + # Unit of work is generic and must be interpreted based on where Progress + # is used. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress] + attr_accessor :progress_bytes + + # Describes the progress of the operation. + # Unit of work is generic and must be interpreted based on where Progress + # is used. + # Corresponds to the JSON property `progressDocuments` + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress] + attr_accessor :progress_documents + + # The time this operation started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collection_ids = args[:collection_ids] if args.key?(:collection_ids) + @end_time = args[:end_time] if args.key?(:end_time) + @operation_state = args[:operation_state] if args.key?(:operation_state) + @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_documents = args[:progress_documents] if args.key?(:progress_documents) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # The request for FirestoreAdmin.ExportDocuments. + class GoogleFirestoreAdminV1beta2ExportDocumentsRequest + include Google::Apis::Core::Hashable + + # Which collection ids to export. Unspecified means all collections. + # Corresponds to the JSON property `collectionIds` + # @return [Array] + attr_accessor :collection_ids + + # The output URI. Currently only supports Google Cloud Storage URIs of the + # form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + # of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + # Google Cloud Storage namespace path. When + # choosing a name, be sure to consider Google Cloud Storage naming + # guidelines: https://cloud.google.com/storage/docs/naming. + # If the URI is a bucket (without a namespace path), a prefix will be + # generated based on the start time. + # Corresponds to the JSON property `outputUriPrefix` + # @return [String] + attr_accessor :output_uri_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collection_ids = args[:collection_ids] if args.key?(:collection_ids) + @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix) + end + end + + # Returned in the google.longrunning.Operation response field. + class GoogleFirestoreAdminV1beta2ExportDocumentsResponse + include Google::Apis::Core::Hashable + + # Location of the output files. This can be used to begin an import + # into Cloud Firestore (this project or another project) after the operation + # completes successfully. + # Corresponds to the JSON property `outputUriPrefix` + # @return [String] + attr_accessor :output_uri_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix) + end + end + # Represents a single field in the database. # Fields are grouped by their "Collection Group", which represent all # collections in the database with the same id. @@ -155,6 +269,97 @@ module Google end end + # Metadata for google.longrunning.Operation results from + # FirestoreAdmin.ImportDocuments. + class GoogleFirestoreAdminV1beta2ImportDocumentsMetadata + include Google::Apis::Core::Hashable + + # Which collection ids are being imported. + # Corresponds to the JSON property `collectionIds` + # @return [Array] + attr_accessor :collection_ids + + # The time this operation completed. Will be unset if operation still in + # progress. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The location of the documents being imported. + # Corresponds to the JSON property `inputUriPrefix` + # @return [String] + attr_accessor :input_uri_prefix + + # The state of the import operation. + # Corresponds to the JSON property `operationState` + # @return [String] + attr_accessor :operation_state + + # Describes the progress of the operation. + # Unit of work is generic and must be interpreted based on where Progress + # is used. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress] + attr_accessor :progress_bytes + + # Describes the progress of the operation. + # Unit of work is generic and must be interpreted based on where Progress + # is used. + # Corresponds to the JSON property `progressDocuments` + # @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress] + attr_accessor :progress_documents + + # The time this operation started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collection_ids = args[:collection_ids] if args.key?(:collection_ids) + @end_time = args[:end_time] if args.key?(:end_time) + @input_uri_prefix = args[:input_uri_prefix] if args.key?(:input_uri_prefix) + @operation_state = args[:operation_state] if args.key?(:operation_state) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_documents = args[:progress_documents] if args.key?(:progress_documents) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # The request for FirestoreAdmin.ImportDocuments. + class GoogleFirestoreAdminV1beta2ImportDocumentsRequest + include Google::Apis::Core::Hashable + + # Which collection ids to import. Unspecified means all collections included + # in the import. + # Corresponds to the JSON property `collectionIds` + # @return [Array] + attr_accessor :collection_ids + + # Location of the exported files. + # This must match the output_uri_prefix of an ExportDocumentsResponse from + # an export that has completed successfully. + # See: + # google.firestore.admin.v1beta2.ExportDocumentsResponse.output_uri_prefix. + # Corresponds to the JSON property `inputUriPrefix` + # @return [String] + attr_accessor :input_uri_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collection_ids = args[:collection_ids] if args.key?(:collection_ids) + @input_uri_prefix = args[:input_uri_prefix] if args.key?(:input_uri_prefix) + end + end + # Cloud Firestore indexes enable simple and complex queries against # documents in a database. class GoogleFirestoreAdminV1beta2Index diff --git a/generated/google/apis/firestore_v1beta2/representations.rb b/generated/google/apis/firestore_v1beta2/representations.rb index 3cc93bf06..1db73770d 100644 --- a/generated/google/apis/firestore_v1beta2/representations.rb +++ b/generated/google/apis/firestore_v1beta2/representations.rb @@ -28,6 +28,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleFirestoreAdminV1beta2ExportDocumentsMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2ExportDocumentsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2ExportDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleFirestoreAdminV1beta2Field class Representation < Google::Apis::Core::JsonRepresentation; end @@ -40,6 +58,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleFirestoreAdminV1beta2ImportDocumentsMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleFirestoreAdminV1beta2ImportDocumentsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleFirestoreAdminV1beta2Index class Representation < Google::Apis::Core::JsonRepresentation; end @@ -106,6 +136,36 @@ module Google end end + class GoogleFirestoreAdminV1beta2ExportDocumentsMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collection_ids, as: 'collectionIds' + property :end_time, as: 'endTime' + property :operation_state, as: 'operationState' + property :output_uri_prefix, as: 'outputUriPrefix' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress::Representation + + property :progress_documents, as: 'progressDocuments', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress::Representation + + property :start_time, as: 'startTime' + end + end + + class GoogleFirestoreAdminV1beta2ExportDocumentsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collection_ids, as: 'collectionIds' + property :output_uri_prefix, as: 'outputUriPrefix' + end + end + + class GoogleFirestoreAdminV1beta2ExportDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_uri_prefix, as: 'outputUriPrefix' + end + end + class GoogleFirestoreAdminV1beta2Field # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -131,6 +191,29 @@ module Google end end + class GoogleFirestoreAdminV1beta2ImportDocumentsMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collection_ids, as: 'collectionIds' + property :end_time, as: 'endTime' + property :input_uri_prefix, as: 'inputUriPrefix' + property :operation_state, as: 'operationState' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress::Representation + + property :progress_documents, as: 'progressDocuments', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress::Representation + + property :start_time, as: 'startTime' + end + end + + class GoogleFirestoreAdminV1beta2ImportDocumentsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collection_ids, as: 'collectionIds' + property :input_uri_prefix, as: 'inputUriPrefix' + end + end + class GoogleFirestoreAdminV1beta2Index # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/firestore_v1beta2/service.rb b/generated/google/apis/firestore_v1beta2/service.rb index 435457064..5ae761f49 100644 --- a/generated/google/apis/firestore_v1beta2/service.rb +++ b/generated/google/apis/firestore_v1beta2/service.rb @@ -48,6 +48,85 @@ module Google @batch_path = 'batch' end + # Exports a copy of all or a subset of documents from Google Cloud Firestore + # to another storage system, such as Google Cloud Storage. Recent updates to + # documents may not be reflected in the export. The export occurs in the + # background and its progress can be monitored and managed via the + # Operation resource that is created. The output of an export may only be + # used once the associated operation is done. If an export operation is + # cancelled before completion it may leave partial data behind in Google + # Cloud Storage. + # @param [String] name + # Database to export. Should be of the form: + # `projects/`project_id`/databases/`database_id``. + # @param [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ExportDocumentsRequest] google_firestore_admin_v1beta2_export_documents_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_project_database_documents(name, google_firestore_admin_v1beta2_export_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+name}:exportDocuments', options) + command.request_representation = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ExportDocumentsRequest::Representation + command.request_object = google_firestore_admin_v1beta2_export_documents_request_object + command.response_representation = Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Imports documents into Google Cloud Firestore. Existing documents with the + # same name are overwritten. The import occurs in the background and its + # progress can be monitored and managed via the Operation resource that is + # created. If an ImportDocuments operation is cancelled, it is possible + # that a subset of the data has already been imported to Cloud Firestore. + # @param [String] name + # Database to import into. Should be of the form: + # `projects/`project_id`/databases/`database_id``. + # @param [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ImportDocumentsRequest] google_firestore_admin_v1beta2_import_documents_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def import_project_database_documents(name, google_firestore_admin_v1beta2_import_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+name}:importDocuments', options) + command.request_representation = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ImportDocumentsRequest::Representation + command.request_object = google_firestore_admin_v1beta2_import_documents_request_object + command.response_representation = Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the metadata and configuration for a Field. # @param [String] name # A name of the form diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 7a4add576..8d7b2df81 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -20,13 +20,12 @@ module Google module Apis # Service Consumer Management API # - # Provides management methods for configuring service producer resources on - # Google Cloud. + # Manages the service consumers of a Service Infrastructure service. # # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20181004' + REVISION = '20181009' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1/service.rb b/generated/google/apis/serviceconsumermanagement_v1/service.rb index de818b7ec..01e3a3f85 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/service.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/service.rb @@ -22,8 +22,7 @@ module Google module ServiceconsumermanagementV1 # Service Consumer Management API # - # Provides management methods for configuring service producer resources on - # Google Cloud. + # Manages the service consumers of a Service Infrastructure service. # # @example # require 'google/apis/serviceconsumermanagement_v1' diff --git a/generated/google/apis/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index 68ca16fd1..64b998aef 100644 --- a/generated/google/apis/servicecontrol_v1.rb +++ b/generated/google/apis/servicecontrol_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-control/ module ServicecontrolV1 VERSION = 'V1' - REVISION = '20180919' + REVISION = '20181008' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index 45433b4ea..1fd7f8065 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20180922' + REVISION = '20181005' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index bec536201..b06a093be 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -1692,7 +1692,7 @@ module Google # service Messaging ` # rpc GetMessage(GetMessageRequest) returns (Message) ` # option (google.api.http) = ` - # get: "/v1/`name=messages/*"`" + # get: "/v1/`name=messages/*`" # `; # ` # ` diff --git a/generated/google/apis/serviceuser_v1.rb b/generated/google/apis/serviceuser_v1.rb index 5d770d561..3949b2c9a 100644 --- a/generated/google/apis/serviceuser_v1.rb +++ b/generated/google/apis/serviceuser_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServiceuserV1 VERSION = 'V1' - REVISION = '20180922' + REVISION = '20181005' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceuser_v1/classes.rb b/generated/google/apis/serviceuser_v1/classes.rb index 864e4b02a..c62c30e51 100644 --- a/generated/google/apis/serviceuser_v1/classes.rb +++ b/generated/google/apis/serviceuser_v1/classes.rb @@ -1141,7 +1141,7 @@ module Google # service Messaging ` # rpc GetMessage(GetMessageRequest) returns (Message) ` # option (google.api.http) = ` - # get: "/v1/`name=messages/*"`" + # get: "/v1/`name=messages/*`" # `; # ` # ` diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 927b7ac15..77d97236d 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20180925' + REVISION = '20181008' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'