diff --git a/api_names_out.yaml b/api_names_out.yaml index a6b904f75..5027f30f8 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -9419,6 +9419,12 @@ "/bigquerydatatransfer:v1/ScheduleTransferRunsResponse/runs/run": run "/bigquerydatatransfer:v1/SetEnabledRequest": set_enabled_request "/bigquerydatatransfer:v1/SetEnabledRequest/enabled": enabled +"/bigquerydatatransfer:v1/Status": status +"/bigquerydatatransfer:v1/Status/code": code +"/bigquerydatatransfer:v1/Status/details": details +"/bigquerydatatransfer:v1/Status/details/detail": detail +"/bigquerydatatransfer:v1/Status/details/detail/detail": detail +"/bigquerydatatransfer:v1/Status/message": message "/bigquerydatatransfer:v1/TransferConfig": transfer_config "/bigquerydatatransfer:v1/TransferConfig/dataRefreshWindowDays": data_refresh_window_days "/bigquerydatatransfer:v1/TransferConfig/dataSourceId": data_source_id @@ -9444,6 +9450,7 @@ "/bigquerydatatransfer:v1/TransferRun/datasetRegion": dataset_region "/bigquerydatatransfer:v1/TransferRun/destinationDatasetId": destination_dataset_id "/bigquerydatatransfer:v1/TransferRun/endTime": end_time +"/bigquerydatatransfer:v1/TransferRun/errorStatus": error_status "/bigquerydatatransfer:v1/TransferRun/name": name "/bigquerydatatransfer:v1/TransferRun/params": params "/bigquerydatatransfer:v1/TransferRun/params/param": param @@ -61561,6 +61568,11 @@ "/vision:v1/key": key "/vision:v1/quotaUser": quota_user "/vision:v1/vision.images.annotate": annotate_image +"/vision:v1p1beta1/Color": color +"/vision:v1p1beta1/Color/alpha": alpha +"/vision:v1p1beta1/Color/blue": blue +"/vision:v1p1beta1/Color/green": green +"/vision:v1p1beta1/Color/red": red "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest": google_cloud_vision_v1p1beta1_annotate_image_request "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest/features": features "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest/features/feature": feature @@ -61773,6 +61785,15 @@ "/vision:v1p1beta1/GoogleTypeLatLng": google_type_lat_lng "/vision:v1p1beta1/GoogleTypeLatLng/latitude": latitude "/vision:v1p1beta1/GoogleTypeLatLng/longitude": longitude +"/vision:v1p1beta1/LatLng": lat_lng +"/vision:v1p1beta1/LatLng/latitude": latitude +"/vision:v1p1beta1/LatLng/longitude": longitude +"/vision:v1p1beta1/Status": status +"/vision:v1p1beta1/Status/code": code +"/vision:v1p1beta1/Status/details": details +"/vision:v1p1beta1/Status/details/detail": detail +"/vision:v1p1beta1/Status/details/detail/detail": detail +"/vision:v1p1beta1/Status/message": message "/vision:v1p1beta1/fields": fields "/vision:v1p1beta1/key": key "/vision:v1p1beta1/quotaUser": quota_user diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index 1a526070a..ce6a15848 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20171009' + REVISION = '20171030' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/bigquerydatatransfer_v1.rb b/generated/google/apis/bigquerydatatransfer_v1.rb index e3eedf5a8..0f39ec84c 100644 --- a/generated/google/apis/bigquerydatatransfer_v1.rb +++ b/generated/google/apis/bigquerydatatransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigquerydatatransferV1 VERSION = 'V1' - REVISION = '20171030' + REVISION = '20171106' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquerydatatransfer_v1/classes.rb b/generated/google/apis/bigquerydatatransfer_v1/classes.rb index 0ca534b74..cbfc9d725 100644 --- a/generated/google/apis/bigquerydatatransfer_v1/classes.rb +++ b/generated/google/apis/bigquerydatatransfer_v1/classes.rb @@ -560,6 +560,78 @@ module Google 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 + # Represents a data transfer configuration. A transfer configuration # contains all metadata needed to perform a data transfer. For example, # `destination_dataset_id` specifies where data should be stored. @@ -734,6 +806,49 @@ module Google # @return [String] attr_accessor :end_time + # 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 `errorStatus` + # @return [Google::Apis::BigquerydatatransferV1::Status] + attr_accessor :error_status + # The resource name of the transfer run. # Transfer run names have the form # `projects/`project_id`/locations/`location`/transferConfigs/`config_id`/runs/` @@ -801,6 +916,7 @@ module Google @data_source_id = args[:data_source_id] if args.key?(:data_source_id) @destination_dataset_id = args[:destination_dataset_id] if args.key?(:destination_dataset_id) @end_time = args[:end_time] if args.key?(:end_time) + @error_status = args[:error_status] if args.key?(:error_status) @name = args[:name] if args.key?(:name) @params = args[:params] if args.key?(:params) @run_time = args[:run_time] if args.key?(:run_time) diff --git a/generated/google/apis/bigquerydatatransfer_v1/representations.rb b/generated/google/apis/bigquerydatatransfer_v1/representations.rb index c9889b0c9..e72e9c59e 100644 --- a/generated/google/apis/bigquerydatatransfer_v1/representations.rb +++ b/generated/google/apis/bigquerydatatransfer_v1/representations.rb @@ -100,6 +100,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TransferConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -255,6 +261,15 @@ module Google 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 + class TransferConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -289,6 +304,8 @@ module Google property :data_source_id, as: 'dataSourceId' property :destination_dataset_id, as: 'destinationDatasetId' property :end_time, as: 'endTime' + property :error_status, as: 'errorStatus', class: Google::Apis::BigquerydatatransferV1::Status, decorator: Google::Apis::BigquerydatatransferV1::Status::Representation + property :name, as: 'name' hash :params, as: 'params' property :run_time, as: 'runTime' diff --git a/generated/google/apis/firestore_v1beta1/classes.rb b/generated/google/apis/firestore_v1beta1/classes.rb index 37c3c416f..3b61ca10f 100644 --- a/generated/google/apis/firestore_v1beta1/classes.rb +++ b/generated/google/apis/firestore_v1beta1/classes.rb @@ -522,7 +522,6 @@ module Google # The list of transformations to apply to the fields of the document, in # order. - # This must not be empty. # Corresponds to the JSON property `fieldTransforms` # @return [Array] attr_accessor :field_transforms diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb index 9c9124f5d..5326c29a1 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run module ScriptV1 VERSION = 'V1' - REVISION = '20171024' + REVISION = '20171102' # Read, send, delete, and manage your email AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/script_v1/classes.rb b/generated/google/apis/script_v1/classes.rb index 047c1c670..853724968 100644 --- a/generated/google/apis/script_v1/classes.rb +++ b/generated/google/apis/script_v1/classes.rb @@ -151,9 +151,8 @@ module Google # using run or runAsync. The execution response does not arrive until the # function finishes executing. The maximum execution runtime is listed in the [ # Apps Script quotas guide](/apps-script/guides/services/quotas# - # current_limitations). - #

After the execution is started, it can have one of four outcomes:

- #