diff --git a/api_names_out.yaml b/api_names_out.yaml index 45a2dac9b..82fadf98a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -29866,6 +29866,66 @@ "/datastore:v1/fields": fields "/datastore:v1/key": key "/datastore:v1/quotaUser": quota_user +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata": google_datastore_admin_v1beta1_common_metadata +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata/endTime": end_time +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata/labels": labels +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata/labels/label": label +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata/operationType": operation_type +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata/startTime": start_time +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata/state": state +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1EntityFilter": google_datastore_admin_v1beta1_entity_filter +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1EntityFilter/kinds": kinds +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1EntityFilter/kinds/kind": kind +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1EntityFilter/namespaceIds": namespace_ids +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1EntityFilter/namespaceIds/namespace_id": namespace_id +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesMetadata": google_datastore_admin_v1beta1_export_entities_metadata +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesMetadata/common": common +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesMetadata/entityFilter": entity_filter +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesMetadata/outputUrlPrefix": output_url_prefix +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesMetadata/progressBytes": progress_bytes +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesRequest": google_datastore_admin_v1beta1_export_entities_request +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesRequest/entityFilter": entity_filter +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesRequest/labels": labels +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesRequest/labels/label": label +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesRequest/outputUrlPrefix": output_url_prefix +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesResponse": google_datastore_admin_v1beta1_export_entities_response +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ExportEntitiesResponse/outputUrl": output_url +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesMetadata": google_datastore_admin_v1beta1_import_entities_metadata +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesMetadata/common": common +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesMetadata/entityFilter": entity_filter +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesMetadata/inputUrl": input_url +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesMetadata/progressBytes": progress_bytes +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesRequest": google_datastore_admin_v1beta1_import_entities_request +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesRequest/entityFilter": entity_filter +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesRequest/inputUrl": input_url +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesRequest/labels": labels +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1ImportEntitiesRequest/labels/label": label +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1Progress": google_datastore_admin_v1beta1_progress +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1Progress/workCompleted": work_completed +"/datastore:v1beta1/GoogleDatastoreAdminV1beta1Progress/workEstimated": work_estimated +"/datastore:v1beta1/GoogleLongrunningOperation": google_longrunning_operation +"/datastore:v1beta1/GoogleLongrunningOperation/done": done +"/datastore:v1beta1/GoogleLongrunningOperation/error": error +"/datastore:v1beta1/GoogleLongrunningOperation/metadata": metadata +"/datastore:v1beta1/GoogleLongrunningOperation/metadata/metadatum": metadatum +"/datastore:v1beta1/GoogleLongrunningOperation/name": name +"/datastore:v1beta1/GoogleLongrunningOperation/response": response +"/datastore:v1beta1/GoogleLongrunningOperation/response/response": response +"/datastore:v1beta1/Status": status +"/datastore:v1beta1/Status/code": code +"/datastore:v1beta1/Status/details": details +"/datastore:v1beta1/Status/details/detail": detail +"/datastore:v1beta1/Status/details/detail/detail": detail +"/datastore:v1beta1/Status/message": message +"/datastore:v1beta1/datastore.projects.export": export_project +"/datastore:v1beta1/datastore.projects.export/projectId": project_id +"/datastore:v1beta1/datastore.projects.import": import_project +"/datastore:v1beta1/datastore.projects.import/projectId": project_id +"/datastore:v1beta1/fields": fields +"/datastore:v1beta1/key": key +"/datastore:v1beta1/quotaUser": quota_user "/datastore:v1beta2/AllocateIdsRequest": allocate_ids_request "/datastore:v1beta2/AllocateIdsResponse": allocate_ids_response "/datastore:v1beta2/BeginTransactionRequest": begin_transaction_request @@ -42804,7 +42864,18 @@ "/logging:v1beta3/logging.projects.logs.sinks.get": get_log_sink "/logging:v1beta3/logging.projects.logs.sinks.list": list_log_sinks "/logging:v1beta3/logging.projects.logs.sinks.update": update_log_sink +"/logging:v2/BucketOptions": bucket_options +"/logging:v2/BucketOptions/explicitBuckets": explicit_buckets +"/logging:v2/BucketOptions/exponentialBuckets": exponential_buckets +"/logging:v2/BucketOptions/linearBuckets": linear_buckets "/logging:v2/Empty": empty +"/logging:v2/Explicit": explicit +"/logging:v2/Explicit/bounds": bounds +"/logging:v2/Explicit/bounds/bound": bound +"/logging:v2/Exponential": exponential +"/logging:v2/Exponential/growthFactor": growth_factor +"/logging:v2/Exponential/numFiniteBuckets": num_finite_buckets +"/logging:v2/Exponential/scale": scale "/logging:v2/HttpRequest": http_request "/logging:v2/HttpRequest/cacheFillBytes": cache_fill_bytes "/logging:v2/HttpRequest/cacheHit": cache_hit @@ -42825,6 +42896,14 @@ "/logging:v2/LabelDescriptor/description": description "/logging:v2/LabelDescriptor/key": key "/logging:v2/LabelDescriptor/valueType": value_type +"/logging:v2/Linear": linear +"/logging:v2/Linear/numFiniteBuckets": num_finite_buckets +"/logging:v2/Linear/offset": offset +"/logging:v2/Linear/width": width +"/logging:v2/ListExclusionsResponse": list_exclusions_response +"/logging:v2/ListExclusionsResponse/exclusions": exclusions +"/logging:v2/ListExclusionsResponse/exclusions/exclusion": exclusion +"/logging:v2/ListExclusionsResponse/nextPageToken": next_page_token "/logging:v2/ListLogEntriesRequest": list_log_entries_request "/logging:v2/ListLogEntriesRequest/filter": filter "/logging:v2/ListLogEntriesRequest/orderBy": order_by @@ -42881,15 +42960,25 @@ "/logging:v2/LogEntrySourceLocation/file": file "/logging:v2/LogEntrySourceLocation/function": function "/logging:v2/LogEntrySourceLocation/line": line +"/logging:v2/LogExclusion": log_exclusion +"/logging:v2/LogExclusion/description": description +"/logging:v2/LogExclusion/disabled": disabled +"/logging:v2/LogExclusion/filter": filter +"/logging:v2/LogExclusion/name": name "/logging:v2/LogLine": log_line "/logging:v2/LogLine/logMessage": log_message "/logging:v2/LogLine/severity": severity "/logging:v2/LogLine/sourceLocation": source_location "/logging:v2/LogLine/time": time "/logging:v2/LogMetric": log_metric +"/logging:v2/LogMetric/bucketOptions": bucket_options "/logging:v2/LogMetric/description": description "/logging:v2/LogMetric/filter": filter +"/logging:v2/LogMetric/labelExtractors": label_extractors +"/logging:v2/LogMetric/labelExtractors/label_extractor": label_extractor +"/logging:v2/LogMetric/metricDescriptor": metric_descriptor "/logging:v2/LogMetric/name": name +"/logging:v2/LogMetric/valueExtractor": value_extractor "/logging:v2/LogMetric/version": version "/logging:v2/LogSink": log_sink "/logging:v2/LogSink/destination": destination @@ -42900,6 +42989,16 @@ "/logging:v2/LogSink/outputVersionFormat": output_version_format "/logging:v2/LogSink/startTime": start_time "/logging:v2/LogSink/writerIdentity": writer_identity +"/logging:v2/MetricDescriptor": metric_descriptor +"/logging:v2/MetricDescriptor/description": description +"/logging:v2/MetricDescriptor/displayName": display_name +"/logging:v2/MetricDescriptor/labels": labels +"/logging:v2/MetricDescriptor/labels/label": label +"/logging:v2/MetricDescriptor/metricKind": metric_kind +"/logging:v2/MetricDescriptor/name": name +"/logging:v2/MetricDescriptor/type": type +"/logging:v2/MetricDescriptor/unit": unit +"/logging:v2/MetricDescriptor/valueType": value_type "/logging:v2/MonitoredResource": monitored_resource "/logging:v2/MonitoredResource/labels": labels "/logging:v2/MonitoredResource/labels/label": label @@ -42964,6 +43063,19 @@ "/logging:v2/WriteLogEntriesResponse": write_log_entries_response "/logging:v2/fields": fields "/logging:v2/key": key +"/logging:v2/logging.billingAccounts.exclusions.create": create_billing_account_exclusion +"/logging:v2/logging.billingAccounts.exclusions.create/parent": parent +"/logging:v2/logging.billingAccounts.exclusions.delete": delete_billing_account_exclusion +"/logging:v2/logging.billingAccounts.exclusions.delete/name": name +"/logging:v2/logging.billingAccounts.exclusions.get": get_billing_account_exclusion +"/logging:v2/logging.billingAccounts.exclusions.get/name": name +"/logging:v2/logging.billingAccounts.exclusions.list": list_billing_account_exclusions +"/logging:v2/logging.billingAccounts.exclusions.list/pageSize": page_size +"/logging:v2/logging.billingAccounts.exclusions.list/pageToken": page_token +"/logging:v2/logging.billingAccounts.exclusions.list/parent": parent +"/logging:v2/logging.billingAccounts.exclusions.patch": patch_billing_account_exclusion +"/logging:v2/logging.billingAccounts.exclusions.patch/name": name +"/logging:v2/logging.billingAccounts.exclusions.patch/updateMask": update_mask "/logging:v2/logging.billingAccounts.logs.delete": delete_billing_account_log "/logging:v2/logging.billingAccounts.logs.delete/logName": log_name "/logging:v2/logging.billingAccounts.logs.list": list_billing_account_logs @@ -42989,6 +43101,19 @@ "/logging:v2/logging.billingAccounts.sinks.update/uniqueWriterIdentity": unique_writer_identity "/logging:v2/logging.entries.list": list_entry_log_entries "/logging:v2/logging.entries.write": write_entry_log_entries +"/logging:v2/logging.folders.exclusions.create": create_folder_exclusion +"/logging:v2/logging.folders.exclusions.create/parent": parent +"/logging:v2/logging.folders.exclusions.delete": delete_folder_exclusion +"/logging:v2/logging.folders.exclusions.delete/name": name +"/logging:v2/logging.folders.exclusions.get": get_folder_exclusion +"/logging:v2/logging.folders.exclusions.get/name": name +"/logging:v2/logging.folders.exclusions.list": list_folder_exclusions +"/logging:v2/logging.folders.exclusions.list/pageSize": page_size +"/logging:v2/logging.folders.exclusions.list/pageToken": page_token +"/logging:v2/logging.folders.exclusions.list/parent": parent +"/logging:v2/logging.folders.exclusions.patch": patch_folder_exclusion +"/logging:v2/logging.folders.exclusions.patch/name": name +"/logging:v2/logging.folders.exclusions.patch/updateMask": update_mask "/logging:v2/logging.folders.logs.delete": delete_folder_log "/logging:v2/logging.folders.logs.delete/logName": log_name "/logging:v2/logging.folders.logs.list": list_folder_logs @@ -43015,6 +43140,19 @@ "/logging:v2/logging.monitoredResourceDescriptors.list": list_monitored_resource_descriptors "/logging:v2/logging.monitoredResourceDescriptors.list/pageSize": page_size "/logging:v2/logging.monitoredResourceDescriptors.list/pageToken": page_token +"/logging:v2/logging.organizations.exclusions.create": create_organization_exclusion +"/logging:v2/logging.organizations.exclusions.create/parent": parent +"/logging:v2/logging.organizations.exclusions.delete": delete_organization_exclusion +"/logging:v2/logging.organizations.exclusions.delete/name": name +"/logging:v2/logging.organizations.exclusions.get": get_organization_exclusion +"/logging:v2/logging.organizations.exclusions.get/name": name +"/logging:v2/logging.organizations.exclusions.list": list_organization_exclusions +"/logging:v2/logging.organizations.exclusions.list/pageSize": page_size +"/logging:v2/logging.organizations.exclusions.list/pageToken": page_token +"/logging:v2/logging.organizations.exclusions.list/parent": parent +"/logging:v2/logging.organizations.exclusions.patch": patch_organization_exclusion +"/logging:v2/logging.organizations.exclusions.patch/name": name +"/logging:v2/logging.organizations.exclusions.patch/updateMask": update_mask "/logging:v2/logging.organizations.logs.delete": delete_organization_log "/logging:v2/logging.organizations.logs.delete/logName": log_name "/logging:v2/logging.organizations.logs.list": list_organization_logs @@ -43038,6 +43176,19 @@ "/logging:v2/logging.organizations.sinks.update": update_organization_sink "/logging:v2/logging.organizations.sinks.update/sinkName": sink_name "/logging:v2/logging.organizations.sinks.update/uniqueWriterIdentity": unique_writer_identity +"/logging:v2/logging.projects.exclusions.create": create_project_exclusion +"/logging:v2/logging.projects.exclusions.create/parent": parent +"/logging:v2/logging.projects.exclusions.delete": delete_project_exclusion +"/logging:v2/logging.projects.exclusions.delete/name": name +"/logging:v2/logging.projects.exclusions.get": get_project_exclusion +"/logging:v2/logging.projects.exclusions.get/name": name +"/logging:v2/logging.projects.exclusions.list": list_project_exclusions +"/logging:v2/logging.projects.exclusions.list/pageSize": page_size +"/logging:v2/logging.projects.exclusions.list/pageToken": page_token +"/logging:v2/logging.projects.exclusions.list/parent": parent +"/logging:v2/logging.projects.exclusions.patch": patch_project_exclusion +"/logging:v2/logging.projects.exclusions.patch/name": name +"/logging:v2/logging.projects.exclusions.patch/updateMask": update_mask "/logging:v2/logging.projects.logs.delete": delete_project_log "/logging:v2/logging.projects.logs.delete/logName": log_name "/logging:v2/logging.projects.logs.list": list_project_logs @@ -43074,7 +43225,18 @@ "/logging:v2/logging.projects.sinks.update/sinkName": sink_name "/logging:v2/logging.projects.sinks.update/uniqueWriterIdentity": unique_writer_identity "/logging:v2/quotaUser": quota_user +"/logging:v2beta1/BucketOptions": bucket_options +"/logging:v2beta1/BucketOptions/explicitBuckets": explicit_buckets +"/logging:v2beta1/BucketOptions/exponentialBuckets": exponential_buckets +"/logging:v2beta1/BucketOptions/linearBuckets": linear_buckets "/logging:v2beta1/Empty": empty +"/logging:v2beta1/Explicit": explicit +"/logging:v2beta1/Explicit/bounds": bounds +"/logging:v2beta1/Explicit/bounds/bound": bound +"/logging:v2beta1/Exponential": exponential +"/logging:v2beta1/Exponential/growthFactor": growth_factor +"/logging:v2beta1/Exponential/numFiniteBuckets": num_finite_buckets +"/logging:v2beta1/Exponential/scale": scale "/logging:v2beta1/HttpRequest": http_request "/logging:v2beta1/HttpRequest/cacheFillBytes": cache_fill_bytes "/logging:v2beta1/HttpRequest/cacheHit": cache_hit @@ -43095,6 +43257,10 @@ "/logging:v2beta1/LabelDescriptor/description": description "/logging:v2beta1/LabelDescriptor/key": key "/logging:v2beta1/LabelDescriptor/valueType": value_type +"/logging:v2beta1/Linear": linear +"/logging:v2beta1/Linear/numFiniteBuckets": num_finite_buckets +"/logging:v2beta1/Linear/offset": offset +"/logging:v2beta1/Linear/width": width "/logging:v2beta1/ListLogEntriesRequest": list_log_entries_request "/logging:v2beta1/ListLogEntriesRequest/filter": filter "/logging:v2beta1/ListLogEntriesRequest/orderBy": order_by @@ -43157,9 +43323,14 @@ "/logging:v2beta1/LogLine/sourceLocation": source_location "/logging:v2beta1/LogLine/time": time "/logging:v2beta1/LogMetric": log_metric +"/logging:v2beta1/LogMetric/bucketOptions": bucket_options "/logging:v2beta1/LogMetric/description": description "/logging:v2beta1/LogMetric/filter": filter +"/logging:v2beta1/LogMetric/labelExtractors": label_extractors +"/logging:v2beta1/LogMetric/labelExtractors/label_extractor": label_extractor +"/logging:v2beta1/LogMetric/metricDescriptor": metric_descriptor "/logging:v2beta1/LogMetric/name": name +"/logging:v2beta1/LogMetric/valueExtractor": value_extractor "/logging:v2beta1/LogMetric/version": version "/logging:v2beta1/LogSink": log_sink "/logging:v2beta1/LogSink/destination": destination @@ -43170,6 +43341,16 @@ "/logging:v2beta1/LogSink/outputVersionFormat": output_version_format "/logging:v2beta1/LogSink/startTime": start_time "/logging:v2beta1/LogSink/writerIdentity": writer_identity +"/logging:v2beta1/MetricDescriptor": metric_descriptor +"/logging:v2beta1/MetricDescriptor/description": description +"/logging:v2beta1/MetricDescriptor/displayName": display_name +"/logging:v2beta1/MetricDescriptor/labels": labels +"/logging:v2beta1/MetricDescriptor/labels/label": label +"/logging:v2beta1/MetricDescriptor/metricKind": metric_kind +"/logging:v2beta1/MetricDescriptor/name": name +"/logging:v2beta1/MetricDescriptor/type": type +"/logging:v2beta1/MetricDescriptor/unit": unit +"/logging:v2beta1/MetricDescriptor/valueType": value_type "/logging:v2beta1/MonitoredResource": monitored_resource "/logging:v2beta1/MonitoredResource/labels": labels "/logging:v2beta1/MonitoredResource/labels/label": label diff --git a/generated/google/apis/androiddeviceprovisioning_v1.rb b/generated/google/apis/androiddeviceprovisioning_v1.rb index 55be0f3d4..5e688f978 100644 --- a/generated/google/apis/androiddeviceprovisioning_v1.rb +++ b/generated/google/apis/androiddeviceprovisioning_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/zero-touch/ module AndroiddeviceprovisioningV1 VERSION = 'V1' - REVISION = '20170819' + REVISION = '20170825' end end end diff --git a/generated/google/apis/androiddeviceprovisioning_v1/classes.rb b/generated/google/apis/androiddeviceprovisioning_v1/classes.rb index 66ccaf168..daefe7b74 100644 --- a/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +++ b/generated/google/apis/androiddeviceprovisioning_v1/classes.rb @@ -497,7 +497,7 @@ module Google include Google::Apis::Core::Hashable # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index 092ecef85..cf7441410 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20170710' + REVISION = '20170828' # 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/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb index 6e2766d1f..a89eb3bef 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -936,7 +936,7 @@ module Google include Google::Apis::Core::Hashable # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] diff --git a/generated/google/apis/cloudresourcemanager_v2beta1.rb b/generated/google/apis/cloudresourcemanager_v2beta1.rb index 563cd73ed..80946a8fc 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2beta1 VERSION = 'V2beta1' - REVISION = '20170710' + REVISION = '20170828' # 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/cloudresourcemanager_v2beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb index 7f90dd3be..107aa5b1a 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb @@ -359,7 +359,7 @@ module Google include Google::Apis::Core::Hashable # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] diff --git a/generated/google/apis/datastore_v1beta1.rb b/generated/google/apis/datastore_v1beta1.rb new file mode 100644 index 000000000..bd6480acf --- /dev/null +++ b/generated/google/apis/datastore_v1beta1.rb @@ -0,0 +1,38 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/datastore_v1beta1/service.rb' +require 'google/apis/datastore_v1beta1/classes.rb' +require 'google/apis/datastore_v1beta1/representations.rb' + +module Google + module Apis + # Google Cloud Datastore API + # + # Accesses the schemaless NoSQL database to provide fully managed, robust, + # scalable storage for your application. + # + # @see https://cloud.google.com/datastore/ + module DatastoreV1beta1 + VERSION = 'V1beta1' + REVISION = '20170821' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View and manage your Google Cloud Datastore data + AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore' + end + end +end diff --git a/generated/google/apis/datastore_v1beta1/classes.rb b/generated/google/apis/datastore_v1beta1/classes.rb new file mode 100644 index 000000000..9da04480e --- /dev/null +++ b/generated/google/apis/datastore_v1beta1/classes.rb @@ -0,0 +1,567 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DatastoreV1beta1 + + # Metadata common to all Datastore Admin operations. + class GoogleDatastoreAdminV1beta1CommonMetadata + include Google::Apis::Core::Hashable + + # The time the operation ended, either successfully or otherwise. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The client-assigned labels which were provided when the operation was + # created. May also include additional labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The type of the operation. Can be used as a filter in + # ListOperationsRequest. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The time that work began on the operation. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The current state of the Operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @labels = args[:labels] if args.key?(:labels) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @start_time = args[:start_time] if args.key?(:start_time) + @state = args[:state] if args.key?(:state) + end + end + + # Identifies a subset of entities in a project. This is specified as + # combinations of kind + namespace (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + class GoogleDatastoreAdminV1beta1EntityFilter + include Google::Apis::Core::Hashable + + # If empty, then this represents all kinds. + # Corresponds to the JSON property `kinds` + # @return [Array] + attr_accessor :kinds + + # An empty list represents all namespaces. This is the preferred + # usage for projects that don't use namespaces. + # An empty string element represents the default namespace. This should be + # used if the project has data in non-default namespaces, but doesn't want to + # include them. + # Each namespace in this list must be unique. + # Corresponds to the JSON property `namespaceIds` + # @return [Array] + attr_accessor :namespace_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kinds = args[:kinds] if args.key?(:kinds) + @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids) + end + end + + # Metadata for ExportEntities operations. + class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata] + attr_accessor :common + + # Identifies a subset of entities in a project. This is specified as + # combinations of kind + namespace (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter] + attr_accessor :entity_filter + + # Location for the export metadata and data files. This will be the same + # value as the + # google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix + # field. The final output location is provided in + # google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url. + # Corresponds to the JSON property `outputUrlPrefix` + # @return [String] + attr_accessor :output_url_prefix + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + + # The request for + # google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities. + class GoogleDatastoreAdminV1beta1ExportEntitiesRequest + include Google::Apis::Core::Hashable + + # Identifies a subset of entities in a project. This is specified as + # combinations of kind + namespace (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter] + attr_accessor :entity_filter + + # Client-assigned labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Location for the export metadata and data files. + # The full resource URL of the external storage location. Currently, only + # Google Cloud Storage is supported. So output_url_prefix should be of the + # form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the + # name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud + # Storage namespace path (this is not a Cloud Datastore namespace). For more + # information about Cloud Storage namespace paths, see + # [Object name + # considerations](https://cloud.google.com/storage/docs/naming#object- + # considerations). + # The resulting files will be nested deeper than the specified URL prefix. + # The final output URL will be provided in the + # google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url + # field. That value should be used for subsequent ImportEntities operations. + # By nesting the data files deeper, the same Cloud Storage bucket can be used + # in multiple ExportEntities operations without conflict. + # Corresponds to the JSON property `outputUrlPrefix` + # @return [String] + attr_accessor :output_url_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @labels = args[:labels] if args.key?(:labels) + @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix) + end + end + + # The response for + # google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities. + class GoogleDatastoreAdminV1beta1ExportEntitiesResponse + include Google::Apis::Core::Hashable + + # Location of the output metadata file. This can be used to begin an import + # into Cloud Datastore (this project or another project). See + # google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url. + # Only present if the operation completed successfully. + # Corresponds to the JSON property `outputUrl` + # @return [String] + attr_accessor :output_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_url = args[:output_url] if args.key?(:output_url) + end + end + + # Metadata for ImportEntities operations. + class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata] + attr_accessor :common + + # Identifies a subset of entities in a project. This is specified as + # combinations of kind + namespace (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter] + attr_accessor :entity_filter + + # The location of the import metadata file. This will be the same value as + # the google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url + # field. + # Corresponds to the JSON property `inputUrl` + # @return [String] + attr_accessor :input_url + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @input_url = args[:input_url] if args.key?(:input_url) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + + # The request for + # google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities. + class GoogleDatastoreAdminV1beta1ImportEntitiesRequest + include Google::Apis::Core::Hashable + + # Identifies a subset of entities in a project. This is specified as + # combinations of kind + namespace (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter] + attr_accessor :entity_filter + + # The full resource URL of the external storage location. Currently, only + # Google Cloud Storage is supported. So input_url should be of the form: + # `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where + # `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is + # an optional Cloud Storage namespace path (this is not a Cloud Datastore + # namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written + # by the ExportEntities operation. For more information about Cloud Storage + # namespace paths, see + # [Object name + # considerations](https://cloud.google.com/storage/docs/naming#object- + # considerations). + # For more information, see + # google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url. + # Corresponds to the JSON property `inputUrl` + # @return [String] + attr_accessor :input_url + + # Client-assigned labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @input_url = args[:input_url] if args.key?(:input_url) + @labels = args[:labels] if args.key?(:labels) + end + end + + # Measures the progress of a particular metric. + class GoogleDatastoreAdminV1beta1Progress + include Google::Apis::Core::Hashable + + # Note that this may be greater than work_estimated. + # Corresponds to the JSON property `workCompleted` + # @return [Fixnum] + attr_accessor :work_completed + + # An estimate of how much work needs to be performed. May be zero if the + # work estimate is unavailable. + # Corresponds to the JSON property `workEstimated` + # @return [Fixnum] + attr_accessor :work_estimated + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @work_completed = args[:work_completed] if args.key?(:work_completed) + @work_estimated = args[:work_estimated] if args.key?(:work_estimated) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class GoogleLongrunningOperation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If true, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::DatastoreV1beta1::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + end + end +end diff --git a/generated/google/apis/datastore_v1beta1/representations.rb b/generated/google/apis/datastore_v1beta1/representations.rb new file mode 100644 index 000000000..eba20e4da --- /dev/null +++ b/generated/google/apis/datastore_v1beta1/representations.rb @@ -0,0 +1,191 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DatastoreV1beta1 + + class GoogleDatastoreAdminV1beta1CommonMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1beta1EntityFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1beta1ExportEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1beta1ExportEntitiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1beta1ImportEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1beta1Progress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1beta1CommonMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + hash :labels, as: 'labels' + property :operation_type, as: 'operationType' + property :start_time, as: 'startTime' + property :state, as: 'state' + end + end + + class GoogleDatastoreAdminV1beta1EntityFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :kinds, as: 'kinds' + collection :namespace_ids, as: 'namespaceIds' + end + end + + class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata::Representation + + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter::Representation + + property :output_url_prefix, as: 'outputUrlPrefix' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress::Representation + + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress::Representation + + end + end + + class GoogleDatastoreAdminV1beta1ExportEntitiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter::Representation + + hash :labels, as: 'labels' + property :output_url_prefix, as: 'outputUrlPrefix' + end + end + + class GoogleDatastoreAdminV1beta1ExportEntitiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_url, as: 'outputUrl' + end + end + + class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata::Representation + + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter::Representation + + property :input_url, as: 'inputUrl' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress::Representation + + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress::Representation + + end + end + + class GoogleDatastoreAdminV1beta1ImportEntitiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter::Representation + + property :input_url, as: 'inputUrl' + hash :labels, as: 'labels' + end + end + + class GoogleDatastoreAdminV1beta1Progress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :work_completed, :numeric_string => true, as: 'workCompleted' + property :work_estimated, :numeric_string => true, as: 'workEstimated' + end + end + + class GoogleLongrunningOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::DatastoreV1beta1::Status, decorator: Google::Apis::DatastoreV1beta1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + end + end +end diff --git a/generated/google/apis/datastore_v1beta1/service.rb b/generated/google/apis/datastore_v1beta1/service.rb new file mode 100644 index 000000000..3142ee943 --- /dev/null +++ b/generated/google/apis/datastore_v1beta1/service.rb @@ -0,0 +1,137 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DatastoreV1beta1 + # Google Cloud Datastore API + # + # Accesses the schemaless NoSQL database to provide fully managed, robust, + # scalable storage for your application. + # + # @example + # require 'google/apis/datastore_v1beta1' + # + # Datastore = Google::Apis::DatastoreV1beta1 # Alias the module + # service = Datastore::DatastoreService.new + # + # @see https://cloud.google.com/datastore/ + class DatastoreService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://datastore.googleapis.com/', '') + @batch_path = 'batch' + end + + # Exports a copy of all or a subset of entities from Google Cloud Datastore + # to another storage system, such as Google Cloud Storage. Recent updates to + # entities 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] project_id + # Project ID against which to make the request. + # @param [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ExportEntitiesRequest] google_datastore_admin_v1beta1_export_entities_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::DatastoreV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1beta1::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(project_id, google_datastore_admin_v1beta1_export_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/projects/{projectId}:export', options) + command.request_representation = Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ExportEntitiesRequest::Representation + command.request_object = google_datastore_admin_v1beta1_export_entities_request_object + command.response_representation = Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation + command.params['projectId'] = project_id unless project_id.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 entities into Google Cloud Datastore. Existing entities with the + # same key 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 ImportEntities operation is cancelled, it is possible + # that a subset of the data has already been imported to Cloud Datastore. + # @param [String] project_id + # Project ID against which to make the request. + # @param [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ImportEntitiesRequest] google_datastore_admin_v1beta1_import_entities_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::DatastoreV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1beta1::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(project_id, google_datastore_admin_v1beta1_import_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/projects/{projectId}:import', options) + command.request_representation = Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ImportEntitiesRequest::Representation + command.request_object = google_datastore_admin_v1beta1_import_entities_request_object + command.response_representation = Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index ac25e1e78..27358f487 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -51,7 +51,7 @@ module Google def initialize super('https://www.googleapis.com/', 'drive/v2/') - @batch_path = 'batch' + @batch_path = 'batch/drive/v2' end # Gets the information about the current user along with Drive API settings diff --git a/generated/google/apis/drive_v3/service.rb b/generated/google/apis/drive_v3/service.rb index 23c4f70ad..cb6b6618a 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -51,7 +51,7 @@ module Google def initialize super('https://www.googleapis.com/', 'drive/v3/') - @batch_path = 'batch' + @batch_path = 'batch/drive/v3' end # Gets information about the user, the user's Drive, and system capabilities. diff --git a/generated/google/apis/logging_v2.rb b/generated/google/apis/logging_v2.rb index 1c3962959..aeb3a9f8b 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20170821' + REVISION = '20170828' # 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/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index a488b3e46..7c606422c 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -22,6 +22,64 @@ module Google module Apis module LoggingV2 + # BucketOptions describes the bucket boundaries used to create a histogram for + # the distribution. The buckets can be in a linear sequence, an exponential + # sequence, or each bucket can be specified explicitly. BucketOptions does not + # include the number of values in each bucket.A bucket has an inclusive lower + # bound and exclusive upper bound for the values that are counted for that + # bucket. The upper bound of a bucket must be strictly greater than the lower + # bound. The sequence of N buckets for a distribution consists of an underflow + # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an + # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of + # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets + # span the whole range of finite values: lower bound of the underflow bucket is - + # infinity and the upper bound of the overflow bucket is +infinity. The finite + # buckets are so-called because both bounds are finite. + class BucketOptions + include Google::Apis::Core::Hashable + + # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= + # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): + # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at + # least one element. If bounds has only one element, then there are no finite + # buckets, and that single element is the common boundary of the overflow and + # underflow buckets. + # Corresponds to the JSON property `explicitBuckets` + # @return [Google::Apis::LoggingV2::Explicit] + attr_accessor :explicit_buckets + + # Specifies an exponential sequence of buckets that have a width that is + # proportional to the value of the lower bound. Each bucket represents a + # constant relative uncertainty on a specific value in the bucket.There are + # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: + # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < + # N): scale * (growth_factor ^ (i - 1)). + # Corresponds to the JSON property `exponentialBuckets` + # @return [Google::Apis::LoggingV2::Exponential] + attr_accessor :exponential_buckets + + # Specifies a linear sequence of buckets that all have the same width (except + # overflow and underflow). Each bucket represents a constant absolute + # uncertainty on the specific value in the bucket.There are num_finite_buckets + + # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- + # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) + # . + # Corresponds to the JSON property `linearBuckets` + # @return [Google::Apis::LoggingV2::Linear] + attr_accessor :linear_buckets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets) + @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets) + @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets) + end + end + # A generic empty message that you can re-use to avoid defining duplicated empty # messages in your APIs. A typical example is to use it as the request or the # response type of an API method. For instance: @@ -41,6 +99,66 @@ module Google end end + # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= + # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): + # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at + # least one element. If bounds has only one element, then there are no finite + # buckets, and that single element is the common boundary of the overflow and + # underflow buckets. + class Explicit + include Google::Apis::Core::Hashable + + # The values must be monotonically increasing. + # Corresponds to the JSON property `bounds` + # @return [Array] + attr_accessor :bounds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounds = args[:bounds] if args.key?(:bounds) + end + end + + # Specifies an exponential sequence of buckets that have a width that is + # proportional to the value of the lower bound. Each bucket represents a + # constant relative uncertainty on a specific value in the bucket.There are + # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: + # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < + # N): scale * (growth_factor ^ (i - 1)). + class Exponential + include Google::Apis::Core::Hashable + + # Must be greater than 1. + # Corresponds to the JSON property `growthFactor` + # @return [Float] + attr_accessor :growth_factor + + # Must be greater than 0. + # Corresponds to the JSON property `numFiniteBuckets` + # @return [Fixnum] + attr_accessor :num_finite_buckets + + # Must be greater than 0. + # Corresponds to the JSON property `scale` + # @return [Float] + attr_accessor :scale + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @growth_factor = args[:growth_factor] if args.key?(:growth_factor) + @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) + @scale = args[:scale] if args.key?(:scale) + end + end + # A common proto for logging HTTP requests. Only contains semantics defined by # the HTTP specification. Product-specific logging information MUST be defined # in a separate message. @@ -190,6 +308,69 @@ module Google end end + # Specifies a linear sequence of buckets that all have the same width (except + # overflow and underflow). Each bucket represents a constant absolute + # uncertainty on the specific value in the bucket.There are num_finite_buckets + + # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- + # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) + # . + class Linear + include Google::Apis::Core::Hashable + + # Must be greater than 0. + # Corresponds to the JSON property `numFiniteBuckets` + # @return [Fixnum] + attr_accessor :num_finite_buckets + + # Lower bound of the first bucket. + # Corresponds to the JSON property `offset` + # @return [Float] + attr_accessor :offset + + # Must be greater than 0. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) + @offset = args[:offset] if args.key?(:offset) + @width = args[:width] if args.key?(:width) + end + end + + # Result returned from ListExclusions. + class ListExclusionsResponse + include Google::Apis::Core::Hashable + + # A list of exclusions. + # Corresponds to the JSON property `exclusions` + # @return [Array] + attr_accessor :exclusions + + # If there might be more results than appear in this response, then + # nextPageToken is included. To get the next set of results, call the same + # method again using the value of nextPageToken as pageToken. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exclusions = args[:exclusions] if args.key?(:exclusions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The parameters to ListLogEntries. class ListLogEntriesRequest include Google::Apis::Core::Hashable @@ -420,8 +601,8 @@ module Google # Optional. A unique identifier for the log entry. If you provide a value, then # Stackdriver Logging considers other log entries in the same project, with the # same timestamp, and with the same insert_id to be duplicates which can be - # removed. If omitted in new log entries, then Stackdriver Logging will insert - # its own unique identifier. The insert_id is used to order log entries that + # removed. If omitted in new log entries, then Stackdriver Logging assigns its + # own unique identifier. The insert_id is also used to order log entries that # have the same timestamp value. # Corresponds to the JSON property `insertId` # @return [String] @@ -507,11 +688,12 @@ module Google # @return [String] attr_accessor :text_payload - # Optional. The time the event described by the log entry occurred. If omitted - # in a new log entry, Stackdriver Logging will insert the time the log entry is - # received. Stackdriver Logging might reject log entries whose time stamps are - # more than a couple of hours in the future. Log entries with time stamps in the - # past are accepted. + # Optional. The time the event described by the log entry occurred. This time is + # used to compute the log entry's age and to enforce the logs retention period. + # If this field is omitted in a new log entry, then Stackdriver Logging assigns + # it the current time.Incoming log entries should have timestamps that are no + # more than the logs retention period in the past, and no more than 24 hours in + # the future. See the entries.write API method for more information. # Corresponds to the JSON property `timestamp` # @return [String] attr_accessor :timestamp @@ -628,6 +810,56 @@ module Google end end + # Specifies a set of log entries that are not to be stored in Stackdriver + # Logging. If your project receives a large volume of logs, you might be able to + # use exclusions to reduce your chargeable logs. Exclusions are processed after + # log sinks, so you can export log entries before they are excluded. Audit log + # entries and log entries from Amazon Web Services are never excluded. + class LogExclusion + include Google::Apis::Core::Hashable + + # Optional. A description of this exclusion. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. If set to True, then this exclusion is disabled and it does not + # exclude any log entries. You can use exclusions.patch to change the value of + # this field. + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + + # Required. An advanced logs filter that matches the log entries to be excluded. + # By using the sample function, you can exclude less than 100% of the matching + # log entries. For example, the following filter matches 99% of low-severity log + # entries from load balancers: + # "resource.type=http_load_balancer severity 0) is the same as the upper bound of bucket i - 1. The buckets + # span the whole range of finite values: lower bound of the underflow bucket is - + # infinity and the upper bound of the overflow bucket is +infinity. The finite + # buckets are so-called because both bounds are finite. + # Corresponds to the JSON property `bucketOptions` + # @return [Google::Apis::LoggingV2::BucketOptions] + attr_accessor :bucket_options + # Optional. A description of this metric, which is used in documentation. # Corresponds to the JSON property `description` # @return [String] @@ -682,6 +935,27 @@ module Google # @return [String] attr_accessor :filter + # Optional. A map from a label key string to an extractor expression which is + # used to extract data from a log entry field and assign as the label value. + # Each label key specified in the LabelDescriptor must have an associated + # extractor expression in this map. The syntax of the extractor expression is + # the same as for the value_extractor field.The extracted value is converted to + # the type defined in the label descriptor. If the either the extraction or the + # type conversion fails, the label will have a default value. The default value + # for a string label is an empty string, for an integer label its 0, and for a + # boolean label its false.Note that there are upper bounds on the maximum number + # of labels and the number of active time series that are allowed in a project. + # Corresponds to the JSON property `labelExtractors` + # @return [Hash] + attr_accessor :label_extractors + + # Defines a metric type and its schema. Once a metric descriptor is created, + # deleting or altering it stops data collection and makes the metric type's + # existing data unusable. + # Corresponds to the JSON property `metricDescriptor` + # @return [Google::Apis::LoggingV2::MetricDescriptor] + attr_accessor :metric_descriptor + # Required. The client-assigned metric identifier. Examples: "error_count", " # nginx/requests".Metric identifiers are limited to 100 characters and can # include only the following characters: A-Z, a-z, 0-9, and the special @@ -695,6 +969,23 @@ module Google # @return [String] attr_accessor :name + # Optional. A value_extractor is required when using a distribution logs-based + # metric to extract the values to record from a log entry. Two functions are + # supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). + # The argument are: 1. field: The name of the log entry field from which the + # value is to be extracted. 2. regex: A regular expression using the Google + # RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture + # group to extract data from the specified log entry field. The value of the + # field is converted to a string before applying the regex. It is an error to + # specify a regex that does not include exactly one capture group.The result of + # the extraction must be convertible to a double type, as the distribution + # always records double values. If either the extraction or the conversion to + # double fails, then those values are not recorded in the distribution.Example: + # REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*") + # Corresponds to the JSON property `valueExtractor` + # @return [String] + attr_accessor :value_extractor + # Deprecated. The API version that created or updated this metric. The v2 format # is used by default and cannot be changed. # Corresponds to the JSON property `version` @@ -707,9 +998,13 @@ module Google # Update properties of this object def update!(**args) + @bucket_options = args[:bucket_options] if args.key?(:bucket_options) @description = args[:description] if args.key?(:description) @filter = args[:filter] if args.key?(:filter) + @label_extractors = args[:label_extractors] if args.key?(:label_extractors) + @metric_descriptor = args[:metric_descriptor] if args.key?(:metric_descriptor) @name = args[:name] if args.key?(:name) + @value_extractor = args[:value_extractor] if args.key?(:value_extractor) @version = args[:version] if args.key?(:version) end end @@ -818,6 +1113,132 @@ module Google end end + # Defines a metric type and its schema. Once a metric descriptor is created, + # deleting or altering it stops data collection and makes the metric type's + # existing data unusable. + class MetricDescriptor + include Google::Apis::Core::Hashable + + # A detailed description of the metric, which can be used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A concise name for the metric, which can be displayed in user interfaces. Use + # sentence case without an ending period, for example "Request count". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The set of labels that can be used to describe a specific instance of this + # metric type. For example, the appengine.googleapis.com/http/server/ + # response_latencies metric type has a label for the HTTP response code, + # response_code, so you can look at latencies for successful responses or just + # for responses that failed. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Whether the metric records instantaneous values, changes to a value, etc. Some + # combinations of metric_kind and value_type might not be supported. + # Corresponds to the JSON property `metricKind` + # @return [String] + attr_accessor :metric_kind + + # The resource name of the metric descriptor. Depending on the implementation, + # the name typically includes: (1) the parent resource name that defines the + # scope of the metric type or of its data; and (2) the metric's URL-encoded type, + # which also appears in the type field of this descriptor. For example, + # following is the resource name of a custom metric within the GCP project my- + # project-id: + # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice% + # 2Fpaid%2Famount" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The metric type, including its DNS name prefix. The type is not URL-encoded. + # All user-defined custom metric types have the DNS name custom.googleapis.com. + # Metric types should use a natural hierarchical grouping. For example: + # "custom.googleapis.com/invoice/paid/amount" + # "appengine.googleapis.com/http/server/response_latencies" + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The unit in which the metric value is reported. It is only applicable if the + # value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset + # of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html) + # standard:Basic units (UNIT) + # bit bit + # By byte + # s second + # min minute + # h hour + # d dayPrefixes (PREFIX) + # k kilo (10**3) + # M mega (10**6) + # G giga (10**9) + # T tera (10**12) + # P peta (10**15) + # E exa (10**18) + # Z zetta (10**21) + # Y yotta (10**24) + # m milli (10**-3) + # u micro (10**-6) + # n nano (10**-9) + # p pico (10**-12) + # f femto (10**-15) + # a atto (10**-18) + # z zepto (10**-21) + # y yocto (10**-24) + # Ki kibi (2**10) + # Mi mebi (2**20) + # Gi gibi (2**30) + # Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/ + # s.The grammar also includes these connectors: + # / division (as an infix operator, e.g. 1/s). + # . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is + # as follows: + # Expression = Component ` "." Component ` ` "/" Component ` ; + # Component = [ PREFIX ] UNIT [ Annotation ] + # | Annotation + # | "1" + # ; + # Annotation = "`" NAME "`" ; + # Notes: + # Annotation is just a comment if it follows a UNIT and is equivalent to 1 if + # it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/ + # s. + # NAME is a sequence of non-blank printable ASCII characters not containing '`' + # or '`'. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # Whether the measurement is an integer, a floating-point number, etc. Some + # combinations of metric_kind and value_type might not be supported. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @metric_kind = args[:metric_kind] if args.key?(:metric_kind) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @unit = args[:unit] if args.key?(:unit) + @value_type = args[:value_type] if args.key?(:value_type) + end + end + # An object representing a resource that can be used for monitoring, logging, # billing, or other purposes. Examples include virtual machine instances, # databases, and storage devices such as disks. The type field identifies a @@ -1210,16 +1631,21 @@ module Google class WriteLogEntriesRequest include Google::Apis::Core::Hashable - # Required. The log entries to write. Values supplied for the fields log_name, - # resource, and labels in this entries.write request are inserted into those log - # entries in this list that do not provide their own values.Stackdriver Logging - # also creates and inserts values for timestamp and insert_id if the entries do - # not provide them. The created insert_id for the N'th entry in this list will - # be greater than earlier entries and less than later entries. Otherwise, the - # order of log entries in this list does not matter.To improve throughput and to - # avoid exceeding the quota limit for calls to entries.write, you should write - # multiple log entries at once rather than calling this method for each - # individual log entry. + # Required. The log entries to send to Stackdriver Logging. The order of log + # entries in this list does not matter. Values supplied in this method's + # log_name, resource, and labels fields are copied into those log entries in + # this list that do not include values for their corresponding fields. For more + # information, see the LogEntry type.If the timestamp or insert_id fields are + # missing in log entries, then this method supplies the current time or a unique + # identifier, respectively. The supplied values are chosen so that, among the + # log entries that did not supply their own values, the entries earlier in the + # list will sort before the entries later in the list. See entries.list.Log + # entries with timestamps that are more than the logs retention period in the + # past or more than 24 hours in the future might be discarded. Discarding does + # not return an error.To improve throughput and to avoid exceeding the quota + # limit for calls to entries.write, you should try to include several log + # entries in this list, rather than calling this method for each individual log + # entry. # Corresponds to the JSON property `entries` # @return [Array] attr_accessor :entries diff --git a/generated/google/apis/logging_v2/representations.rb b/generated/google/apis/logging_v2/representations.rb index 6515fe69b..761fefba2 100644 --- a/generated/google/apis/logging_v2/representations.rb +++ b/generated/google/apis/logging_v2/representations.rb @@ -22,12 +22,30 @@ module Google module Apis module LoggingV2 + class BucketOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Explicit + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Exponential + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HttpRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -40,6 +58,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Linear + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListExclusionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListLogEntriesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -94,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LogExclusion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LogLine class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +148,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MetricDescriptor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MonitoredResource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,12 +196,40 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BucketOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::LoggingV2::Explicit, decorator: Google::Apis::LoggingV2::Explicit::Representation + + property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::LoggingV2::Exponential, decorator: Google::Apis::LoggingV2::Exponential::Representation + + property :linear_buckets, as: 'linearBuckets', class: Google::Apis::LoggingV2::Linear, decorator: Google::Apis::LoggingV2::Linear::Representation + + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end + class Explicit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bounds, as: 'bounds' + end + end + + class Exponential + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :growth_factor, as: 'growthFactor' + property :num_finite_buckets, as: 'numFiniteBuckets' + property :scale, as: 'scale' + end + end + class HttpRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -190,6 +260,24 @@ module Google end end + class Linear + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_finite_buckets, as: 'numFiniteBuckets' + property :offset, as: 'offset' + property :width, as: 'width' + end + end + + class ListExclusionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exclusions, as: 'exclusions', class: Google::Apis::LoggingV2::LogExclusion, decorator: Google::Apis::LoggingV2::LogExclusion::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListLogEntriesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -289,6 +377,16 @@ module Google end end + class LogExclusion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :disabled, as: 'disabled' + property :filter, as: 'filter' + property :name, as: 'name' + end + end + class LogLine # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -303,9 +401,15 @@ module Google class LogMetric # @private class Representation < Google::Apis::Core::JsonRepresentation + property :bucket_options, as: 'bucketOptions', class: Google::Apis::LoggingV2::BucketOptions, decorator: Google::Apis::LoggingV2::BucketOptions::Representation + property :description, as: 'description' property :filter, as: 'filter' + hash :label_extractors, as: 'labelExtractors' + property :metric_descriptor, as: 'metricDescriptor', class: Google::Apis::LoggingV2::MetricDescriptor, decorator: Google::Apis::LoggingV2::MetricDescriptor::Representation + property :name, as: 'name' + property :value_extractor, as: 'valueExtractor' property :version, as: 'version' end end @@ -324,6 +428,21 @@ module Google end end + class MetricDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation + + property :metric_kind, as: 'metricKind' + property :name, as: 'name' + property :type, as: 'type' + property :unit, as: 'unit' + property :value_type, as: 'valueType' + end + end + class MonitoredResource # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/logging_v2/service.rb b/generated/google/apis/logging_v2/service.rb index 49f797666..5bd6b866f 100644 --- a/generated/google/apis/logging_v2/service.rb +++ b/generated/google/apis/logging_v2/service.rb @@ -47,6 +47,207 @@ module Google @batch_path = 'batch' end + # Creates a new exclusion in a specified parent resource. Only log entries + # belonging to that resource can be excluded. You can have up to 10 exclusions + # in a resource. + # @param [String] parent + # Required. The parent resource in which to create the exclusion: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # Examples: "projects/my-logging-project", "organizations/123456789". + # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_billing_account_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/exclusions', options) + command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.request_object = log_exclusion_object + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an exclusion. + # @param [String] name + # Required. The resource name of an existing exclusion to delete: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @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::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_billing_account_exclusion(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the description of an exclusion. + # @param [String] name + # Required. The resource name of an existing exclusion: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_billing_account_exclusion(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all the exclusions in a parent resource. + # @param [String] parent + # Required. The parent resource whose exclusions are to be listed. + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @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::LoggingV2::ListExclusionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListExclusionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_billing_account_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/exclusions', options) + command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Changes one or more properties of an existing exclusion. + # @param [String] name + # Required. The resource name of the exclusion to update: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object + # @param [String] update_mask + # Required. A nonempty list of fields to change in the existing exclusion. New + # values for the fields are taken from the corresponding fields in the + # LogExclusion included in this request. Fields not mentioned in update_mask are + # not changed and are ignored in the request.For example, to change the filter + # and description of an exclusion, specify an update_mask of "filter,description" + # . + # @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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @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 patch_billing_account_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.request_object = log_exclusion_object + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. @@ -439,7 +640,10 @@ module Google execute_or_queue_command(command, &block) end - # Writes log entries to Stackdriver Logging. + # Log entry resourcesWrites log entries to Stackdriver Logging. This API method + # is the only way to send log entries to Stackdriver Logging. This method is + # used, directly or indirectly, by the Stackdriver Logging agent (fluentd) and + # all logging libraries configured to use Stackdriver Logging. # @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -469,6 +673,207 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new exclusion in a specified parent resource. Only log entries + # belonging to that resource can be excluded. You can have up to 10 exclusions + # in a resource. + # @param [String] parent + # Required. The parent resource in which to create the exclusion: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # Examples: "projects/my-logging-project", "organizations/123456789". + # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_folder_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/exclusions', options) + command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.request_object = log_exclusion_object + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an exclusion. + # @param [String] name + # Required. The resource name of an existing exclusion to delete: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @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::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_folder_exclusion(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the description of an exclusion. + # @param [String] name + # Required. The resource name of an existing exclusion: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_folder_exclusion(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all the exclusions in a parent resource. + # @param [String] parent + # Required. The parent resource whose exclusions are to be listed. + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @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::LoggingV2::ListExclusionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListExclusionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_folder_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/exclusions', options) + command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Changes one or more properties of an existing exclusion. + # @param [String] name + # Required. The resource name of the exclusion to update: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object + # @param [String] update_mask + # Required. A nonempty list of fields to change in the existing exclusion. New + # values for the fields are taken from the corresponding fields in the + # LogExclusion included in this request. Fields not mentioned in update_mask are + # not changed and are ignored in the request.For example, to change the filter + # and description of an exclusion, specify an update_mask of "filter,description" + # . + # @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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @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 patch_folder_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.request_object = log_exclusion_object + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. @@ -868,6 +1273,207 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new exclusion in a specified parent resource. Only log entries + # belonging to that resource can be excluded. You can have up to 10 exclusions + # in a resource. + # @param [String] parent + # Required. The parent resource in which to create the exclusion: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # Examples: "projects/my-logging-project", "organizations/123456789". + # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_organization_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/exclusions', options) + command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.request_object = log_exclusion_object + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an exclusion. + # @param [String] name + # Required. The resource name of an existing exclusion to delete: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @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::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_organization_exclusion(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the description of an exclusion. + # @param [String] name + # Required. The resource name of an existing exclusion: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_exclusion(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all the exclusions in a parent resource. + # @param [String] parent + # Required. The parent resource whose exclusions are to be listed. + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @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::LoggingV2::ListExclusionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListExclusionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_organization_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/exclusions', options) + command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Changes one or more properties of an existing exclusion. + # @param [String] name + # Required. The resource name of the exclusion to update: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object + # @param [String] update_mask + # Required. A nonempty list of fields to change in the existing exclusion. New + # values for the fields are taken from the corresponding fields in the + # LogExclusion included in this request. Fields not mentioned in update_mask are + # not changed and are ignored in the request.For example, to change the filter + # and description of an exclusion, specify an update_mask of "filter,description" + # . + # @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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @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 patch_organization_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.request_object = log_exclusion_object + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. @@ -1229,6 +1835,207 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new exclusion in a specified parent resource. Only log entries + # belonging to that resource can be excluded. You can have up to 10 exclusions + # in a resource. + # @param [String] parent + # Required. The parent resource in which to create the exclusion: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # Examples: "projects/my-logging-project", "organizations/123456789". + # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/exclusions', options) + command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.request_object = log_exclusion_object + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an exclusion. + # @param [String] name + # Required. The resource name of an existing exclusion to delete: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @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::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_exclusion(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the description of an exclusion. + # @param [String] name + # Required. The resource name of an existing exclusion: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_exclusion(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all the exclusions in a parent resource. + # @param [String] parent + # Required. The parent resource whose exclusions are to be listed. + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @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::LoggingV2::ListExclusionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListExclusionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/exclusions', options) + command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Changes one or more properties of an existing exclusion. + # @param [String] name + # Required. The resource name of the exclusion to update: + # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + # Example: "projects/my-project-id/exclusions/my-exclusion-id". + # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object + # @param [String] update_mask + # Required. A nonempty list of fields to change in the existing exclusion. New + # values for the fields are taken from the corresponding fields in the + # LogExclusion included in this request. Fields not mentioned in update_mask are + # not changed and are ignored in the request.For example, to change the filter + # and description of an exclusion, specify an update_mask of "filter,description" + # . + # @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::LoggingV2::LogExclusion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogExclusion] + # + # @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 patch_project_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.request_object = log_exclusion_object + command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation + command.response_class = Google::Apis::LoggingV2::LogExclusion + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. diff --git a/generated/google/apis/logging_v2beta1.rb b/generated/google/apis/logging_v2beta1.rb index 50cf850ea..a9a777e8d 100644 --- a/generated/google/apis/logging_v2beta1.rb +++ b/generated/google/apis/logging_v2beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2beta1 VERSION = 'V2beta1' - REVISION = '20170821' + REVISION = '20170828' # 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/logging_v2beta1/classes.rb b/generated/google/apis/logging_v2beta1/classes.rb index 44cdd3c61..d96ffbefd 100644 --- a/generated/google/apis/logging_v2beta1/classes.rb +++ b/generated/google/apis/logging_v2beta1/classes.rb @@ -22,6 +22,64 @@ module Google module Apis module LoggingV2beta1 + # BucketOptions describes the bucket boundaries used to create a histogram for + # the distribution. The buckets can be in a linear sequence, an exponential + # sequence, or each bucket can be specified explicitly. BucketOptions does not + # include the number of values in each bucket.A bucket has an inclusive lower + # bound and exclusive upper bound for the values that are counted for that + # bucket. The upper bound of a bucket must be strictly greater than the lower + # bound. The sequence of N buckets for a distribution consists of an underflow + # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an + # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of + # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets + # span the whole range of finite values: lower bound of the underflow bucket is - + # infinity and the upper bound of the overflow bucket is +infinity. The finite + # buckets are so-called because both bounds are finite. + class BucketOptions + include Google::Apis::Core::Hashable + + # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= + # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): + # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at + # least one element. If bounds has only one element, then there are no finite + # buckets, and that single element is the common boundary of the overflow and + # underflow buckets. + # Corresponds to the JSON property `explicitBuckets` + # @return [Google::Apis::LoggingV2beta1::Explicit] + attr_accessor :explicit_buckets + + # Specifies an exponential sequence of buckets that have a width that is + # proportional to the value of the lower bound. Each bucket represents a + # constant relative uncertainty on a specific value in the bucket.There are + # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: + # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < + # N): scale * (growth_factor ^ (i - 1)). + # Corresponds to the JSON property `exponentialBuckets` + # @return [Google::Apis::LoggingV2beta1::Exponential] + attr_accessor :exponential_buckets + + # Specifies a linear sequence of buckets that all have the same width (except + # overflow and underflow). Each bucket represents a constant absolute + # uncertainty on the specific value in the bucket.There are num_finite_buckets + + # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- + # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) + # . + # Corresponds to the JSON property `linearBuckets` + # @return [Google::Apis::LoggingV2beta1::Linear] + attr_accessor :linear_buckets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets) + @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets) + @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets) + end + end + # A generic empty message that you can re-use to avoid defining duplicated empty # messages in your APIs. A typical example is to use it as the request or the # response type of an API method. For instance: @@ -41,6 +99,66 @@ module Google end end + # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= + # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): + # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at + # least one element. If bounds has only one element, then there are no finite + # buckets, and that single element is the common boundary of the overflow and + # underflow buckets. + class Explicit + include Google::Apis::Core::Hashable + + # The values must be monotonically increasing. + # Corresponds to the JSON property `bounds` + # @return [Array] + attr_accessor :bounds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounds = args[:bounds] if args.key?(:bounds) + end + end + + # Specifies an exponential sequence of buckets that have a width that is + # proportional to the value of the lower bound. Each bucket represents a + # constant relative uncertainty on a specific value in the bucket.There are + # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: + # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < + # N): scale * (growth_factor ^ (i - 1)). + class Exponential + include Google::Apis::Core::Hashable + + # Must be greater than 1. + # Corresponds to the JSON property `growthFactor` + # @return [Float] + attr_accessor :growth_factor + + # Must be greater than 0. + # Corresponds to the JSON property `numFiniteBuckets` + # @return [Fixnum] + attr_accessor :num_finite_buckets + + # Must be greater than 0. + # Corresponds to the JSON property `scale` + # @return [Float] + attr_accessor :scale + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @growth_factor = args[:growth_factor] if args.key?(:growth_factor) + @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) + @scale = args[:scale] if args.key?(:scale) + end + end + # A common proto for logging HTTP requests. Only contains semantics defined by # the HTTP specification. Product-specific logging information MUST be defined # in a separate message. @@ -190,6 +308,42 @@ module Google end end + # Specifies a linear sequence of buckets that all have the same width (except + # overflow and underflow). Each bucket represents a constant absolute + # uncertainty on the specific value in the bucket.There are num_finite_buckets + + # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- + # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) + # . + class Linear + include Google::Apis::Core::Hashable + + # Must be greater than 0. + # Corresponds to the JSON property `numFiniteBuckets` + # @return [Fixnum] + attr_accessor :num_finite_buckets + + # Lower bound of the first bucket. + # Corresponds to the JSON property `offset` + # @return [Float] + attr_accessor :offset + + # Must be greater than 0. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) + @offset = args[:offset] if args.key?(:offset) + @width = args[:width] if args.key?(:width) + end + end + # The parameters to ListLogEntries. class ListLogEntriesRequest include Google::Apis::Core::Hashable @@ -420,8 +574,8 @@ module Google # Optional. A unique identifier for the log entry. If you provide a value, then # Stackdriver Logging considers other log entries in the same project, with the # same timestamp, and with the same insert_id to be duplicates which can be - # removed. If omitted in new log entries, then Stackdriver Logging will insert - # its own unique identifier. The insert_id is used to order log entries that + # removed. If omitted in new log entries, then Stackdriver Logging assigns its + # own unique identifier. The insert_id is also used to order log entries that # have the same timestamp value. # Corresponds to the JSON property `insertId` # @return [String] @@ -507,11 +661,12 @@ module Google # @return [String] attr_accessor :text_payload - # Optional. The time the event described by the log entry occurred. If omitted - # in a new log entry, Stackdriver Logging will insert the time the log entry is - # received. Stackdriver Logging might reject log entries whose time stamps are - # more than a couple of hours in the future. Log entries with time stamps in the - # past are accepted. + # Optional. The time the event described by the log entry occurred. This time is + # used to compute the log entry's age and to enforce the logs retention period. + # If this field is omitted in a new log entry, then Stackdriver Logging assigns + # it the current time.Incoming log entries should have timestamps that are no + # more than the logs retention period in the past, and no more than 24 hours in + # the future. See the entries.write API method for more information. # Corresponds to the JSON property `timestamp` # @return [String] attr_accessor :timestamp @@ -666,10 +821,31 @@ module Google end # Describes a logs-based metric. The value of the metric is the number of log - # entries that match a logs filter in a given time interval. + # entries that match a logs filter in a given time interval.Logs-based metric + # can also be used to extract values from logs and create a a distribution of + # the values. The distribution records the statistics of the extracted values + # along with an optional histogram of the values as specified by the bucket + # options. class LogMetric include Google::Apis::Core::Hashable + # BucketOptions describes the bucket boundaries used to create a histogram for + # the distribution. The buckets can be in a linear sequence, an exponential + # sequence, or each bucket can be specified explicitly. BucketOptions does not + # include the number of values in each bucket.A bucket has an inclusive lower + # bound and exclusive upper bound for the values that are counted for that + # bucket. The upper bound of a bucket must be strictly greater than the lower + # bound. The sequence of N buckets for a distribution consists of an underflow + # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an + # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of + # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets + # span the whole range of finite values: lower bound of the underflow bucket is - + # infinity and the upper bound of the overflow bucket is +infinity. The finite + # buckets are so-called because both bounds are finite. + # Corresponds to the JSON property `bucketOptions` + # @return [Google::Apis::LoggingV2beta1::BucketOptions] + attr_accessor :bucket_options + # Optional. A description of this metric, which is used in documentation. # Corresponds to the JSON property `description` # @return [String] @@ -682,6 +858,27 @@ module Google # @return [String] attr_accessor :filter + # Optional. A map from a label key string to an extractor expression which is + # used to extract data from a log entry field and assign as the label value. + # Each label key specified in the LabelDescriptor must have an associated + # extractor expression in this map. The syntax of the extractor expression is + # the same as for the value_extractor field.The extracted value is converted to + # the type defined in the label descriptor. If the either the extraction or the + # type conversion fails, the label will have a default value. The default value + # for a string label is an empty string, for an integer label its 0, and for a + # boolean label its false.Note that there are upper bounds on the maximum number + # of labels and the number of active time series that are allowed in a project. + # Corresponds to the JSON property `labelExtractors` + # @return [Hash] + attr_accessor :label_extractors + + # Defines a metric type and its schema. Once a metric descriptor is created, + # deleting or altering it stops data collection and makes the metric type's + # existing data unusable. + # Corresponds to the JSON property `metricDescriptor` + # @return [Google::Apis::LoggingV2beta1::MetricDescriptor] + attr_accessor :metric_descriptor + # Required. The client-assigned metric identifier. Examples: "error_count", " # nginx/requests".Metric identifiers are limited to 100 characters and can # include only the following characters: A-Z, a-z, 0-9, and the special @@ -695,6 +892,23 @@ module Google # @return [String] attr_accessor :name + # Optional. A value_extractor is required when using a distribution logs-based + # metric to extract the values to record from a log entry. Two functions are + # supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). + # The argument are: 1. field: The name of the log entry field from which the + # value is to be extracted. 2. regex: A regular expression using the Google + # RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture + # group to extract data from the specified log entry field. The value of the + # field is converted to a string before applying the regex. It is an error to + # specify a regex that does not include exactly one capture group.The result of + # the extraction must be convertible to a double type, as the distribution + # always records double values. If either the extraction or the conversion to + # double fails, then those values are not recorded in the distribution.Example: + # REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*") + # Corresponds to the JSON property `valueExtractor` + # @return [String] + attr_accessor :value_extractor + # Deprecated. The API version that created or updated this metric. The v2 format # is used by default and cannot be changed. # Corresponds to the JSON property `version` @@ -707,9 +921,13 @@ module Google # Update properties of this object def update!(**args) + @bucket_options = args[:bucket_options] if args.key?(:bucket_options) @description = args[:description] if args.key?(:description) @filter = args[:filter] if args.key?(:filter) + @label_extractors = args[:label_extractors] if args.key?(:label_extractors) + @metric_descriptor = args[:metric_descriptor] if args.key?(:metric_descriptor) @name = args[:name] if args.key?(:name) + @value_extractor = args[:value_extractor] if args.key?(:value_extractor) @version = args[:version] if args.key?(:version) end end @@ -818,6 +1036,132 @@ module Google end end + # Defines a metric type and its schema. Once a metric descriptor is created, + # deleting or altering it stops data collection and makes the metric type's + # existing data unusable. + class MetricDescriptor + include Google::Apis::Core::Hashable + + # A detailed description of the metric, which can be used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A concise name for the metric, which can be displayed in user interfaces. Use + # sentence case without an ending period, for example "Request count". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The set of labels that can be used to describe a specific instance of this + # metric type. For example, the appengine.googleapis.com/http/server/ + # response_latencies metric type has a label for the HTTP response code, + # response_code, so you can look at latencies for successful responses or just + # for responses that failed. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Whether the metric records instantaneous values, changes to a value, etc. Some + # combinations of metric_kind and value_type might not be supported. + # Corresponds to the JSON property `metricKind` + # @return [String] + attr_accessor :metric_kind + + # The resource name of the metric descriptor. Depending on the implementation, + # the name typically includes: (1) the parent resource name that defines the + # scope of the metric type or of its data; and (2) the metric's URL-encoded type, + # which also appears in the type field of this descriptor. For example, + # following is the resource name of a custom metric within the GCP project my- + # project-id: + # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice% + # 2Fpaid%2Famount" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The metric type, including its DNS name prefix. The type is not URL-encoded. + # All user-defined custom metric types have the DNS name custom.googleapis.com. + # Metric types should use a natural hierarchical grouping. For example: + # "custom.googleapis.com/invoice/paid/amount" + # "appengine.googleapis.com/http/server/response_latencies" + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The unit in which the metric value is reported. It is only applicable if the + # value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset + # of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html) + # standard:Basic units (UNIT) + # bit bit + # By byte + # s second + # min minute + # h hour + # d dayPrefixes (PREFIX) + # k kilo (10**3) + # M mega (10**6) + # G giga (10**9) + # T tera (10**12) + # P peta (10**15) + # E exa (10**18) + # Z zetta (10**21) + # Y yotta (10**24) + # m milli (10**-3) + # u micro (10**-6) + # n nano (10**-9) + # p pico (10**-12) + # f femto (10**-15) + # a atto (10**-18) + # z zepto (10**-21) + # y yocto (10**-24) + # Ki kibi (2**10) + # Mi mebi (2**20) + # Gi gibi (2**30) + # Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/ + # s.The grammar also includes these connectors: + # / division (as an infix operator, e.g. 1/s). + # . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is + # as follows: + # Expression = Component ` "." Component ` ` "/" Component ` ; + # Component = [ PREFIX ] UNIT [ Annotation ] + # | Annotation + # | "1" + # ; + # Annotation = "`" NAME "`" ; + # Notes: + # Annotation is just a comment if it follows a UNIT and is equivalent to 1 if + # it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/ + # s. + # NAME is a sequence of non-blank printable ASCII characters not containing '`' + # or '`'. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # Whether the measurement is an integer, a floating-point number, etc. Some + # combinations of metric_kind and value_type might not be supported. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @metric_kind = args[:metric_kind] if args.key?(:metric_kind) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @unit = args[:unit] if args.key?(:unit) + @value_type = args[:value_type] if args.key?(:value_type) + end + end + # An object representing a resource that can be used for monitoring, logging, # billing, or other purposes. Examples include virtual machine instances, # databases, and storage devices such as disks. The type field identifies a @@ -1210,16 +1554,21 @@ module Google class WriteLogEntriesRequest include Google::Apis::Core::Hashable - # Required. The log entries to write. Values supplied for the fields log_name, - # resource, and labels in this entries.write request are inserted into those log - # entries in this list that do not provide their own values.Stackdriver Logging - # also creates and inserts values for timestamp and insert_id if the entries do - # not provide them. The created insert_id for the N'th entry in this list will - # be greater than earlier entries and less than later entries. Otherwise, the - # order of log entries in this list does not matter.To improve throughput and to - # avoid exceeding the quota limit for calls to entries.write, you should write - # multiple log entries at once rather than calling this method for each - # individual log entry. + # Required. The log entries to send to Stackdriver Logging. The order of log + # entries in this list does not matter. Values supplied in this method's + # log_name, resource, and labels fields are copied into those log entries in + # this list that do not include values for their corresponding fields. For more + # information, see the LogEntry type.If the timestamp or insert_id fields are + # missing in log entries, then this method supplies the current time or a unique + # identifier, respectively. The supplied values are chosen so that, among the + # log entries that did not supply their own values, the entries earlier in the + # list will sort before the entries later in the list. See entries.list.Log + # entries with timestamps that are more than the logs retention period in the + # past or more than 24 hours in the future might be discarded. Discarding does + # not return an error.To improve throughput and to avoid exceeding the quota + # limit for calls to entries.write, you should try to include several log + # entries in this list, rather than calling this method for each individual log + # entry. # Corresponds to the JSON property `entries` # @return [Array] attr_accessor :entries diff --git a/generated/google/apis/logging_v2beta1/representations.rb b/generated/google/apis/logging_v2beta1/representations.rb index 2118b2d6a..ae400d8e5 100644 --- a/generated/google/apis/logging_v2beta1/representations.rb +++ b/generated/google/apis/logging_v2beta1/representations.rb @@ -22,12 +22,30 @@ module Google module Apis module LoggingV2beta1 + class BucketOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Explicit + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Exponential + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HttpRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -40,6 +58,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Linear + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListLogEntriesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +136,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MetricDescriptor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MonitoredResource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,12 +184,40 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BucketOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::LoggingV2beta1::Explicit, decorator: Google::Apis::LoggingV2beta1::Explicit::Representation + + property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::LoggingV2beta1::Exponential, decorator: Google::Apis::LoggingV2beta1::Exponential::Representation + + property :linear_buckets, as: 'linearBuckets', class: Google::Apis::LoggingV2beta1::Linear, decorator: Google::Apis::LoggingV2beta1::Linear::Representation + + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end + class Explicit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bounds, as: 'bounds' + end + end + + class Exponential + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :growth_factor, as: 'growthFactor' + property :num_finite_buckets, as: 'numFiniteBuckets' + property :scale, as: 'scale' + end + end + class HttpRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -190,6 +248,15 @@ module Google end end + class Linear + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_finite_buckets, as: 'numFiniteBuckets' + property :offset, as: 'offset' + property :width, as: 'width' + end + end + class ListLogEntriesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -303,9 +370,15 @@ module Google class LogMetric # @private class Representation < Google::Apis::Core::JsonRepresentation + property :bucket_options, as: 'bucketOptions', class: Google::Apis::LoggingV2beta1::BucketOptions, decorator: Google::Apis::LoggingV2beta1::BucketOptions::Representation + property :description, as: 'description' property :filter, as: 'filter' + hash :label_extractors, as: 'labelExtractors' + property :metric_descriptor, as: 'metricDescriptor', class: Google::Apis::LoggingV2beta1::MetricDescriptor, decorator: Google::Apis::LoggingV2beta1::MetricDescriptor::Representation + property :name, as: 'name' + property :value_extractor, as: 'valueExtractor' property :version, as: 'version' end end @@ -324,6 +397,21 @@ module Google end end + class MetricDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation + + property :metric_kind, as: 'metricKind' + property :name, as: 'name' + property :type, as: 'type' + property :unit, as: 'unit' + property :value_type, as: 'valueType' + end + end + class MonitoredResource # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/logging_v2beta1/service.rb b/generated/google/apis/logging_v2beta1/service.rb index ea608133a..5ee2705a4 100644 --- a/generated/google/apis/logging_v2beta1/service.rb +++ b/generated/google/apis/logging_v2beta1/service.rb @@ -163,7 +163,10 @@ module Google execute_or_queue_command(command, &block) end - # Writes log entries to Stackdriver Logging. + # Log entry resourcesWrites log entries to Stackdriver Logging. This API method + # is the only way to send log entries to Stackdriver Logging. This method is + # used, directly or indirectly, by the Stackdriver Logging agent (fluentd) and + # all logging libraries configured to use Stackdriver Logging. # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 4233f3c90..e42c84fe3 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20170819' + REVISION = '20170825' # 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/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 111e18e46..515ac2afb 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -1310,86 +1310,6 @@ module Google end end - # Write a Cloud Audit log - class GoogleIamV1LogConfigCloudAuditOptions - include Google::Apis::Core::Hashable - - # The log_name to populate in the Cloud Audit Record. - # Corresponds to the JSON property `logName` - # @return [String] - attr_accessor :log_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @log_name = args[:log_name] if args.key?(:log_name) - end - end - - # Increment a streamz counter with the specified metric and field names. - # Metric names should start with a '/', generally be lowercase-only, - # and end in "_count". Field names should not contain an initial slash. - # The actual exported metric names will have "/iam/policy" prepended. - # Field names correspond to IAM request parameters and field values are - # their respective values. - # At present the only supported field names are - # - "iam_principal", corresponding to IAMContext.principal; - # - "" (empty string), resulting in one aggretated counter with no field. - # Examples: - # counter ` metric: "/debug_access_count" field: "iam_principal" ` - # ==> increment counter /iam/policy/backend_debug_access_count - # `iam_principal=[value of IAMContext.principal]` - # At this time we do not support: - # * multiple field names (though this may be supported in the future) - # * decrementing the counter - # * incrementing it by anything other than 1 - class GoogleIamV1LogConfigCounterOptions - include Google::Apis::Core::Hashable - - # The field value to attribute. - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @field = args[:field] if args.key?(:field) - @metric = args[:metric] if args.key?(:metric) - end - end - - # Write a Data Access (Gin) log - class GoogleIamV1LogConfigDataAccessOptions - include Google::Apis::Core::Hashable - - # Whether Gin logging should happen in a fail-closed manner at the caller. - # This is relevant only in the LocalIAM implementation, for now. - # Corresponds to the JSON property `logMode` - # @return [String] - attr_accessor :log_mode - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @log_mode = args[:log_mode] if args.key?(:log_mode) - end - end - # Specifies the audit configuration for a service. # The configuration determines which permission types are logged, and what # identities, if any, are exempted from logging. @@ -1562,103 +1482,6 @@ module Google end end - # A condition to be met. - class GoogleIamV1Condition - include Google::Apis::Core::Hashable - - # Trusted attributes supplied by the IAM system. - # Corresponds to the JSON property `iam` - # @return [String] - attr_accessor :iam - - # An operator to apply the subject with. - # Corresponds to the JSON property `op` - # @return [String] - attr_accessor :op - - # Trusted attributes discharged by the service. - # Corresponds to the JSON property `svc` - # @return [String] - attr_accessor :svc - - # Trusted attributes supplied by any service that owns resources and uses - # the IAM system for access control. - # Corresponds to the JSON property `sys` - # @return [String] - attr_accessor :sys - - # DEPRECATED. Use 'values' instead. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The objects of the condition. This is mutually exclusive with 'value'. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @iam = args[:iam] if args.key?(:iam) - @op = args[:op] if args.key?(:op) - @svc = args[:svc] if args.key?(:svc) - @sys = args[:sys] if args.key?(:sys) - @value = args[:value] if args.key?(:value) - @values = args[:values] if args.key?(:values) - end - end - - # Specifies what kind of log the caller must write - class GoogleIamV1LogConfig - include Google::Apis::Core::Hashable - - # Write a Cloud Audit log - # Corresponds to the JSON property `cloudAudit` - # @return [Google::Apis::MlV1::GoogleIamV1LogConfigCloudAuditOptions] - attr_accessor :cloud_audit - - # Increment a streamz counter with the specified metric and field names. - # Metric names should start with a '/', generally be lowercase-only, - # and end in "_count". Field names should not contain an initial slash. - # The actual exported metric names will have "/iam/policy" prepended. - # Field names correspond to IAM request parameters and field values are - # their respective values. - # At present the only supported field names are - # - "iam_principal", corresponding to IAMContext.principal; - # - "" (empty string), resulting in one aggretated counter with no field. - # Examples: - # counter ` metric: "/debug_access_count" field: "iam_principal" ` - # ==> increment counter /iam/policy/backend_debug_access_count - # `iam_principal=[value of IAMContext.principal]` - # At this time we do not support: - # * multiple field names (though this may be supported in the future) - # * decrementing the counter - # * incrementing it by anything other than 1 - # Corresponds to the JSON property `counter` - # @return [Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions] - attr_accessor :counter - - # Write a Data Access (Gin) log - # Corresponds to the JSON property `dataAccess` - # @return [Google::Apis::MlV1::GoogleIamV1LogConfigDataAccessOptions] - attr_accessor :data_access - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit) - @counter = args[:counter] if args.key?(:counter) - @data_access = args[:data_access] if args.key?(:data_access) - end - end - # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of @@ -1719,19 +1542,6 @@ module Google attr_accessor :iam_owned alias_method :iam_owned?, :iam_owned - # If more than one rule is specified, the rules are applied in the following - # manner: - # - All matching LOG rules are always applied. - # - If any DENY/DENY_WITH_LOG rule matches, permission is denied. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - # granted. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if no rule applies, permission is denied. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - # Version of the `Policy`. The default version is 0. # Corresponds to the JSON property `version` # @return [Fixnum] @@ -1747,73 +1557,10 @@ module Google @bindings = args[:bindings] if args.key?(:bindings) @etag = args[:etag] if args.key?(:etag) @iam_owned = args[:iam_owned] if args.key?(:iam_owned) - @rules = args[:rules] if args.key?(:rules) @version = args[:version] if args.key?(:version) end end - # A rule to be applied in a Policy. - class GoogleIamV1Rule - include Google::Apis::Core::Hashable - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - # Additional restrictions that must be met - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # If one or more 'in' clauses are specified, the rule matches if - # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. - # Corresponds to the JSON property `in` - # @return [Array] - attr_accessor :in - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfig` - # @return [Array] - attr_accessor :log_config - - # If one or more 'not_in' clauses are specified, the rule matches - # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. - # The format for in and not_in entries is the same as for members in a - # Binding (see google/iam/v1/policy.proto). - # Corresponds to the JSON property `notIn` - # @return [Array] - attr_accessor :not_in - - # A permission is a string of form '..' - # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, - # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @action = args[:action] if args.key?(:action) - @conditions = args[:conditions] if args.key?(:conditions) - @description = args[:description] if args.key?(:description) - @in = args[:in] if args.key?(:in) - @log_config = args[:log_config] if args.key?(:log_config) - @not_in = args[:not_in] if args.key?(:not_in) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - # Request message for `SetIamPolicy` method. class GoogleIamV1SetIamPolicyRequest include Google::Apis::Core::Hashable @@ -1941,7 +1688,7 @@ module Google include Google::Apis::Core::Hashable # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] diff --git a/generated/google/apis/ml_v1/representations.rb b/generated/google/apis/ml_v1/representations.rb index a775a02ee..e02ce1135 100644 --- a/generated/google/apis/ml_v1/representations.rb +++ b/generated/google/apis/ml_v1/representations.rb @@ -154,24 +154,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleIamV1LogConfigCloudAuditOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleIamV1LogConfigCounterOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleIamV1LogConfigDataAccessOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleIamV1AuditConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -190,30 +172,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleIamV1Condition - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleIamV1LogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleIamV1Policy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleIamV1Rule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleIamV1SetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -507,28 +471,6 @@ module Google end end - class GoogleIamV1LogConfigCloudAuditOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :log_name, as: 'logName' - end - end - - class GoogleIamV1LogConfigCounterOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :field, as: 'field' - property :metric, as: 'metric' - end - end - - class GoogleIamV1LogConfigDataAccessOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :log_mode, as: 'logMode' - end - end - class GoogleIamV1AuditConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -557,30 +499,6 @@ module Google end end - class GoogleIamV1Condition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :iam, as: 'iam' - property :op, as: 'op' - property :svc, as: 'svc' - property :sys, as: 'sys' - property :value, as: 'value' - collection :values, as: 'values' - end - end - - class GoogleIamV1LogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cloud_audit, as: 'cloudAudit', class: Google::Apis::MlV1::GoogleIamV1LogConfigCloudAuditOptions, decorator: Google::Apis::MlV1::GoogleIamV1LogConfigCloudAuditOptions::Representation - - property :counter, as: 'counter', class: Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions, decorator: Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions::Representation - - property :data_access, as: 'dataAccess', class: Google::Apis::MlV1::GoogleIamV1LogConfigDataAccessOptions, decorator: Google::Apis::MlV1::GoogleIamV1LogConfigDataAccessOptions::Representation - - end - end - class GoogleIamV1Policy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -590,27 +508,10 @@ module Google property :etag, :base64 => true, as: 'etag' property :iam_owned, as: 'iamOwned' - collection :rules, as: 'rules', class: Google::Apis::MlV1::GoogleIamV1Rule, decorator: Google::Apis::MlV1::GoogleIamV1Rule::Representation - property :version, as: 'version' end end - class GoogleIamV1Rule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :action, as: 'action' - collection :conditions, as: 'conditions', class: Google::Apis::MlV1::GoogleIamV1Condition, decorator: Google::Apis::MlV1::GoogleIamV1Condition::Representation - - property :description, as: 'description' - collection :in, as: 'in' - collection :log_config, as: 'logConfig', class: Google::Apis::MlV1::GoogleIamV1LogConfig, decorator: Google::Apis::MlV1::GoogleIamV1LogConfig::Representation - - collection :not_in, as: 'notIn' - collection :permissions, as: 'permissions' - end - end - class GoogleIamV1SetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/runtimeconfig_v1.rb b/generated/google/apis/runtimeconfig_v1.rb index c2c4420f4..8811bd073 100644 --- a/generated/google/apis/runtimeconfig_v1.rb +++ b/generated/google/apis/runtimeconfig_v1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1 VERSION = 'V1' - REVISION = '20170808' + REVISION = '20170829' # 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/runtimeconfig_v1/classes.rb b/generated/google/apis/runtimeconfig_v1/classes.rb index 7f66bd597..4f6c8a712 100644 --- a/generated/google/apis/runtimeconfig_v1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1/classes.rb @@ -85,7 +85,7 @@ module Google include Google::Apis::Core::Hashable # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index af698c450..0436b3fe3 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20170808' + REVISION = '20170829' # 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/runtimeconfig_v1beta1/classes.rb b/generated/google/apis/runtimeconfig_v1beta1/classes.rb index 2ffe992f6..0bb55f119 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb @@ -245,7 +245,7 @@ module Google include Google::Apis::Core::Hashable # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] diff --git a/generated/google/apis/runtimeconfig_v1beta1/service.rb b/generated/google/apis/runtimeconfig_v1beta1/service.rb index 62b8badfc..d508829d6 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/service.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/service.rb @@ -419,7 +419,7 @@ module Google # documentation. # @param [String] parent # The path to the RutimeConfig resource that this variable should belong to. - # The configuration must exist beforehand; the path must by in the format: + # The configuration must exist beforehand; the path must be in the format: # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` # @param [Google::Apis::RuntimeconfigV1beta1::Variable] variable_object # @param [String] request_id @@ -537,7 +537,7 @@ module Google # will be returned. # @param [String] parent # The path to the RuntimeConfig resource for which you want to list variables. - # The configuration must exist beforehand; the path must by in the format: + # The configuration must exist beforehand; the path must be in the format: # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` # @param [String] filter # Filters variables by matching the specified filter. For example: @@ -707,7 +707,7 @@ module Google # still exist and must be deleted prior to subsequent creation attempts. # @param [String] parent # The path to the configuration that will own the waiter. - # The configuration must exist beforehand; the path must by in the format: + # The configuration must exist beforehand; the path must be in the format: # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`. # @param [Google::Apis::RuntimeconfigV1beta1::Waiter] waiter_object # @param [String] request_id @@ -815,7 +815,7 @@ module Google # List waiters within the given configuration. # @param [String] parent # The path to the configuration for which you want to get a list of waiters. - # The configuration must exist beforehand; the path must by in the format: + # The configuration must exist beforehand; the path must be in the format: # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` # @param [Fixnum] page_size # Specifies the number of results to return per page. If there are fewer diff --git a/generated/google/apis/speech_v1.rb b/generated/google/apis/speech_v1.rb index eda2ea9f4..d90bbe2a2 100644 --- a/generated/google/apis/speech_v1.rb +++ b/generated/google/apis/speech_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech/ module SpeechV1 VERSION = 'V1' - REVISION = '20170807' + REVISION = '20170829' # 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/speech_v1/classes.rb b/generated/google/apis/speech_v1/classes.rb index a63d7f8c1..0d97f8551 100644 --- a/generated/google/apis/speech_v1/classes.rb +++ b/generated/google/apis/speech_v1/classes.rb @@ -115,7 +115,7 @@ module Google include Google::Apis::Core::Hashable # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] diff --git a/generated/google/apis/speech_v1beta1.rb b/generated/google/apis/speech_v1beta1.rb index dc0cc9819..ef062dbec 100644 --- a/generated/google/apis/speech_v1beta1.rb +++ b/generated/google/apis/speech_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech/ module SpeechV1beta1 VERSION = 'V1beta1' - REVISION = '20170807' + REVISION = '20170829' # 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/speech_v1beta1/classes.rb b/generated/google/apis/speech_v1beta1/classes.rb index 90ea53266..2947e31a8 100644 --- a/generated/google/apis/speech_v1beta1/classes.rb +++ b/generated/google/apis/speech_v1beta1/classes.rb @@ -101,7 +101,7 @@ module Google include Google::Apis::Core::Hashable # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] diff --git a/generated/google/apis/vault_v1.rb b/generated/google/apis/vault_v1.rb index 86bd93257..d2734e02c 100644 --- a/generated/google/apis/vault_v1.rb +++ b/generated/google/apis/vault_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://apps.google.com/products/vault/ module VaultV1 VERSION = 'V1' - REVISION = '20170720' + REVISION = '20170828' end end end diff --git a/generated/google/apis/vault_v1/classes.rb b/generated/google/apis/vault_v1/classes.rb index e10081274..68af8e7a6 100644 --- a/generated/google/apis/vault_v1/classes.rb +++ b/generated/google/apis/vault_v1/classes.rb @@ -149,8 +149,8 @@ module Google class HeldAccount include Google::Apis::Core::Hashable - # The account's ID as provided by the Admin SDK. + # The account's ID as provided by the + # Admin SDK. # Corresponds to the JSON property `accountId` # @return [String] attr_accessor :account_id diff --git a/generated/google/apis/vault_v1/service.rb b/generated/google/apis/vault_v1/service.rb index 1e7dbf695..94eee23d2 100644 --- a/generated/google/apis/vault_v1/service.rb +++ b/generated/google/apis/vault_v1/service.rb @@ -630,8 +630,8 @@ module Google end # Lists HeldAccounts for a hold. This will only list individually specified - # held accounts. If the hold is on an OU, then use the Admin SDK + # held accounts. If the hold is on an OU, then use + # Admin SDK # to enumerate its members. # @param [String] matter_id # The matter ID.