Autogenerated update (2019-06-06)
Update: - androidenterprise_v1 - androidpublisher_v3 - bigquery_v2 - cloudprivatecatalogproducer_v1beta1 - cloudresourcemanager_v1 - cloudresourcemanager_v2 - cloudresourcemanager_v2beta1 - container_v1 - containeranalysis_v1alpha1 - containeranalysis_v1beta1 - content_v2 - content_v2_1 - dlp_v2 - fcm_v1 - file_v1 - file_v1beta1 - gmail_v1 - healthcare_v1alpha2 - healthcare_v1beta1
This commit is contained in:
parent
827d93636f
commit
5b4eab2abf
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android/work/play/emm-api
|
# @see https://developers.google.com/android/work/play/emm-api
|
||||||
module AndroidenterpriseV1
|
module AndroidenterpriseV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190401'
|
REVISION = '20190530'
|
||||||
|
|
||||||
# Manage corporate Android devices
|
# Manage corporate Android devices
|
||||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||||
|
|
|
@ -402,6 +402,31 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of states set by the app.
|
||||||
|
class AppState
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of keyed app states. This field will always be present.
|
||||||
|
# Corresponds to the JSON property `keyedAppState`
|
||||||
|
# @return [Array<Google::Apis::AndroidenterpriseV1::KeyedAppState>]
|
||||||
|
attr_accessor :keyed_app_state
|
||||||
|
|
||||||
|
# The package name of the app. This field will always be present.
|
||||||
|
# Corresponds to the JSON property `packageName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :package_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@keyed_app_state = args[:keyed_app_state] if args.key?(:keyed_app_state)
|
||||||
|
@package_name = args[:package_name] if args.key?(:package_name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# An event generated when a new version of an app is uploaded to Google Play.
|
# An event generated when a new version of an app is uploaded to Google Play.
|
||||||
# Notifications are sent for new public versions only: alpha, beta, or canary
|
# Notifications are sent for new public versions only: alpha, beta, or canary
|
||||||
# versions do not generate this event. To fetch up-to-date version history for
|
# versions do not generate this event. To fetch up-to-date version history for
|
||||||
|
@ -675,6 +700,12 @@ module Google
|
||||||
# @return [Google::Apis::AndroidenterpriseV1::Policy]
|
# @return [Google::Apis::AndroidenterpriseV1::Policy]
|
||||||
attr_accessor :policy
|
attr_accessor :policy
|
||||||
|
|
||||||
|
# Device report updated with the latest app states for managed apps on the
|
||||||
|
# device.
|
||||||
|
# Corresponds to the JSON property `report`
|
||||||
|
# @return [Google::Apis::AndroidenterpriseV1::DeviceReport]
|
||||||
|
attr_accessor :report
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -685,6 +716,67 @@ module Google
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@management_type = args[:management_type] if args.key?(:management_type)
|
@management_type = args[:management_type] if args.key?(:management_type)
|
||||||
@policy = args[:policy] if args.key?(:policy)
|
@policy = args[:policy] if args.key?(:policy)
|
||||||
|
@report = args[:report] if args.key?(:report)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Device report updated with the latest app states for managed apps on the
|
||||||
|
# device.
|
||||||
|
class DeviceReport
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of app states set by managed apps on the device. App states are defined
|
||||||
|
# by the app's developers. This field will always be present.
|
||||||
|
# Corresponds to the JSON property `appState`
|
||||||
|
# @return [Array<Google::Apis::AndroidenterpriseV1::AppState>]
|
||||||
|
attr_accessor :app_state
|
||||||
|
|
||||||
|
# The timestamp of the last report update in milliseconds since epoch. This
|
||||||
|
# field will always be present.
|
||||||
|
# Corresponds to the JSON property `lastUpdatedTimestampMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :last_updated_timestamp_millis
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@app_state = args[:app_state] if args.key?(:app_state)
|
||||||
|
@last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# An event generated when an updated device report is available.
|
||||||
|
class DeviceReportUpdateEvent
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The Android ID of the device. This field will always be present.
|
||||||
|
# Corresponds to the JSON property `deviceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :device_id
|
||||||
|
|
||||||
|
# Device report updated with the latest app states for managed apps on the
|
||||||
|
# device.
|
||||||
|
# Corresponds to the JSON property `report`
|
||||||
|
# @return [Google::Apis::AndroidenterpriseV1::DeviceReport]
|
||||||
|
attr_accessor :report
|
||||||
|
|
||||||
|
# The ID of the user. This field will always be present.
|
||||||
|
# Corresponds to the JSON property `userId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :user_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
|
@report = args[:report] if args.key?(:report)
|
||||||
|
@user_id = args[:user_id] if args.key?(:user_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1234,6 +1326,57 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Represents a keyed app state containing a key, timestamp, severity level,
|
||||||
|
# optional description, and optional data.
|
||||||
|
class KeyedAppState
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Additional field intended for machine-readable data. For example, a number or
|
||||||
|
# JSON object. To prevent XSS, we recommend removing any HTML from the data
|
||||||
|
# before displaying it.
|
||||||
|
# Corresponds to the JSON property `data`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data
|
||||||
|
|
||||||
|
# Key indicating what the app is providing a state for. The content of the key
|
||||||
|
# is set by the app's developer. To prevent XSS, we recommend removing any HTML
|
||||||
|
# from the key before displaying it. This field will always be present.
|
||||||
|
# Corresponds to the JSON property `key`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
# Free-form, human-readable message describing the app state. For example, an
|
||||||
|
# error message. To prevent XSS, we recommend removing any HTML from the message
|
||||||
|
# before displaying it.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
# Severity of the app state. This field will always be present.
|
||||||
|
# Corresponds to the JSON property `severity`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :severity
|
||||||
|
|
||||||
|
# Timestamp of when the app set the state in milliseconds since epoch. This
|
||||||
|
# field will always be present.
|
||||||
|
# Corresponds to the JSON property `stateTimestampMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :state_timestamp_millis
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@data = args[:data] if args.key?(:data)
|
||||||
|
@key = args[:key] if args.key?(:key)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
@severity = args[:severity] if args.key?(:severity)
|
||||||
|
@state_timestamp_millis = args[:state_timestamp_millis] if args.key?(:state_timestamp_millis)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# A localized string with its locale.
|
# A localized string with its locale.
|
||||||
class LocalizedText
|
class LocalizedText
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1635,6 +1778,11 @@ module Google
|
||||||
# @return [Google::Apis::AndroidenterpriseV1::AppUpdateEvent]
|
# @return [Google::Apis::AndroidenterpriseV1::AppUpdateEvent]
|
||||||
attr_accessor :app_update_event
|
attr_accessor :app_update_event
|
||||||
|
|
||||||
|
# An event generated when an updated device report is available.
|
||||||
|
# Corresponds to the JSON property `deviceReportUpdateEvent`
|
||||||
|
# @return [Google::Apis::AndroidenterpriseV1::DeviceReportUpdateEvent]
|
||||||
|
attr_accessor :device_report_update_event
|
||||||
|
|
||||||
# The ID of the enterprise for which the notification is sent. This will always
|
# The ID of the enterprise for which the notification is sent. This will always
|
||||||
# be present.
|
# be present.
|
||||||
# Corresponds to the JSON property `enterpriseId`
|
# Corresponds to the JSON property `enterpriseId`
|
||||||
|
@ -1685,6 +1833,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@app_restrictions_schema_change_event = args[:app_restrictions_schema_change_event] if args.key?(:app_restrictions_schema_change_event)
|
@app_restrictions_schema_change_event = args[:app_restrictions_schema_change_event] if args.key?(:app_restrictions_schema_change_event)
|
||||||
@app_update_event = args[:app_update_event] if args.key?(:app_update_event)
|
@app_update_event = args[:app_update_event] if args.key?(:app_update_event)
|
||||||
|
@device_report_update_event = args[:device_report_update_event] if args.key?(:device_report_update_event)
|
||||||
@enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
|
@enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
|
||||||
@install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
|
@install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
|
||||||
@new_device_event = args[:new_device_event] if args.key?(:new_device_event)
|
@new_device_event = args[:new_device_event] if args.key?(:new_device_event)
|
||||||
|
@ -1820,6 +1969,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :auto_update_policy
|
attr_accessor :auto_update_policy
|
||||||
|
|
||||||
|
# Whether the device reports app states to the EMM. The default value is "
|
||||||
|
# deviceReportDisabled".
|
||||||
|
# Corresponds to the JSON property `deviceReportPolicy`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :device_report_policy
|
||||||
|
|
||||||
# Maintenance window for managed Google Play Accounts. This allows Play store to
|
# Maintenance window for managed Google Play Accounts. This allows Play store to
|
||||||
# update the apps on the foreground in the designated window.
|
# update the apps on the foreground in the designated window.
|
||||||
# Corresponds to the JSON property `maintenanceWindow`
|
# Corresponds to the JSON property `maintenanceWindow`
|
||||||
|
@ -1849,6 +2004,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@auto_update_policy = args[:auto_update_policy] if args.key?(:auto_update_policy)
|
@auto_update_policy = args[:auto_update_policy] if args.key?(:auto_update_policy)
|
||||||
|
@device_report_policy = args[:device_report_policy] if args.key?(:device_report_policy)
|
||||||
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
||||||
@product_availability_policy = args[:product_availability_policy] if args.key?(:product_availability_policy)
|
@product_availability_policy = args[:product_availability_policy] if args.key?(:product_availability_policy)
|
||||||
@product_policy = args[:product_policy] if args.key?(:product_policy)
|
@product_policy = args[:product_policy] if args.key?(:product_policy)
|
||||||
|
|
|
@ -94,6 +94,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AppState
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class AppUpdateEvent
|
class AppUpdateEvent
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -142,6 +148,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DeviceReport
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeviceReportUpdateEvent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class DeviceState
|
class DeviceState
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -226,6 +244,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class KeyedAppState
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class LocalizedText
|
class LocalizedText
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -615,6 +639,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AppState
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :keyed_app_state, as: 'keyedAppState', class: Google::Apis::AndroidenterpriseV1::KeyedAppState, decorator: Google::Apis::AndroidenterpriseV1::KeyedAppState::Representation
|
||||||
|
|
||||||
|
property :package_name, as: 'packageName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class AppUpdateEvent
|
class AppUpdateEvent
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -687,6 +720,27 @@ module Google
|
||||||
property :management_type, as: 'managementType'
|
property :management_type, as: 'managementType'
|
||||||
property :policy, as: 'policy', class: Google::Apis::AndroidenterpriseV1::Policy, decorator: Google::Apis::AndroidenterpriseV1::Policy::Representation
|
property :policy, as: 'policy', class: Google::Apis::AndroidenterpriseV1::Policy, decorator: Google::Apis::AndroidenterpriseV1::Policy::Representation
|
||||||
|
|
||||||
|
property :report, as: 'report', class: Google::Apis::AndroidenterpriseV1::DeviceReport, decorator: Google::Apis::AndroidenterpriseV1::DeviceReport::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeviceReport
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :app_state, as: 'appState', class: Google::Apis::AndroidenterpriseV1::AppState, decorator: Google::Apis::AndroidenterpriseV1::AppState::Representation
|
||||||
|
|
||||||
|
property :last_updated_timestamp_millis, :numeric_string => true, as: 'lastUpdatedTimestampMillis'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeviceReportUpdateEvent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :device_id, as: 'deviceId'
|
||||||
|
property :report, as: 'report', class: Google::Apis::AndroidenterpriseV1::DeviceReport, decorator: Google::Apis::AndroidenterpriseV1::DeviceReport::Representation
|
||||||
|
|
||||||
|
property :user_id, as: 'userId'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -823,6 +877,17 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class KeyedAppState
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :data, as: 'data'
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :message, as: 'message'
|
||||||
|
property :severity, as: 'severity'
|
||||||
|
property :state_timestamp_millis, :numeric_string => true, as: 'stateTimestampMillis'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class LocalizedText
|
class LocalizedText
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -939,6 +1004,8 @@ module Google
|
||||||
|
|
||||||
property :app_update_event, as: 'appUpdateEvent', class: Google::Apis::AndroidenterpriseV1::AppUpdateEvent, decorator: Google::Apis::AndroidenterpriseV1::AppUpdateEvent::Representation
|
property :app_update_event, as: 'appUpdateEvent', class: Google::Apis::AndroidenterpriseV1::AppUpdateEvent, decorator: Google::Apis::AndroidenterpriseV1::AppUpdateEvent::Representation
|
||||||
|
|
||||||
|
property :device_report_update_event, as: 'deviceReportUpdateEvent', class: Google::Apis::AndroidenterpriseV1::DeviceReportUpdateEvent, decorator: Google::Apis::AndroidenterpriseV1::DeviceReportUpdateEvent::Representation
|
||||||
|
|
||||||
property :enterprise_id, as: 'enterpriseId'
|
property :enterprise_id, as: 'enterpriseId'
|
||||||
property :install_failure_event, as: 'installFailureEvent', class: Google::Apis::AndroidenterpriseV1::InstallFailureEvent, decorator: Google::Apis::AndroidenterpriseV1::InstallFailureEvent::Representation
|
property :install_failure_event, as: 'installFailureEvent', class: Google::Apis::AndroidenterpriseV1::InstallFailureEvent, decorator: Google::Apis::AndroidenterpriseV1::InstallFailureEvent::Representation
|
||||||
|
|
||||||
|
@ -988,6 +1055,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :auto_update_policy, as: 'autoUpdatePolicy'
|
property :auto_update_policy, as: 'autoUpdatePolicy'
|
||||||
|
property :device_report_policy, as: 'deviceReportPolicy'
|
||||||
property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::AndroidenterpriseV1::MaintenanceWindow, decorator: Google::Apis::AndroidenterpriseV1::MaintenanceWindow::Representation
|
property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::AndroidenterpriseV1::MaintenanceWindow, decorator: Google::Apis::AndroidenterpriseV1::MaintenanceWindow::Representation
|
||||||
|
|
||||||
property :product_availability_policy, as: 'productAvailabilityPolicy'
|
property :product_availability_policy, as: 'productAvailabilityPolicy'
|
||||||
|
|
|
@ -51,6 +51,45 @@ module Google
|
||||||
@batch_path = 'batch/androidenterprise/v1'
|
@batch_path = 'batch/androidenterprise/v1'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Uploads a report containing any changes in app states on the device since the
|
||||||
|
# last report was generated. You can call this method up to 3 times every 24
|
||||||
|
# hours for a given device.
|
||||||
|
# @param [String] enterprise_id
|
||||||
|
# The ID of the enterprise.
|
||||||
|
# @param [String] user_id
|
||||||
|
# The ID of the user.
|
||||||
|
# @param [String] device_id
|
||||||
|
# The ID of the device.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @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 force_device_report_upload(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/forceReportUpload', options)
|
||||||
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['deviceId'] = device_id unless device_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Retrieves the details of a device.
|
# Retrieves the details of a device.
|
||||||
# @param [String] enterprise_id
|
# @param [String] enterprise_id
|
||||||
# The ID of the enterprise.
|
# The ID of the enterprise.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV3
|
module AndroidpublisherV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20190508'
|
REVISION = '20190604'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -1482,6 +1482,13 @@ module Google
|
||||||
class SubscriptionPurchase
|
class SubscriptionPurchase
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The acknowledgement state of the subscription product. Possible values are:
|
||||||
|
# - Yet to be acknowledged
|
||||||
|
# - Acknowledged
|
||||||
|
# Corresponds to the JSON property `acknowledgementState`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :acknowledgement_state
|
||||||
|
|
||||||
# Whether the subscription will automatically be renewed when it reaches its
|
# Whether the subscription will automatically be renewed when it reaches its
|
||||||
# current expiry time.
|
# current expiry time.
|
||||||
# Corresponds to the JSON property `autoRenewing`
|
# Corresponds to the JSON property `autoRenewing`
|
||||||
|
@ -1642,6 +1649,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
|
||||||
@auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
|
@auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
|
||||||
@auto_resume_time_millis = args[:auto_resume_time_millis] if args.key?(:auto_resume_time_millis)
|
@auto_resume_time_millis = args[:auto_resume_time_millis] if args.key?(:auto_resume_time_millis)
|
||||||
@cancel_reason = args[:cancel_reason] if args.key?(:cancel_reason)
|
@cancel_reason = args[:cancel_reason] if args.key?(:cancel_reason)
|
||||||
|
|
|
@ -808,6 +808,7 @@ module Google
|
||||||
class SubscriptionPurchase
|
class SubscriptionPurchase
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :acknowledgement_state, as: 'acknowledgementState'
|
||||||
property :auto_renewing, as: 'autoRenewing'
|
property :auto_renewing, as: 'autoRenewing'
|
||||||
property :auto_resume_time_millis, :numeric_string => true, as: 'autoResumeTimeMillis'
|
property :auto_resume_time_millis, :numeric_string => true, as: 'autoResumeTimeMillis'
|
||||||
property :cancel_reason, as: 'cancelReason'
|
property :cancel_reason, as: 'cancelReason'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/bigquery/
|
# @see https://cloud.google.com/bigquery/
|
||||||
module BigqueryV2
|
module BigqueryV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20190510'
|
REVISION = '20190530'
|
||||||
|
|
||||||
# View and manage your data in Google BigQuery
|
# View and manage your data in Google BigQuery
|
||||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
|
|
@ -311,6 +311,16 @@ module Google
|
||||||
# @return [Array<Google::Apis::BigqueryV2::BinaryConfusionMatrix>]
|
# @return [Array<Google::Apis::BigqueryV2::BinaryConfusionMatrix>]
|
||||||
attr_accessor :binary_confusion_matrix_list
|
attr_accessor :binary_confusion_matrix_list
|
||||||
|
|
||||||
|
# Label representing the negative class.
|
||||||
|
# Corresponds to the JSON property `negativeLabel`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :negative_label
|
||||||
|
|
||||||
|
# Label representing the positive class.
|
||||||
|
# Corresponds to the JSON property `positiveLabel`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :positive_label
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -319,6 +329,8 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics)
|
@aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics)
|
||||||
@binary_confusion_matrix_list = args[:binary_confusion_matrix_list] if args.key?(:binary_confusion_matrix_list)
|
@binary_confusion_matrix_list = args[:binary_confusion_matrix_list] if args.key?(:binary_confusion_matrix_list)
|
||||||
|
@negative_label = args[:negative_label] if args.key?(:negative_label)
|
||||||
|
@positive_label = args[:positive_label] if args.key?(:positive_label)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3160,7 +3172,6 @@ module Google
|
||||||
attr_accessor :creation_time
|
attr_accessor :creation_time
|
||||||
|
|
||||||
# [Optional] A user-friendly description of this model.
|
# [Optional] A user-friendly description of this model.
|
||||||
# @mutable bigquery.models.patch
|
|
||||||
# Corresponds to the JSON property `description`
|
# Corresponds to the JSON property `description`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :description
|
attr_accessor :description
|
||||||
|
@ -3175,7 +3186,6 @@ module Google
|
||||||
# will be deleted and their storage reclaimed. The defaultTableExpirationMs
|
# will be deleted and their storage reclaimed. The defaultTableExpirationMs
|
||||||
# property of the encapsulating dataset can be used to set a default
|
# property of the encapsulating dataset can be used to set a default
|
||||||
# expirationTime on newly created models.
|
# expirationTime on newly created models.
|
||||||
# @mutable bigquery.models.patch
|
|
||||||
# Corresponds to the JSON property `expirationTime`
|
# Corresponds to the JSON property `expirationTime`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :expiration_time
|
attr_accessor :expiration_time
|
||||||
|
@ -3186,7 +3196,6 @@ module Google
|
||||||
attr_accessor :feature_columns
|
attr_accessor :feature_columns
|
||||||
|
|
||||||
# [Optional] A descriptive name for this model.
|
# [Optional] A descriptive name for this model.
|
||||||
# @mutable bigquery.models.patch
|
|
||||||
# Corresponds to the JSON property `friendlyName`
|
# Corresponds to the JSON property `friendlyName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :friendly_name
|
attr_accessor :friendly_name
|
||||||
|
@ -3203,7 +3212,6 @@ module Google
|
||||||
# characters, underscores and dashes. International characters are allowed.
|
# characters, underscores and dashes. International characters are allowed.
|
||||||
# Label values are optional. Label keys must start with a letter and each
|
# Label values are optional. Label keys must start with a letter and each
|
||||||
# label in the list must have a different key.
|
# label in the list must have a different key.
|
||||||
# @mutable bigquery.models.patch
|
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
|
|
@ -660,6 +660,8 @@ module Google
|
||||||
|
|
||||||
collection :binary_confusion_matrix_list, as: 'binaryConfusionMatrixList', class: Google::Apis::BigqueryV2::BinaryConfusionMatrix, decorator: Google::Apis::BigqueryV2::BinaryConfusionMatrix::Representation
|
collection :binary_confusion_matrix_list, as: 'binaryConfusionMatrixList', class: Google::Apis::BigqueryV2::BinaryConfusionMatrix, decorator: Google::Apis::BigqueryV2::BinaryConfusionMatrix::Representation
|
||||||
|
|
||||||
|
property :negative_label, as: 'negativeLabel'
|
||||||
|
property :positive_label, as: 'positiveLabel'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/private-catalog/
|
# @see https://cloud.google.com/private-catalog/
|
||||||
module CloudprivatecatalogproducerV1beta1
|
module CloudprivatecatalogproducerV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20190511'
|
REVISION = '20190531'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -988,43 +988,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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`
|
# Corresponds to the JSON property `error`
|
||||||
# @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleRpcStatus]
|
# @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleRpcStatus]
|
||||||
attr_accessor :error
|
attr_accessor :error
|
||||||
|
@ -1091,43 +1058,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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 GoogleRpcStatus
|
class GoogleRpcStatus
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1
|
module CloudresourcemanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190513'
|
REVISION = '20190603'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1033,43 +1033,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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`
|
# Corresponds to the JSON property `error`
|
||||||
# @return [Google::Apis::CloudresourcemanagerV1::Status]
|
# @return [Google::Apis::CloudresourcemanagerV1::Status]
|
||||||
attr_accessor :error
|
attr_accessor :error
|
||||||
|
@ -1560,12 +1527,14 @@ module Google
|
||||||
# the response. Filter rules are case-insensitive.
|
# the response. Filter rules are case-insensitive.
|
||||||
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
||||||
# `domain`, where the domain is a G Suite domain, for example:
|
# `domain`, where the domain is a G Suite domain, for example:
|
||||||
|
# clang-format off
|
||||||
# | Filter | Description |
|
# | Filter | Description |
|
||||||
# |-------------------------------------|----------------------------------|
|
# |-------------------------------------|----------------------------------|
|
||||||
# | owner.directorycustomerid:123456789 | Organizations with `owner.
|
# | owner.directorycustomerid:123456789 | Organizations with `owner.
|
||||||
# directory_customer_id` equal to `123456789`.|
|
# directory_customer_id` equal to `123456789`.|
|
||||||
# | domain:google.com | Organizations corresponding to the
|
# | domain:google.com | Organizations corresponding to the
|
||||||
# domain `google.com`.|
|
# domain `google.com`.|
|
||||||
|
# clang-format on
|
||||||
# This field is optional.
|
# This field is optional.
|
||||||
# Corresponds to the JSON property `filter`
|
# Corresponds to the JSON property `filter`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -1713,43 +1682,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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
|
class Status
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV2
|
module CloudresourcemanagerV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20190515'
|
REVISION = '20190603'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -424,43 +424,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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`
|
# Corresponds to the JSON property `error`
|
||||||
# @return [Google::Apis::CloudresourcemanagerV2::Status]
|
# @return [Google::Apis::CloudresourcemanagerV2::Status]
|
||||||
attr_accessor :error
|
attr_accessor :error
|
||||||
|
@ -771,43 +738,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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
|
class Status
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV2beta1
|
module CloudresourcemanagerV2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20190515'
|
REVISION = '20190603'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -424,43 +424,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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`
|
# Corresponds to the JSON property `error`
|
||||||
# @return [Google::Apis::CloudresourcemanagerV2beta1::Status]
|
# @return [Google::Apis::CloudresourcemanagerV2beta1::Status]
|
||||||
attr_accessor :error
|
attr_accessor :error
|
||||||
|
@ -771,43 +738,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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
|
class Status
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-engine/
|
# @see https://cloud.google.com/container-engine/
|
||||||
module ContainerV1
|
module ContainerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190514'
|
REVISION = '20190527'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1628,6 +1628,12 @@ module Google
|
||||||
# "kube-env"
|
# "kube-env"
|
||||||
# "startup-script"
|
# "startup-script"
|
||||||
# "user-data"
|
# "user-data"
|
||||||
|
# "disable-address-manager"
|
||||||
|
# "windows-startup-script-ps1"
|
||||||
|
# "common-psm1"
|
||||||
|
# "k8s-node-setup-psm1"
|
||||||
|
# "install-ssh-psm1"
|
||||||
|
# "user-profile-psm1"
|
||||||
# Values are free-form strings, and only have meaning as interpreted by
|
# Values are free-form strings, and only have meaning as interpreted by
|
||||||
# the image running in the instance. The only restriction placed on them is
|
# the image running in the instance. The only restriction placed on them is
|
||||||
# that each value's size must be less than or equal to 32 KB.
|
# that each value's size must be less than or equal to 32 KB.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||||
module ContaineranalysisV1alpha1
|
module ContaineranalysisV1alpha1
|
||||||
VERSION = 'V1alpha1'
|
VERSION = 'V1alpha1'
|
||||||
REVISION = '20190524'
|
REVISION = '20190604'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -848,43 +848,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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 `analysisStatusError`
|
# Corresponds to the JSON property `analysisStatusError`
|
||||||
# @return [Google::Apis::ContaineranalysisV1alpha1::Status]
|
# @return [Google::Apis::ContaineranalysisV1alpha1::Status]
|
||||||
attr_accessor :analysis_status_error
|
attr_accessor :analysis_status_error
|
||||||
|
@ -1868,43 +1835,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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`
|
# Corresponds to the JSON property `error`
|
||||||
# @return [Google::Apis::ContaineranalysisV1alpha1::Status]
|
# @return [Google::Apis::ContaineranalysisV1alpha1::Status]
|
||||||
attr_accessor :error
|
attr_accessor :error
|
||||||
|
@ -2450,43 +2384,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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
|
class Status
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||||
module ContaineranalysisV1beta1
|
module ContaineranalysisV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20190524'
|
REVISION = '20190604'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -993,43 +993,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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 `analysisStatusError`
|
# Corresponds to the JSON property `analysisStatusError`
|
||||||
# @return [Google::Apis::ContaineranalysisV1beta1::Status]
|
# @return [Google::Apis::ContaineranalysisV1beta1::Status]
|
||||||
attr_accessor :analysis_status_error
|
attr_accessor :analysis_status_error
|
||||||
|
@ -2696,43 +2663,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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
|
class Status
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/shopping-content
|
# @see https://developers.google.com/shopping-content
|
||||||
module ContentV2
|
module ContentV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20190524'
|
REVISION = '20190531'
|
||||||
|
|
||||||
# Manage your product listings and accounts for Google Shopping
|
# Manage your product listings and accounts for Google Shopping
|
||||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||||
|
|
|
@ -10743,6 +10743,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :content_language
|
attr_accessor :content_language
|
||||||
|
|
||||||
|
# Fees for the item. Optional.
|
||||||
|
# Corresponds to the JSON property `fees`
|
||||||
|
# @return [Array<Google::Apis::ContentV2::OrderLineItemProductFee>]
|
||||||
|
attr_accessor :fees
|
||||||
|
|
||||||
# Global Trade Item Number (GTIN) of the item. Optional.
|
# Global Trade Item Number (GTIN) of the item. Optional.
|
||||||
# Corresponds to the JSON property `gtin`
|
# Corresponds to the JSON property `gtin`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -10799,6 +10804,7 @@ module Google
|
||||||
@channel = args[:channel] if args.key?(:channel)
|
@channel = args[:channel] if args.key?(:channel)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@content_language = args[:content_language] if args.key?(:content_language)
|
@content_language = args[:content_language] if args.key?(:content_language)
|
||||||
|
@fees = args[:fees] if args.key?(:fees)
|
||||||
@gtin = args[:gtin] if args.key?(:gtin)
|
@gtin = args[:gtin] if args.key?(:gtin)
|
||||||
@image_link = args[:image_link] if args.key?(:image_link)
|
@image_link = args[:image_link] if args.key?(:image_link)
|
||||||
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
|
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
|
||||||
|
|
|
@ -4618,6 +4618,8 @@ module Google
|
||||||
property :channel, as: 'channel'
|
property :channel, as: 'channel'
|
||||||
property :condition, as: 'condition'
|
property :condition, as: 'condition'
|
||||||
property :content_language, as: 'contentLanguage'
|
property :content_language, as: 'contentLanguage'
|
||||||
|
collection :fees, as: 'fees', class: Google::Apis::ContentV2::OrderLineItemProductFee, decorator: Google::Apis::ContentV2::OrderLineItemProductFee::Representation
|
||||||
|
|
||||||
property :gtin, as: 'gtin'
|
property :gtin, as: 'gtin'
|
||||||
property :image_link, as: 'imageLink'
|
property :image_link, as: 'imageLink'
|
||||||
property :item_group_id, as: 'itemGroupId'
|
property :item_group_id, as: 'itemGroupId'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/shopping-content
|
# @see https://developers.google.com/shopping-content
|
||||||
module ContentV2_1
|
module ContentV2_1
|
||||||
VERSION = 'V2_1'
|
VERSION = 'V2_1'
|
||||||
REVISION = '20190524'
|
REVISION = '20190531'
|
||||||
|
|
||||||
# Manage your product listings and accounts for Google Shopping
|
# Manage your product listings and accounts for Google Shopping
|
||||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||||
|
|
|
@ -8819,6 +8819,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :content_language
|
attr_accessor :content_language
|
||||||
|
|
||||||
|
# Fees for the item. Optional.
|
||||||
|
# Corresponds to the JSON property `fees`
|
||||||
|
# @return [Array<Google::Apis::ContentV2_1::OrderLineItemProductFee>]
|
||||||
|
attr_accessor :fees
|
||||||
|
|
||||||
# Global Trade Item Number (GTIN) of the item. Optional.
|
# Global Trade Item Number (GTIN) of the item. Optional.
|
||||||
# Corresponds to the JSON property `gtin`
|
# Corresponds to the JSON property `gtin`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -8874,6 +8879,7 @@ module Google
|
||||||
@brand = args[:brand] if args.key?(:brand)
|
@brand = args[:brand] if args.key?(:brand)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@content_language = args[:content_language] if args.key?(:content_language)
|
@content_language = args[:content_language] if args.key?(:content_language)
|
||||||
|
@fees = args[:fees] if args.key?(:fees)
|
||||||
@gtin = args[:gtin] if args.key?(:gtin)
|
@gtin = args[:gtin] if args.key?(:gtin)
|
||||||
@image_link = args[:image_link] if args.key?(:image_link)
|
@image_link = args[:image_link] if args.key?(:image_link)
|
||||||
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
|
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
|
||||||
|
|
|
@ -3854,6 +3854,8 @@ module Google
|
||||||
property :brand, as: 'brand'
|
property :brand, as: 'brand'
|
||||||
property :condition, as: 'condition'
|
property :condition, as: 'condition'
|
||||||
property :content_language, as: 'contentLanguage'
|
property :content_language, as: 'contentLanguage'
|
||||||
|
collection :fees, as: 'fees', class: Google::Apis::ContentV2_1::OrderLineItemProductFee, decorator: Google::Apis::ContentV2_1::OrderLineItemProductFee::Representation
|
||||||
|
|
||||||
property :gtin, as: 'gtin'
|
property :gtin, as: 'gtin'
|
||||||
property :image_link, as: 'imageLink'
|
property :image_link, as: 'imageLink'
|
||||||
property :item_group_id, as: 'itemGroupId'
|
property :item_group_id, as: 'itemGroupId'
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/dlp/docs/
|
# @see https://cloud.google.com/dlp/docs/
|
||||||
module DlpV2
|
module DlpV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20190526'
|
REVISION = '20190604'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -2105,43 +2105,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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 `details`
|
# Corresponds to the JSON property `details`
|
||||||
# @return [Google::Apis::DlpV2::GoogleRpcStatus]
|
# @return [Google::Apis::DlpV2::GoogleRpcStatus]
|
||||||
attr_accessor :details
|
attr_accessor :details
|
||||||
|
@ -5962,43 +5929,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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 GoogleRpcStatus
|
class GoogleRpcStatus
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://firebase.google.com/docs/cloud-messaging
|
# @see https://firebase.google.com/docs/cloud-messaging
|
||||||
module FcmV1
|
module FcmV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190524'
|
REVISION = '20190605'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -40,6 +40,11 @@ module Google
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :data
|
attr_accessor :data
|
||||||
|
|
||||||
|
# Options for features provided by the FCM SDK for Android.
|
||||||
|
# Corresponds to the JSON property `fcmOptions`
|
||||||
|
# @return [Google::Apis::FcmV1::AndroidFcmOptions]
|
||||||
|
attr_accessor :fcm_options
|
||||||
|
|
||||||
# Notification to send to android devices.
|
# Notification to send to android devices.
|
||||||
# Corresponds to the JSON property `notification`
|
# Corresponds to the JSON property `notification`
|
||||||
# @return [Google::Apis::FcmV1::AndroidNotification]
|
# @return [Google::Apis::FcmV1::AndroidNotification]
|
||||||
|
@ -81,6 +86,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@collapse_key = args[:collapse_key] if args.key?(:collapse_key)
|
@collapse_key = args[:collapse_key] if args.key?(:collapse_key)
|
||||||
@data = args[:data] if args.key?(:data)
|
@data = args[:data] if args.key?(:data)
|
||||||
|
@fcm_options = args[:fcm_options] if args.key?(:fcm_options)
|
||||||
@notification = args[:notification] if args.key?(:notification)
|
@notification = args[:notification] if args.key?(:notification)
|
||||||
@priority = args[:priority] if args.key?(:priority)
|
@priority = args[:priority] if args.key?(:priority)
|
||||||
@restricted_package_name = args[:restricted_package_name] if args.key?(:restricted_package_name)
|
@restricted_package_name = args[:restricted_package_name] if args.key?(:restricted_package_name)
|
||||||
|
@ -88,6 +94,25 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Options for features provided by the FCM SDK for Android.
|
||||||
|
class AndroidFcmOptions
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Label that the message's analytics data will be associated with.
|
||||||
|
# Corresponds to the JSON property `analyticsLabel`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :analytics_label
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@analytics_label = args[:analytics_label] if args.key?(:analytics_label)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Notification to send to android devices.
|
# Notification to send to android devices.
|
||||||
class AndroidNotification
|
class AndroidNotification
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -243,12 +268,37 @@ module Google
|
||||||
class ApnsFcmOptions
|
class ApnsFcmOptions
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Label that the message's analytics data will be associated with.
|
||||||
|
# Corresponds to the JSON property `analyticsLabel`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :analytics_label
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@analytics_label = args[:analytics_label] if args.key?(:analytics_label)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Platform independent options for features provided by the FCM SDKs.
|
||||||
|
class FcmOptions
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Label that the message's analytics data will be associated with.
|
||||||
|
# Corresponds to the JSON property `analyticsLabel`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :analytics_label
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@analytics_label = args[:analytics_label] if args.key?(:analytics_label)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -278,6 +328,11 @@ module Google
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :data
|
attr_accessor :data
|
||||||
|
|
||||||
|
# Platform independent options for features provided by the FCM SDKs.
|
||||||
|
# Corresponds to the JSON property `fcmOptions`
|
||||||
|
# @return [Google::Apis::FcmV1::FcmOptions]
|
||||||
|
attr_accessor :fcm_options
|
||||||
|
|
||||||
# Output Only. The identifier of the message sent, in the format of
|
# Output Only. The identifier of the message sent, in the format of
|
||||||
# `projects/*/messages/`message_id``.
|
# `projects/*/messages/`message_id``.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
|
@ -315,6 +370,7 @@ module Google
|
||||||
@apns = args[:apns] if args.key?(:apns)
|
@apns = args[:apns] if args.key?(:apns)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@data = args[:data] if args.key?(:data)
|
@data = args[:data] if args.key?(:data)
|
||||||
|
@fcm_options = args[:fcm_options] if args.key?(:fcm_options)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@notification = args[:notification] if args.key?(:notification)
|
@notification = args[:notification] if args.key?(:notification)
|
||||||
@token = args[:token] if args.key?(:token)
|
@token = args[:token] if args.key?(:token)
|
||||||
|
|
|
@ -28,6 +28,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AndroidFcmOptions
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class AndroidNotification
|
class AndroidNotification
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -46,6 +52,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class FcmOptions
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Message
|
class Message
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -81,6 +93,8 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :collapse_key, as: 'collapseKey'
|
property :collapse_key, as: 'collapseKey'
|
||||||
hash :data, as: 'data'
|
hash :data, as: 'data'
|
||||||
|
property :fcm_options, as: 'fcmOptions', class: Google::Apis::FcmV1::AndroidFcmOptions, decorator: Google::Apis::FcmV1::AndroidFcmOptions::Representation
|
||||||
|
|
||||||
property :notification, as: 'notification', class: Google::Apis::FcmV1::AndroidNotification, decorator: Google::Apis::FcmV1::AndroidNotification::Representation
|
property :notification, as: 'notification', class: Google::Apis::FcmV1::AndroidNotification, decorator: Google::Apis::FcmV1::AndroidNotification::Representation
|
||||||
|
|
||||||
property :priority, as: 'priority'
|
property :priority, as: 'priority'
|
||||||
|
@ -89,6 +103,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AndroidFcmOptions
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :analytics_label, as: 'analyticsLabel'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class AndroidNotification
|
class AndroidNotification
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -120,6 +141,14 @@ module Google
|
||||||
class ApnsFcmOptions
|
class ApnsFcmOptions
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :analytics_label, as: 'analyticsLabel'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FcmOptions
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :analytics_label, as: 'analyticsLabel'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -132,6 +161,8 @@ module Google
|
||||||
|
|
||||||
property :condition, as: 'condition'
|
property :condition, as: 'condition'
|
||||||
hash :data, as: 'data'
|
hash :data, as: 'data'
|
||||||
|
property :fcm_options, as: 'fcmOptions', class: Google::Apis::FcmV1::FcmOptions, decorator: Google::Apis::FcmV1::FcmOptions::Representation
|
||||||
|
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :notification, as: 'notification', class: Google::Apis::FcmV1::Notification, decorator: Google::Apis::FcmV1::Notification::Representation
|
property :notification, as: 'notification', class: Google::Apis::FcmV1::Notification, decorator: Google::Apis::FcmV1::Notification::Representation
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/filestore/
|
# @see https://cloud.google.com/filestore/
|
||||||
module FileV1
|
module FileV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190516'
|
REVISION = '20190605'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -426,7 +426,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A temporal SLO exclusion specification.
|
# SloExclusion represents an excusion in SLI calculation applies to all SLOs.
|
||||||
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
|
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -454,12 +454,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :reason
|
attr_accessor :reason
|
||||||
|
|
||||||
# Name of an SLI/SLO that this exclusion applies to. Can be left empty,
|
# Name of an SLI that this exclusion applies to. Can be left empty,
|
||||||
# signaling that the instance should be excluded from all SLI/SLOs defined
|
# signaling that the instance should be excluded from all SLIs defined
|
||||||
# in the service SLO configuration.
|
# in the service SLO configuration.
|
||||||
# Corresponds to the JSON property `sloName`
|
# Corresponds to the JSON property `sliName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :slo_name
|
attr_accessor :sli_name
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -470,7 +470,7 @@ module Google
|
||||||
@exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
|
@exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
|
||||||
@exclusion_start_time = args[:exclusion_start_time] if args.key?(:exclusion_start_time)
|
@exclusion_start_time = args[:exclusion_start_time] if args.key?(:exclusion_start_time)
|
||||||
@reason = args[:reason] if args.key?(:reason)
|
@reason = args[:reason] if args.key?(:reason)
|
||||||
@slo_name = args[:slo_name] if args.key?(:slo_name)
|
@sli_name = args[:sli_name] if args.key?(:sli_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -236,7 +236,7 @@ module Google
|
||||||
property :exclusion_duration, as: 'exclusionDuration'
|
property :exclusion_duration, as: 'exclusionDuration'
|
||||||
property :exclusion_start_time, as: 'exclusionStartTime'
|
property :exclusion_start_time, as: 'exclusionStartTime'
|
||||||
property :reason, as: 'reason'
|
property :reason, as: 'reason'
|
||||||
property :slo_name, as: 'sloName'
|
property :sli_name, as: 'sliName'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/filestore/
|
# @see https://cloud.google.com/filestore/
|
||||||
module FileV1beta1
|
module FileV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20190516'
|
REVISION = '20190605'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -426,7 +426,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A temporal SLO exclusion specification.
|
# SloExclusion represents an excusion in SLI calculation applies to all SLOs.
|
||||||
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
|
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -454,12 +454,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :reason
|
attr_accessor :reason
|
||||||
|
|
||||||
# Name of an SLI/SLO that this exclusion applies to. Can be left empty,
|
# Name of an SLI that this exclusion applies to. Can be left empty,
|
||||||
# signaling that the instance should be excluded from all SLI/SLOs defined
|
# signaling that the instance should be excluded from all SLIs defined
|
||||||
# in the service SLO configuration.
|
# in the service SLO configuration.
|
||||||
# Corresponds to the JSON property `sloName`
|
# Corresponds to the JSON property `sliName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :slo_name
|
attr_accessor :sli_name
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -470,7 +470,7 @@ module Google
|
||||||
@exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
|
@exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
|
||||||
@exclusion_start_time = args[:exclusion_start_time] if args.key?(:exclusion_start_time)
|
@exclusion_start_time = args[:exclusion_start_time] if args.key?(:exclusion_start_time)
|
||||||
@reason = args[:reason] if args.key?(:reason)
|
@reason = args[:reason] if args.key?(:reason)
|
||||||
@slo_name = args[:slo_name] if args.key?(:slo_name)
|
@sli_name = args[:sli_name] if args.key?(:sli_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -236,7 +236,7 @@ module Google
|
||||||
property :exclusion_duration, as: 'exclusionDuration'
|
property :exclusion_duration, as: 'exclusionDuration'
|
||||||
property :exclusion_start_time, as: 'exclusionStartTime'
|
property :exclusion_start_time, as: 'exclusionStartTime'
|
||||||
property :reason, as: 'reason'
|
property :reason, as: 'reason'
|
||||||
property :slo_name, as: 'sloName'
|
property :sli_name, as: 'sliName'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/gmail/api/
|
# @see https://developers.google.com/gmail/api/
|
||||||
module GmailV1
|
module GmailV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190422'
|
REVISION = '20190602'
|
||||||
|
|
||||||
# Read, compose, send, and permanently delete all your email from Gmail
|
# Read, compose, send, and permanently delete all your email from Gmail
|
||||||
AUTH_SCOPE = 'https://mail.google.com/'
|
AUTH_SCOPE = 'https://mail.google.com/'
|
||||||
|
|
|
@ -604,7 +604,11 @@ module Google
|
||||||
# #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #
|
# #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #
|
||||||
# f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49,
|
# f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49,
|
||||||
# #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #
|
# #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #
|
||||||
# 076239, #1a764d, #1c4587, #41236d, #83334c
|
# 076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5,
|
||||||
|
# #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #
|
||||||
|
# 7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30,
|
||||||
|
# #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #
|
||||||
|
# f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
|
||||||
# Corresponds to the JSON property `backgroundColor`
|
# Corresponds to the JSON property `backgroundColor`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :background_color
|
attr_accessor :background_color
|
||||||
|
@ -619,7 +623,11 @@ module Google
|
||||||
# #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #
|
# #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #
|
||||||
# f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49,
|
# f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49,
|
||||||
# #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #
|
# #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #
|
||||||
# 076239, #1a764d, #1c4587, #41236d, #83334c
|
# 076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5,
|
||||||
|
# #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #
|
||||||
|
# 7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30,
|
||||||
|
# #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #
|
||||||
|
# f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
|
||||||
# Corresponds to the JSON property `textColor`
|
# Corresponds to the JSON property `textColor`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :text_color
|
attr_accessor :text_color
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/healthcare
|
# @see https://cloud.google.com/healthcare
|
||||||
module HealthcareV1alpha2
|
module HealthcareV1alpha2
|
||||||
VERSION = 'V1alpha2'
|
VERSION = 'V1alpha2'
|
||||||
REVISION = '20190527'
|
REVISION = '20190530'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -705,43 +705,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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`
|
# Corresponds to the JSON property `error`
|
||||||
# @return [Google::Apis::HealthcareV1alpha2::Status]
|
# @return [Google::Apis::HealthcareV1alpha2::Status]
|
||||||
attr_accessor :error
|
attr_accessor :error
|
||||||
|
@ -965,6 +932,24 @@ module Google
|
||||||
# @return [Google::Apis::HealthcareV1alpha2::NotificationConfig]
|
# @return [Google::Apis::HealthcareV1alpha2::NotificationConfig]
|
||||||
attr_accessor :notification_config
|
attr_accessor :notification_config
|
||||||
|
|
||||||
|
# A list of streaming configs that configure the destinations of streaming
|
||||||
|
# export for every resource mutation in this FHIR store. Each store is
|
||||||
|
# allowed to have up to 10 streaming configs.
|
||||||
|
# After a new config is added, the next resource mutation will be streamed to
|
||||||
|
# the new location in addition to the existing ones.
|
||||||
|
# When a location is removed from the list, the server will simply stop
|
||||||
|
# streaming to that location. Before adding a new config, you must add the
|
||||||
|
# required
|
||||||
|
# [`bigquery.dataEditor`](https://cloud.google.com/bigquery/docs/access-control#
|
||||||
|
# bigquery.dataEditor)
|
||||||
|
# role to your project's **Cloud Healthcare Service Agent**
|
||||||
|
# [service account](https://cloud.google.com/iam/docs/service-accounts).
|
||||||
|
# Some lag (typically on the order of dozens of seconds) is expected before
|
||||||
|
# the results show up in the streaming destination.
|
||||||
|
# Corresponds to the JSON property `streamConfigs`
|
||||||
|
# @return [Array<Google::Apis::HealthcareV1alpha2::StreamConfig>]
|
||||||
|
attr_accessor :stream_configs
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -978,6 +963,7 @@ module Google
|
||||||
@labels = args[:labels] if args.key?(:labels)
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@notification_config = args[:notification_config] if args.key?(:notification_config)
|
@notification_config = args[:notification_config] if args.key?(:notification_config)
|
||||||
|
@stream_configs = args[:stream_configs] if args.key?(:stream_configs)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1572,8 +1558,8 @@ module Google
|
||||||
class ImportResourcesRequest
|
class ImportResourcesRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The content structure in the source location. The default is
|
# The content structure in the source location. If not specified, the server
|
||||||
# BUNDLE.
|
# treats the input source files as BUNDLE.
|
||||||
# Corresponds to the JSON property `contentStructure`
|
# Corresponds to the JSON property `contentStructure`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :content_structure
|
attr_accessor :content_structure
|
||||||
|
@ -2122,43 +2108,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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`
|
# Corresponds to the JSON property `error`
|
||||||
# @return [Google::Apis::HealthcareV1alpha2::Status]
|
# @return [Google::Apis::HealthcareV1alpha2::Status]
|
||||||
attr_accessor :error
|
attr_accessor :error
|
||||||
|
@ -2660,43 +2613,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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
|
class Status
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -2730,6 +2650,35 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# This structure contains configuration for streaming FHIR export.
|
||||||
|
class StreamConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The configuration for exporting to BigQuery.
|
||||||
|
# Corresponds to the JSON property `bigqueryDestination`
|
||||||
|
# @return [Google::Apis::HealthcareV1alpha2::GoogleCloudHealthcareV1alpha2FhirBigQueryDestination]
|
||||||
|
attr_accessor :bigquery_destination
|
||||||
|
|
||||||
|
# Supply a FHIR resource type (such as "Patient" or "Observation").
|
||||||
|
# See https://www.hl7.org/fhir/valueset-resource-types.html for a list of
|
||||||
|
# all FHIR resource types.
|
||||||
|
# The server will treat an empty list as an intent to stream all the
|
||||||
|
# supported resource types in this FHIR store.
|
||||||
|
# Corresponds to the JSON property `resourceTypes`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :resource_types
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
|
||||||
|
@resource_types = args[:resource_types] if args.key?(:resource_types)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# List of tags to be filtered.
|
# List of tags to be filtered.
|
||||||
class TagFilterList
|
class TagFilterList
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -490,6 +490,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class StreamConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class TagFilterList
|
class TagFilterList
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -765,6 +771,8 @@ module Google
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :notification_config, as: 'notificationConfig', class: Google::Apis::HealthcareV1alpha2::NotificationConfig, decorator: Google::Apis::HealthcareV1alpha2::NotificationConfig::Representation
|
property :notification_config, as: 'notificationConfig', class: Google::Apis::HealthcareV1alpha2::NotificationConfig, decorator: Google::Apis::HealthcareV1alpha2::NotificationConfig::Representation
|
||||||
|
|
||||||
|
collection :stream_configs, as: 'streamConfigs', class: Google::Apis::HealthcareV1alpha2::StreamConfig, decorator: Google::Apis::HealthcareV1alpha2::StreamConfig::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1218,6 +1226,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class StreamConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::HealthcareV1alpha2::GoogleCloudHealthcareV1alpha2FhirBigQueryDestination, decorator: Google::Apis::HealthcareV1alpha2::GoogleCloudHealthcareV1alpha2FhirBigQueryDestination::Representation
|
||||||
|
|
||||||
|
collection :resource_types, as: 'resourceTypes'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class TagFilterList
|
class TagFilterList
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -121,6 +121,8 @@ module Google
|
||||||
# `Operation.response` which contains a Dataset or
|
# `Operation.response` which contains a Dataset or
|
||||||
# `Operation.error`. The metadata
|
# `Operation.error`. The metadata
|
||||||
# field type is OperationMetadata.
|
# field type is OperationMetadata.
|
||||||
|
# A Google Cloud Platform project can contain up to 500 datasets across all
|
||||||
|
# regions.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# The name of the project in which the dataset should be created (e.g.,
|
# The name of the project in which the dataset should be created (e.g.,
|
||||||
# `projects/`project_id`/locations/`location_id``).
|
# `projects/`project_id`/locations/`location_id``).
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/healthcare
|
# @see https://cloud.google.com/healthcare
|
||||||
module HealthcareV1beta1
|
module HealthcareV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20190527'
|
REVISION = '20190530'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -541,43 +541,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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`
|
# Corresponds to the JSON property `error`
|
||||||
# @return [Google::Apis::HealthcareV1beta1::Status]
|
# @return [Google::Apis::HealthcareV1beta1::Status]
|
||||||
attr_accessor :error
|
attr_accessor :error
|
||||||
|
@ -1321,8 +1288,8 @@ module Google
|
||||||
class ImportResourcesRequest
|
class ImportResourcesRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The content structure in the source location. The default is
|
# The content structure in the source location. If not specified, the server
|
||||||
# BUNDLE.
|
# treats the input source files as BUNDLE.
|
||||||
# Corresponds to the JSON property `contentStructure`
|
# Corresponds to the JSON property `contentStructure`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :content_structure
|
attr_accessor :content_structure
|
||||||
|
@ -1809,43 +1776,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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`
|
# Corresponds to the JSON property `error`
|
||||||
# @return [Google::Apis::HealthcareV1beta1::Status]
|
# @return [Google::Apis::HealthcareV1beta1::Status]
|
||||||
attr_accessor :error
|
attr_accessor :error
|
||||||
|
@ -2306,43 +2240,10 @@ module Google
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# different programming environments, including REST APIs and RPC APIs. It is
|
# 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:
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||||
# - Simple to use and understand for most users
|
# three pieces of data: error code, error message, and error details.
|
||||||
# - Flexible enough to meet unexpected needs
|
# You can find out more about this error model and how to work with it in the
|
||||||
# # Overview
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
# 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
|
class Status
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -121,6 +121,8 @@ module Google
|
||||||
# `Operation.response` which contains a Dataset or
|
# `Operation.response` which contains a Dataset or
|
||||||
# `Operation.error`. The metadata
|
# `Operation.error`. The metadata
|
||||||
# field type is OperationMetadata.
|
# field type is OperationMetadata.
|
||||||
|
# A Google Cloud Platform project can contain up to 500 datasets across all
|
||||||
|
# regions.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# The name of the project in which the dataset should be created (e.g.,
|
# The name of the project in which the dataset should be created (e.g.,
|
||||||
# `projects/`project_id`/locations/`location_id``).
|
# `projects/`project_id`/locations/`location_id``).
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
# 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/securitycenter_v1p1alpha1/service.rb'
|
||||||
|
require 'google/apis/securitycenter_v1p1alpha1/classes.rb'
|
||||||
|
require 'google/apis/securitycenter_v1p1alpha1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Cloud Security Command Center API
|
||||||
|
#
|
||||||
|
# Cloud Security Command Center API provides access to temporal views of assets
|
||||||
|
# and findings within an organization.
|
||||||
|
#
|
||||||
|
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
||||||
|
module SecuritycenterV1p1alpha1
|
||||||
|
VERSION = 'V1p1alpha1'
|
||||||
|
REVISION = '20190603'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,223 @@
|
||||||
|
# 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 SecuritycenterV1p1alpha1
|
||||||
|
|
||||||
|
# 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:
|
||||||
|
# service Foo `
|
||||||
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||||
|
# `
|
||||||
|
# The JSON representation for `Empty` is empty JSON object ````.
|
||||||
|
class Empty
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response of asset discovery run
|
||||||
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The duration between asset discovery run start and end
|
||||||
|
# Corresponds to the JSON property `duration`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :duration
|
||||||
|
|
||||||
|
# The state of an asset discovery run.
|
||||||
|
# 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)
|
||||||
|
@duration = args[:duration] if args.key?(:duration)
|
||||||
|
@state = args[:state] if args.key?(:state)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response of asset discovery run
|
||||||
|
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The duration between asset discovery run start and end
|
||||||
|
# Corresponds to the JSON property `duration`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :duration
|
||||||
|
|
||||||
|
# The state of an asset discovery run.
|
||||||
|
# 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)
|
||||||
|
@duration = args[:duration] if args.key?(:duration)
|
||||||
|
@state = args[:state] if args.key?(:state)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response message for Operations.ListOperations.
|
||||||
|
class ListOperationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The standard List next-page token.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# A list of operations that matches the specified filter in the request.
|
||||||
|
# Corresponds to the JSON property `operations`
|
||||||
|
# @return [Array<Google::Apis::SecuritycenterV1p1alpha1::Operation>]
|
||||||
|
attr_accessor :operations
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
@operations = args[:operations] if args.key?(:operations)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# This resource represents a long-running operation that is the result of a
|
||||||
|
# network API call.
|
||||||
|
class Operation
|
||||||
|
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). Each `Status` message contains
|
||||||
|
# three pieces of data: error code, error message, and error details.
|
||||||
|
# You can find out more about this error model and how to work with it in the
|
||||||
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
|
# Corresponds to the JSON property `error`
|
||||||
|
# @return [Google::Apis::SecuritycenterV1p1alpha1::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<String,Object>]
|
||||||
|
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 be a resource name ending with `operations/`unique_id``.
|
||||||
|
# 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<String,Object>]
|
||||||
|
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). Each `Status` message contains
|
||||||
|
# three pieces of data: error code, error message, and error details.
|
||||||
|
# You can find out more about this error model and how to work with it in the
|
||||||
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||||
|
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<Hash<String,Object>>]
|
||||||
|
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
|
|
@ -0,0 +1,114 @@
|
||||||
|
# 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 SecuritycenterV1p1alpha1
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
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 Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :duration, as: 'duration'
|
||||||
|
property :state, as: 'state'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :duration, as: 'duration'
|
||||||
|
property :state, as: 'state'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1p1alpha1::Operation, decorator: Google::Apis::SecuritycenterV1p1alpha1::Operation::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :done, as: 'done'
|
||||||
|
property :error, as: 'error', class: Google::Apis::SecuritycenterV1p1alpha1::Status, decorator: Google::Apis::SecuritycenterV1p1alpha1::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
|
|
@ -0,0 +1,211 @@
|
||||||
|
# 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 SecuritycenterV1p1alpha1
|
||||||
|
# Cloud Security Command Center API
|
||||||
|
#
|
||||||
|
# Cloud Security Command Center API provides access to temporal views of assets
|
||||||
|
# and findings within an organization.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/securitycenter_v1p1alpha1'
|
||||||
|
#
|
||||||
|
# Securitycenter = Google::Apis::SecuritycenterV1p1alpha1 # Alias the module
|
||||||
|
# service = Securitycenter::SecurityCommandCenterService.new
|
||||||
|
#
|
||||||
|
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
||||||
|
class SecurityCommandCenterService < 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://securitycenter.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Starts asynchronous cancellation on a long-running operation. The server
|
||||||
|
# makes a best effort to cancel the operation, but success is not
|
||||||
|
# guaranteed. If the server doesn't support this method, it returns
|
||||||
|
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||||
|
# Operations.GetOperation or
|
||||||
|
# other methods to check whether the cancellation succeeded or whether the
|
||||||
|
# operation completed despite cancellation. On successful cancellation,
|
||||||
|
# the operation is not deleted; instead, it becomes an operation with
|
||||||
|
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||||
|
# corresponding to `Code.CANCELLED`.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation resource to be cancelled.
|
||||||
|
# @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::SecuritycenterV1p1alpha1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SecuritycenterV1p1alpha1::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 cancel_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1p1alpha1/{+name}:cancel', options)
|
||||||
|
command.response_representation = Google::Apis::SecuritycenterV1p1alpha1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::SecuritycenterV1p1alpha1::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
|
||||||
|
|
||||||
|
# Deletes a long-running operation. This method indicates that the client is
|
||||||
|
# no longer interested in the operation result. It does not cancel the
|
||||||
|
# operation. If the server doesn't support this method, it returns
|
||||||
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation resource to be deleted.
|
||||||
|
# @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::SecuritycenterV1p1alpha1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SecuritycenterV1p1alpha1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1p1alpha1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::SecuritycenterV1p1alpha1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::SecuritycenterV1p1alpha1::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 latest state of a long-running operation. Clients can use this
|
||||||
|
# method to poll the operation result at intervals as recommended by the API
|
||||||
|
# service.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation resource.
|
||||||
|
# @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::SecuritycenterV1p1alpha1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SecuritycenterV1p1alpha1::Operation]
|
||||||
|
#
|
||||||
|
# @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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1p1alpha1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::SecuritycenterV1p1alpha1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::SecuritycenterV1p1alpha1::Operation
|
||||||
|
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 operations that match the specified filter in the request. If the
|
||||||
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||||
|
# NOTE: the `name` binding allows API services to override the binding
|
||||||
|
# to use different resource name schemes, such as `users/*/operations`. To
|
||||||
|
# override the binding, API services can add a binding such as
|
||||||
|
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||||
|
# For backwards compatibility, the default name includes the operations
|
||||||
|
# collection id, however overriding users must ensure the name binding
|
||||||
|
# is the parent resource, without the operations collection id.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation's parent resource.
|
||||||
|
# @param [String] filter
|
||||||
|
# The standard list filter.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The standard list page size.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The standard list page token.
|
||||||
|
# @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::SecuritycenterV1p1alpha1::ListOperationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SecuritycenterV1p1alpha1::ListOperationsResponse]
|
||||||
|
#
|
||||||
|
# @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_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1p1alpha1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::SecuritycenterV1p1alpha1::ListOperationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::SecuritycenterV1p1alpha1::ListOperationsResponse
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['filter'] = filter unless filter.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
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in New Issue