Autogenerated update (2017-09-02)
Add: - firebaseremoteconfig_v1 Update: - bigquery_v2 - cloudkms_v1 - monitoring_v3 - servicecontrol_v1
This commit is contained in:
parent
1482f5e71d
commit
a75fd36eeb
|
@ -8861,6 +8861,7 @@
|
||||||
"/bigquery:v2/TableSchema/fields/field": field
|
"/bigquery:v2/TableSchema/fields/field": field
|
||||||
"/bigquery:v2/TimePartitioning": time_partitioning
|
"/bigquery:v2/TimePartitioning": time_partitioning
|
||||||
"/bigquery:v2/TimePartitioning/expirationMs": expiration_ms
|
"/bigquery:v2/TimePartitioning/expirationMs": expiration_ms
|
||||||
|
"/bigquery:v2/TimePartitioning/field": field
|
||||||
"/bigquery:v2/TimePartitioning/type": type
|
"/bigquery:v2/TimePartitioning/type": type
|
||||||
"/bigquery:v2/UserDefinedFunctionResource": user_defined_function_resource
|
"/bigquery:v2/UserDefinedFunctionResource": user_defined_function_resource
|
||||||
"/bigquery:v2/UserDefinedFunctionResource/inlineCode": inline_code
|
"/bigquery:v2/UserDefinedFunctionResource/inlineCode": inline_code
|
||||||
|
@ -12218,6 +12219,8 @@
|
||||||
"/cloudkms:v1/CounterOptions/metric": metric
|
"/cloudkms:v1/CounterOptions/metric": metric
|
||||||
"/cloudkms:v1/CryptoKey": crypto_key
|
"/cloudkms:v1/CryptoKey": crypto_key
|
||||||
"/cloudkms:v1/CryptoKey/createTime": create_time
|
"/cloudkms:v1/CryptoKey/createTime": create_time
|
||||||
|
"/cloudkms:v1/CryptoKey/labels": labels
|
||||||
|
"/cloudkms:v1/CryptoKey/labels/label": label
|
||||||
"/cloudkms:v1/CryptoKey/name": name
|
"/cloudkms:v1/CryptoKey/name": name
|
||||||
"/cloudkms:v1/CryptoKey/nextRotationTime": next_rotation_time
|
"/cloudkms:v1/CryptoKey/nextRotationTime": next_rotation_time
|
||||||
"/cloudkms:v1/CryptoKey/primary": primary
|
"/cloudkms:v1/CryptoKey/primary": primary
|
||||||
|
@ -38833,6 +38836,30 @@
|
||||||
"/firebasedynamiclinks:v1/firebasedynamiclinks.shortLinks.create": create_short_link_short_dynamic_link
|
"/firebasedynamiclinks:v1/firebasedynamiclinks.shortLinks.create": create_short_link_short_dynamic_link
|
||||||
"/firebasedynamiclinks:v1/key": key
|
"/firebasedynamiclinks:v1/key": key
|
||||||
"/firebasedynamiclinks:v1/quotaUser": quota_user
|
"/firebasedynamiclinks:v1/quotaUser": quota_user
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfig": remote_config
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfig/conditions": conditions
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfig/conditions/condition": condition
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfig/parameters": parameters
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfig/parameters/parameter": parameter
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigCondition": remote_config_condition
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigCondition/expression": expression
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigCondition/name": name
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigCondition/tagColor": tag_color
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigParameter": remote_config_parameter
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigParameter/conditionalValues": conditional_values
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigParameter/conditionalValues/conditional_value": conditional_value
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigParameter/defaultValue": default_value
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigParameterValue": remote_config_parameter_value
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigParameterValue/useInAppDefault": use_in_app_default
|
||||||
|
"/firebaseremoteconfig:v1/RemoteConfigParameterValue/value": value
|
||||||
|
"/firebaseremoteconfig:v1/fields": fields
|
||||||
|
"/firebaseremoteconfig:v1/firebaseremoteconfig.projects.getRemoteConfig": get_project_remote_config
|
||||||
|
"/firebaseremoteconfig:v1/firebaseremoteconfig.projects.getRemoteConfig/project": project
|
||||||
|
"/firebaseremoteconfig:v1/firebaseremoteconfig.projects.updateRemoteConfig": update_project_remote_config
|
||||||
|
"/firebaseremoteconfig:v1/firebaseremoteconfig.projects.updateRemoteConfig/project": project
|
||||||
|
"/firebaseremoteconfig:v1/firebaseremoteconfig.projects.updateRemoteConfig/validateOnly": validate_only
|
||||||
|
"/firebaseremoteconfig:v1/key": key
|
||||||
|
"/firebaseremoteconfig:v1/quotaUser": quota_user
|
||||||
"/firebaserules:v1/Arg": arg
|
"/firebaserules:v1/Arg": arg
|
||||||
"/firebaserules:v1/Arg/anyValue": any_value
|
"/firebaserules:v1/Arg/anyValue": any_value
|
||||||
"/firebaserules:v1/Arg/exactValue": exact_value
|
"/firebaserules:v1/Arg/exactValue": exact_value
|
||||||
|
@ -44447,15 +44474,26 @@
|
||||||
"/monitoring:v3/CollectdPayload/typeInstance": type_instance
|
"/monitoring:v3/CollectdPayload/typeInstance": type_instance
|
||||||
"/monitoring:v3/CollectdPayload/values": values
|
"/monitoring:v3/CollectdPayload/values": values
|
||||||
"/monitoring:v3/CollectdPayload/values/value": value
|
"/monitoring:v3/CollectdPayload/values/value": value
|
||||||
|
"/monitoring:v3/CollectdPayloadError": collectd_payload_error
|
||||||
|
"/monitoring:v3/CollectdPayloadError/error": error
|
||||||
|
"/monitoring:v3/CollectdPayloadError/index": index
|
||||||
|
"/monitoring:v3/CollectdPayloadError/valueErrors": value_errors
|
||||||
|
"/monitoring:v3/CollectdPayloadError/valueErrors/value_error": value_error
|
||||||
"/monitoring:v3/CollectdValue": collectd_value
|
"/monitoring:v3/CollectdValue": collectd_value
|
||||||
"/monitoring:v3/CollectdValue/dataSourceName": data_source_name
|
"/monitoring:v3/CollectdValue/dataSourceName": data_source_name
|
||||||
"/monitoring:v3/CollectdValue/dataSourceType": data_source_type
|
"/monitoring:v3/CollectdValue/dataSourceType": data_source_type
|
||||||
"/monitoring:v3/CollectdValue/value": value
|
"/monitoring:v3/CollectdValue/value": value
|
||||||
|
"/monitoring:v3/CollectdValueError": collectd_value_error
|
||||||
|
"/monitoring:v3/CollectdValueError/error": error
|
||||||
|
"/monitoring:v3/CollectdValueError/index": index
|
||||||
"/monitoring:v3/CreateCollectdTimeSeriesRequest": create_collectd_time_series_request
|
"/monitoring:v3/CreateCollectdTimeSeriesRequest": create_collectd_time_series_request
|
||||||
"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads": collectd_payloads
|
"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads": collectd_payloads
|
||||||
"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads/collectd_payload": collectd_payload
|
"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads/collectd_payload": collectd_payload
|
||||||
"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdVersion": collectd_version
|
"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdVersion": collectd_version
|
||||||
"/monitoring:v3/CreateCollectdTimeSeriesRequest/resource": resource
|
"/monitoring:v3/CreateCollectdTimeSeriesRequest/resource": resource
|
||||||
|
"/monitoring:v3/CreateCollectdTimeSeriesResponse": create_collectd_time_series_response
|
||||||
|
"/monitoring:v3/CreateCollectdTimeSeriesResponse/payloadErrors": payload_errors
|
||||||
|
"/monitoring:v3/CreateCollectdTimeSeriesResponse/payloadErrors/payload_error": payload_error
|
||||||
"/monitoring:v3/CreateTimeSeriesRequest": create_time_series_request
|
"/monitoring:v3/CreateTimeSeriesRequest": create_time_series_request
|
||||||
"/monitoring:v3/CreateTimeSeriesRequest/timeSeries": time_series
|
"/monitoring:v3/CreateTimeSeriesRequest/timeSeries": time_series
|
||||||
"/monitoring:v3/CreateTimeSeriesRequest/timeSeries/time_series": time_series
|
"/monitoring:v3/CreateTimeSeriesRequest/timeSeries/time_series": time_series
|
||||||
|
@ -44559,6 +44597,12 @@
|
||||||
"/monitoring:v3/Range/min": min
|
"/monitoring:v3/Range/min": min
|
||||||
"/monitoring:v3/SourceContext": source_context
|
"/monitoring:v3/SourceContext": source_context
|
||||||
"/monitoring:v3/SourceContext/fileName": file_name
|
"/monitoring:v3/SourceContext/fileName": file_name
|
||||||
|
"/monitoring:v3/Status": status
|
||||||
|
"/monitoring:v3/Status/code": code
|
||||||
|
"/monitoring:v3/Status/details": details
|
||||||
|
"/monitoring:v3/Status/details/detail": detail
|
||||||
|
"/monitoring:v3/Status/details/detail/detail": detail
|
||||||
|
"/monitoring:v3/Status/message": message
|
||||||
"/monitoring:v3/TimeInterval": time_interval
|
"/monitoring:v3/TimeInterval": time_interval
|
||||||
"/monitoring:v3/TimeInterval/endTime": end_time
|
"/monitoring:v3/TimeInterval/endTime": end_time
|
||||||
"/monitoring:v3/TimeInterval/startTime": start_time
|
"/monitoring:v3/TimeInterval/startTime": start_time
|
||||||
|
@ -49144,6 +49188,8 @@
|
||||||
"/servicecontrol:v1/AuthenticationInfo": authentication_info
|
"/servicecontrol:v1/AuthenticationInfo": authentication_info
|
||||||
"/servicecontrol:v1/AuthenticationInfo/authoritySelector": authority_selector
|
"/servicecontrol:v1/AuthenticationInfo/authoritySelector": authority_selector
|
||||||
"/servicecontrol:v1/AuthenticationInfo/principalEmail": principal_email
|
"/servicecontrol:v1/AuthenticationInfo/principalEmail": principal_email
|
||||||
|
"/servicecontrol:v1/AuthenticationInfo/thirdPartyPrincipal": third_party_principal
|
||||||
|
"/servicecontrol:v1/AuthenticationInfo/thirdPartyPrincipal/third_party_principal": third_party_principal
|
||||||
"/servicecontrol:v1/AuthorizationInfo": authorization_info
|
"/servicecontrol:v1/AuthorizationInfo": authorization_info
|
||||||
"/servicecontrol:v1/AuthorizationInfo/granted": granted
|
"/servicecontrol:v1/AuthorizationInfo/granted": granted
|
||||||
"/servicecontrol:v1/AuthorizationInfo/permission": permission
|
"/servicecontrol:v1/AuthorizationInfo/permission": permission
|
||||||
|
|
|
@ -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 = '20170806'
|
REVISION = '20170825'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -3124,8 +3124,16 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :expiration_ms
|
attr_accessor :expiration_ms
|
||||||
|
|
||||||
|
# [Experimental] [Optional] If not set, the table is partitioned by pseudo
|
||||||
|
# column '_PARTITIONTIME'; if set, the table is partitioned by this field. The
|
||||||
|
# field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE
|
||||||
|
# or REQUIRED.
|
||||||
|
# Corresponds to the JSON property `field`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :field
|
||||||
|
|
||||||
# [Required] The only type supported is DAY, which will generate one partition
|
# [Required] The only type supported is DAY, which will generate one partition
|
||||||
# per day based on data loading time.
|
# per day.
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
@ -3137,6 +3145,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms)
|
@expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms)
|
||||||
|
@field = args[:field] if args.key?(:field)
|
||||||
@type = args[:type] if args.key?(:type)
|
@type = args[:type] if args.key?(:type)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1100,6 +1100,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :expiration_ms, :numeric_string => true, as: 'expirationMs'
|
property :expiration_ms, :numeric_string => true, as: 'expirationMs'
|
||||||
|
property :field, as: 'field'
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/kms/
|
# @see https://cloud.google.com/kms/
|
||||||
module CloudkmsV1
|
module CloudkmsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170821'
|
REVISION = '20170829'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -194,116 +194,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Write a Cloud Audit log
|
|
||||||
class CloudAuditOptions
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The log_name to populate in the Cloud Audit Record.
|
|
||||||
# Corresponds to the JSON property `logName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :log_name
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@log_name = args[:log_name] if args.key?(:log_name)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A condition to be met.
|
|
||||||
class Condition
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Trusted attributes supplied by the IAM system.
|
|
||||||
# Corresponds to the JSON property `iam`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :iam
|
|
||||||
|
|
||||||
# An operator to apply the subject with.
|
|
||||||
# Corresponds to the JSON property `op`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :op
|
|
||||||
|
|
||||||
# Trusted attributes discharged by the service.
|
|
||||||
# Corresponds to the JSON property `svc`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :svc
|
|
||||||
|
|
||||||
# Trusted attributes supplied by any service that owns resources and uses
|
|
||||||
# the IAM system for access control.
|
|
||||||
# Corresponds to the JSON property `sys`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :sys
|
|
||||||
|
|
||||||
# DEPRECATED. Use 'values' instead.
|
|
||||||
# Corresponds to the JSON property `value`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :value
|
|
||||||
|
|
||||||
# The objects of the condition. This is mutually exclusive with 'value'.
|
|
||||||
# Corresponds to the JSON property `values`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :values
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@iam = args[:iam] if args.key?(:iam)
|
|
||||||
@op = args[:op] if args.key?(:op)
|
|
||||||
@svc = args[:svc] if args.key?(:svc)
|
|
||||||
@sys = args[:sys] if args.key?(:sys)
|
|
||||||
@value = args[:value] if args.key?(:value)
|
|
||||||
@values = args[:values] if args.key?(:values)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Increment a streamz counter with the specified metric and field names.
|
|
||||||
# Metric names should start with a '/', generally be lowercase-only,
|
|
||||||
# and end in "_count". Field names should not contain an initial slash.
|
|
||||||
# The actual exported metric names will have "/iam/policy" prepended.
|
|
||||||
# Field names correspond to IAM request parameters and field values are
|
|
||||||
# their respective values.
|
|
||||||
# At present the only supported field names are
|
|
||||||
# - "iam_principal", corresponding to IAMContext.principal;
|
|
||||||
# - "" (empty string), resulting in one aggretated counter with no field.
|
|
||||||
# Examples:
|
|
||||||
# counter ` metric: "/debug_access_count" field: "iam_principal" `
|
|
||||||
# ==> increment counter /iam/policy/backend_debug_access_count
|
|
||||||
# `iam_principal=[value of IAMContext.principal]`
|
|
||||||
# At this time we do not support:
|
|
||||||
# * multiple field names (though this may be supported in the future)
|
|
||||||
# * decrementing the counter
|
|
||||||
# * incrementing it by anything other than 1
|
|
||||||
class CounterOptions
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The field value to attribute.
|
|
||||||
# Corresponds to the JSON property `field`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :field
|
|
||||||
|
|
||||||
# The metric to update.
|
|
||||||
# Corresponds to the JSON property `metric`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :metric
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@field = args[:field] if args.key?(:field)
|
|
||||||
@metric = args[:metric] if args.key?(:metric)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A CryptoKey represents a logical key that can be used for cryptographic
|
# A CryptoKey represents a logical key that can be used for cryptographic
|
||||||
# operations.
|
# operations.
|
||||||
# A CryptoKey is made up of one or more versions, which
|
# A CryptoKey is made up of one or more versions, which
|
||||||
|
@ -316,6 +206,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :create_time
|
attr_accessor :create_time
|
||||||
|
|
||||||
|
# Labels with user defined metadata.
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
# Output only. The resource name for this CryptoKey in the format
|
# Output only. The resource name for this CryptoKey in the format
|
||||||
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
|
@ -366,6 +261,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
@create_time = args[:create_time] if args.key?(:create_time)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
|
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
|
||||||
@primary = args[:primary] if args.key?(:primary)
|
@primary = args[:primary] if args.key?(:primary)
|
||||||
|
@ -430,26 +326,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Write a Data Access (Gin) log
|
|
||||||
class DataAccessOptions
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Whether Gin logging should happen in a fail-closed manner at the caller.
|
|
||||||
# This is relevant only in the LocalIAM implementation, for now.
|
|
||||||
# Corresponds to the JSON property `logMode`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :log_mode
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@log_mode = args[:log_mode] if args.key?(:log_mode)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Request message for KeyManagementService.Decrypt.
|
# Request message for KeyManagementService.Decrypt.
|
||||||
class DecryptRequest
|
class DecryptRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -803,53 +679,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Specifies what kind of log the caller must write
|
|
||||||
class LogConfig
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Write a Cloud Audit log
|
|
||||||
# Corresponds to the JSON property `cloudAudit`
|
|
||||||
# @return [Google::Apis::CloudkmsV1::CloudAuditOptions]
|
|
||||||
attr_accessor :cloud_audit
|
|
||||||
|
|
||||||
# Increment a streamz counter with the specified metric and field names.
|
|
||||||
# Metric names should start with a '/', generally be lowercase-only,
|
|
||||||
# and end in "_count". Field names should not contain an initial slash.
|
|
||||||
# The actual exported metric names will have "/iam/policy" prepended.
|
|
||||||
# Field names correspond to IAM request parameters and field values are
|
|
||||||
# their respective values.
|
|
||||||
# At present the only supported field names are
|
|
||||||
# - "iam_principal", corresponding to IAMContext.principal;
|
|
||||||
# - "" (empty string), resulting in one aggretated counter with no field.
|
|
||||||
# Examples:
|
|
||||||
# counter ` metric: "/debug_access_count" field: "iam_principal" `
|
|
||||||
# ==> increment counter /iam/policy/backend_debug_access_count
|
|
||||||
# `iam_principal=[value of IAMContext.principal]`
|
|
||||||
# At this time we do not support:
|
|
||||||
# * multiple field names (though this may be supported in the future)
|
|
||||||
# * decrementing the counter
|
|
||||||
# * incrementing it by anything other than 1
|
|
||||||
# Corresponds to the JSON property `counter`
|
|
||||||
# @return [Google::Apis::CloudkmsV1::CounterOptions]
|
|
||||||
attr_accessor :counter
|
|
||||||
|
|
||||||
# Write a Data Access (Gin) log
|
|
||||||
# Corresponds to the JSON property `dataAccess`
|
|
||||||
# @return [Google::Apis::CloudkmsV1::DataAccessOptions]
|
|
||||||
attr_accessor :data_access
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
|
|
||||||
@counter = args[:counter] if args.key?(:counter)
|
|
||||||
@data_access = args[:data_access] if args.key?(:data_access)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||||
# specify access control policies for Cloud Platform resources.
|
# specify access control policies for Cloud Platform resources.
|
||||||
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
||||||
|
@ -910,19 +739,6 @@ module Google
|
||||||
attr_accessor :iam_owned
|
attr_accessor :iam_owned
|
||||||
alias_method :iam_owned?, :iam_owned
|
alias_method :iam_owned?, :iam_owned
|
||||||
|
|
||||||
# If more than one rule is specified, the rules are applied in the following
|
|
||||||
# manner:
|
|
||||||
# - All matching LOG rules are always applied.
|
|
||||||
# - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
|
|
||||||
# Logging will be applied if one or more matching rule requires logging.
|
|
||||||
# - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
|
|
||||||
# granted.
|
|
||||||
# Logging will be applied if one or more matching rule requires logging.
|
|
||||||
# - Otherwise, if no rule applies, permission is denied.
|
|
||||||
# Corresponds to the JSON property `rules`
|
|
||||||
# @return [Array<Google::Apis::CloudkmsV1::Rule>]
|
|
||||||
attr_accessor :rules
|
|
||||||
|
|
||||||
# Version of the `Policy`. The default version is 0.
|
# Version of the `Policy`. The default version is 0.
|
||||||
# Corresponds to the JSON property `version`
|
# Corresponds to the JSON property `version`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
|
@ -938,7 +754,6 @@ module Google
|
||||||
@bindings = args[:bindings] if args.key?(:bindings)
|
@bindings = args[:bindings] if args.key?(:bindings)
|
||||||
@etag = args[:etag] if args.key?(:etag)
|
@etag = args[:etag] if args.key?(:etag)
|
||||||
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
|
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
|
||||||
@rules = args[:rules] if args.key?(:rules)
|
|
||||||
@version = args[:version] if args.key?(:version)
|
@version = args[:version] if args.key?(:version)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -956,68 +771,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A rule to be applied in a Policy.
|
|
||||||
class Rule
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Required
|
|
||||||
# Corresponds to the JSON property `action`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :action
|
|
||||||
|
|
||||||
# Additional restrictions that must be met
|
|
||||||
# Corresponds to the JSON property `conditions`
|
|
||||||
# @return [Array<Google::Apis::CloudkmsV1::Condition>]
|
|
||||||
attr_accessor :conditions
|
|
||||||
|
|
||||||
# Human-readable description of the rule.
|
|
||||||
# Corresponds to the JSON property `description`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :description
|
|
||||||
|
|
||||||
# If one or more 'in' clauses are specified, the rule matches if
|
|
||||||
# the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
|
|
||||||
# Corresponds to the JSON property `in`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :in
|
|
||||||
|
|
||||||
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
|
||||||
# that match the LOG action.
|
|
||||||
# Corresponds to the JSON property `logConfig`
|
|
||||||
# @return [Array<Google::Apis::CloudkmsV1::LogConfig>]
|
|
||||||
attr_accessor :log_config
|
|
||||||
|
|
||||||
# If one or more 'not_in' clauses are specified, the rule matches
|
|
||||||
# if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
|
||||||
# The format for in and not_in entries is the same as for members in a
|
|
||||||
# Binding (see google/iam/v1/policy.proto).
|
|
||||||
# Corresponds to the JSON property `notIn`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :not_in
|
|
||||||
|
|
||||||
# A permission is a string of form '<service>.<resource type>.<verb>'
|
|
||||||
# (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
|
|
||||||
# and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
|
|
||||||
# Corresponds to the JSON property `permissions`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :permissions
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@action = args[:action] if args.key?(:action)
|
|
||||||
@conditions = args[:conditions] if args.key?(:conditions)
|
|
||||||
@description = args[:description] if args.key?(:description)
|
|
||||||
@in = args[:in] if args.key?(:in)
|
|
||||||
@log_config = args[:log_config] if args.key?(:log_config)
|
|
||||||
@not_in = args[:not_in] if args.key?(:not_in)
|
|
||||||
@permissions = args[:permissions] if args.key?(:permissions)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Request message for `SetIamPolicy` method.
|
# Request message for `SetIamPolicy` method.
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -40,24 +40,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class CloudAuditOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Condition
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CounterOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CryptoKey
|
class CryptoKey
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -70,12 +52,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class DataAccessOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DecryptRequest
|
class DecryptRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -148,12 +124,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogConfig
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Policy
|
class Policy
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -166,12 +136,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Rule
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -224,37 +188,11 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CloudAuditOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :log_name, as: 'logName'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Condition
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :iam, as: 'iam'
|
|
||||||
property :op, as: 'op'
|
|
||||||
property :svc, as: 'svc'
|
|
||||||
property :sys, as: 'sys'
|
|
||||||
property :value, as: 'value'
|
|
||||||
collection :values, as: 'values'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CounterOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :field, as: 'field'
|
|
||||||
property :metric, as: 'metric'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CryptoKey
|
class CryptoKey
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :create_time, as: 'createTime'
|
property :create_time, as: 'createTime'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :next_rotation_time, as: 'nextRotationTime'
|
property :next_rotation_time, as: 'nextRotationTime'
|
||||||
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
||||||
|
@ -275,13 +213,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DataAccessOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :log_mode, as: 'logMode'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class DecryptRequest
|
class DecryptRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -386,18 +317,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogConfig
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
|
|
||||||
|
|
||||||
property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation
|
|
||||||
|
|
||||||
property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Policy
|
class Policy
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -407,8 +326,6 @@ module Google
|
||||||
|
|
||||||
property :etag, :base64 => true, as: 'etag'
|
property :etag, :base64 => true, as: 'etag'
|
||||||
property :iam_owned, as: 'iamOwned'
|
property :iam_owned, as: 'iamOwned'
|
||||||
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
|
|
||||||
|
|
||||||
property :version, as: 'version'
|
property :version, as: 'version'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -419,21 +336,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Rule
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :action, as: 'action'
|
|
||||||
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
|
|
||||||
|
|
||||||
property :description, as: 'description'
|
|
||||||
collection :in, as: 'in'
|
|
||||||
collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation
|
|
||||||
|
|
||||||
collection :not_in, as: 'notIn'
|
|
||||||
collection :permissions, as: 'permissions'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
# 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/firebaseremoteconfig_v1/service.rb'
|
||||||
|
require 'google/apis/firebaseremoteconfig_v1/classes.rb'
|
||||||
|
require 'google/apis/firebaseremoteconfig_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Firebase Remote Config API
|
||||||
|
#
|
||||||
|
# Firebase Remote Config API allows the 3P clients to manage Remote Config
|
||||||
|
# conditions and parameters for Firebase applications.
|
||||||
|
#
|
||||||
|
# @see https://firebase.google.com/docs/remote-config/
|
||||||
|
module FirebaseremoteconfigV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170830'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,180 @@
|
||||||
|
# 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 FirebaseremoteconfigV1
|
||||||
|
|
||||||
|
# *
|
||||||
|
# The RemoteConfig consists of a list of conditions (which can be
|
||||||
|
# thought of as named "if" statements) and a map of parameters (parameter key
|
||||||
|
# to a stucture containing an optional default value, as well as a optional
|
||||||
|
# submap of (condition name to value when that condition is true).
|
||||||
|
class RemoteConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of named conditions. The order *does* affect the semantics.
|
||||||
|
# The condition_name values of these entries must be unique.
|
||||||
|
# The resolved value of a config parameter P is determined as follow:
|
||||||
|
# * Let Y be the set of values from the submap of P that refer to conditions
|
||||||
|
# that evaluate to <code>true</code>.
|
||||||
|
# * If Y is non empty, the value is taken from the specific submap in Y whose
|
||||||
|
# condition_name is the earliest in this condition list.
|
||||||
|
# * Else, if P has a default value option (condition_name is empty) then
|
||||||
|
# the value is taken from that option.
|
||||||
|
# * Else, parameter P has no value and is omitted from the config result.
|
||||||
|
# Example: parameter key "p1", default value "v1", submap specified as
|
||||||
|
# `"c1": v2, "c2": v3` where "c1" and "c2" are names of conditions in the
|
||||||
|
# condition list (where "c1" in this example appears before "c2"). The
|
||||||
|
# value of p1 would be v2 as long as c1 is true. Otherwise, if c2 is true,
|
||||||
|
# p1 would evaluate to v3, and if c1 and c2 are both false, p1 would evaluate
|
||||||
|
# to v1. If no default value was specified, and c1 and c2 were both false,
|
||||||
|
# no value for p1 would be generated.
|
||||||
|
# Corresponds to the JSON property `conditions`
|
||||||
|
# @return [Array<Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition>]
|
||||||
|
attr_accessor :conditions
|
||||||
|
|
||||||
|
# Map of parameter keys to their optional default values and optional submap
|
||||||
|
# of (condition name : value). Order doesn't affect semantics, and so is
|
||||||
|
# sorted by the server. The 'key' values of the params must be unique.
|
||||||
|
# Corresponds to the JSON property `parameters`
|
||||||
|
# @return [Hash<String,Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter>]
|
||||||
|
attr_accessor :parameters
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@conditions = args[:conditions] if args.key?(:conditions)
|
||||||
|
@parameters = args[:parameters] if args.key?(:parameters)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A single RemoteConfig Condition. A list of these (because order matters) are
|
||||||
|
# part of a single RemoteConfig template.
|
||||||
|
class RemoteConfigCondition
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required.
|
||||||
|
# Corresponds to the JSON property `expression`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :expression
|
||||||
|
|
||||||
|
# Required.
|
||||||
|
# A non empty and unique name of this condition.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Optional.
|
||||||
|
# The display (tag) color of this condition. This serves as part of a tag
|
||||||
|
# (in the future, we may add tag text as well as tag color, but that is not
|
||||||
|
# yet implemented in the UI).
|
||||||
|
# This value has no affect on the semantics of the delivered config and it
|
||||||
|
# is ignored by the backend, except for passing it through write/read
|
||||||
|
# requests.
|
||||||
|
# Not having this value or having the "CONDITION_DISPLAY_COLOR_UNSPECIFIED"
|
||||||
|
# value (0) have the same meaning: Let the UI choose any valid color when
|
||||||
|
# displaying the condition.
|
||||||
|
# Corresponds to the JSON property `tagColor`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :tag_color
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@expression = args[:expression] if args.key?(:expression)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@tag_color = args[:tag_color] if args.key?(:tag_color)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# While default_value and conditional_values are each optional, at least one of
|
||||||
|
# the two is required - otherwise, the parameter is meaningless (and an
|
||||||
|
# exception will be thrown by the validation logic).
|
||||||
|
class RemoteConfigParameter
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Optional - a map of (condition_name, value). The condition_name of the
|
||||||
|
# highest priority (the one listed first in the conditions array) determines
|
||||||
|
# the value of this parameter.
|
||||||
|
# Corresponds to the JSON property `conditionalValues`
|
||||||
|
# @return [Hash<String,Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue>]
|
||||||
|
attr_accessor :conditional_values
|
||||||
|
|
||||||
|
# A RemoteConfigParameter's "value" (either the default value, or the value
|
||||||
|
# associated with a condition name) is either a string, or the
|
||||||
|
# "use_in_app_default" indicator (which means to leave out the parameter from
|
||||||
|
# the returned <key, value> map that is the output of the parameter fetch).
|
||||||
|
# We represent the "use_in_app_default" as a bool, but (when using the boolean
|
||||||
|
# instead of the string) it should always be <code>true</code>.
|
||||||
|
# Corresponds to the JSON property `defaultValue`
|
||||||
|
# @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue]
|
||||||
|
attr_accessor :default_value
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@conditional_values = args[:conditional_values] if args.key?(:conditional_values)
|
||||||
|
@default_value = args[:default_value] if args.key?(:default_value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A RemoteConfigParameter's "value" (either the default value, or the value
|
||||||
|
# associated with a condition name) is either a string, or the
|
||||||
|
# "use_in_app_default" indicator (which means to leave out the parameter from
|
||||||
|
# the returned <key, value> map that is the output of the parameter fetch).
|
||||||
|
# We represent the "use_in_app_default" as a bool, but (when using the boolean
|
||||||
|
# instead of the string) it should always be <code>true</code>.
|
||||||
|
class RemoteConfigParameterValue
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# if true, omit the parameter from the map of fetched parameter values
|
||||||
|
# Corresponds to the JSON property `useInAppDefault`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :use_in_app_default
|
||||||
|
alias_method :use_in_app_default?, :use_in_app_default
|
||||||
|
|
||||||
|
# the string to set the parameter to
|
||||||
|
# Corresponds to the JSON property `value`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :value
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@use_in_app_default = args[:use_in_app_default] if args.key?(:use_in_app_default)
|
||||||
|
@value = args[:value] if args.key?(:value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,87 @@
|
||||||
|
# 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 FirebaseremoteconfigV1
|
||||||
|
|
||||||
|
class RemoteConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RemoteConfigCondition
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RemoteConfigParameter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RemoteConfigParameterValue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RemoteConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :conditions, as: 'conditions', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition::Representation
|
||||||
|
|
||||||
|
hash :parameters, as: 'parameters', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RemoteConfigCondition
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :expression, as: 'expression'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :tag_color, as: 'tagColor'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RemoteConfigParameter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :conditional_values, as: 'conditionalValues', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue::Representation
|
||||||
|
|
||||||
|
property :default_value, as: 'defaultValue', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RemoteConfigParameterValue
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :use_in_app_default, as: 'useInAppDefault'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,153 @@
|
||||||
|
# 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 FirebaseremoteconfigV1
|
||||||
|
# Firebase Remote Config API
|
||||||
|
#
|
||||||
|
# Firebase Remote Config API allows the 3P clients to manage Remote Config
|
||||||
|
# conditions and parameters for Firebase applications.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/firebaseremoteconfig_v1'
|
||||||
|
#
|
||||||
|
# Firebaseremoteconfig = Google::Apis::FirebaseremoteconfigV1 # Alias the module
|
||||||
|
# service = Firebaseremoteconfig::FirebaseRemoteConfigService.new
|
||||||
|
#
|
||||||
|
# @see https://firebase.google.com/docs/remote-config/
|
||||||
|
class FirebaseRemoteConfigService < 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://firebaseremoteconfig.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Get the latest version Remote Configuration for a project.
|
||||||
|
# Returns the RemoteConfig as the payload, and also the eTag as a
|
||||||
|
# response header.
|
||||||
|
# @param [String] project
|
||||||
|
# The GMP project identifier. Required.
|
||||||
|
# See note at the beginning of this file regarding project ids.
|
||||||
|
# @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::FirebaseremoteconfigV1::RemoteConfig] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfig]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_project_remote_config(project, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+project}/remoteConfig', options)
|
||||||
|
command.response_representation = Google::Apis::FirebaseremoteconfigV1::RemoteConfig::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaseremoteconfigV1::RemoteConfig
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update a RemoteConfig. We treat this as an always-existing
|
||||||
|
# resource (when it is not found in our data store, we treat it as version
|
||||||
|
# 0, a template with zero conditions and zero parameters). Hence there are
|
||||||
|
# no Create or Delete operations. Returns the updated template when
|
||||||
|
# successful (and the updated eTag as a response header), or an error if
|
||||||
|
# things go wrong.
|
||||||
|
# Possible error messages:
|
||||||
|
# * VALIDATION_ERROR (HTTP status 400) with additional details if the
|
||||||
|
# template being passed in can not be validated.
|
||||||
|
# * AUTHENTICATION_ERROR (HTTP status 401) if the request can not be
|
||||||
|
# authenticate (e.g. no access token, or invalid access token).
|
||||||
|
# * AUTHORIZATION_ERROR (HTTP status 403) if the request can not be
|
||||||
|
# authorized (e.g. the user has no access to the specified project id).
|
||||||
|
# * VERSION_MISMATCH (HTTP status 412) when trying to update when the
|
||||||
|
# expected eTag (passed in via the "If-match" header) is not specified, or
|
||||||
|
# is specified but does does not match the current eTag.
|
||||||
|
# * Internal error (HTTP status 500) for Database problems or other internal
|
||||||
|
# errors.
|
||||||
|
# @param [String] project
|
||||||
|
# The GMP project identifier. Required.
|
||||||
|
# See note at the beginning of this file regarding project ids.
|
||||||
|
# @param [Google::Apis::FirebaseremoteconfigV1::RemoteConfig] remote_config_object
|
||||||
|
# @param [Boolean] validate_only
|
||||||
|
# Optional. Defaults to <code>false</code> (UpdateRemoteConfig call should
|
||||||
|
# update the backend if there are no validation/interal errors). May be set
|
||||||
|
# to <code>true</code> to indicate that, should no validation errors occur,
|
||||||
|
# the call should return a "200 OK" instead of performing the update. Note
|
||||||
|
# that other error messages (500 Internal Error, 412 Version Mismatch, etc)
|
||||||
|
# may still result after flipping to <code>false</code>, even if getting a
|
||||||
|
# "200 OK" when calling with <code>true</code>.
|
||||||
|
# @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::FirebaseremoteconfigV1::RemoteConfig] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfig]
|
||||||
|
#
|
||||||
|
# @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 update_project_remote_config(project, remote_config_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v1/{+project}/remoteConfig', options)
|
||||||
|
command.request_representation = Google::Apis::FirebaseremoteconfigV1::RemoteConfig::Representation
|
||||||
|
command.request_object = remote_config_object
|
||||||
|
command.response_representation = Google::Apis::FirebaseremoteconfigV1::RemoteConfig::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaseremoteconfigV1::RemoteConfig
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.query['validateOnly'] = validate_only unless validate_only.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
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/monitoring/api/
|
# @see https://cloud.google.com/monitoring/api/
|
||||||
module MonitoringV3
|
module MonitoringV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20170806'
|
REVISION = '20170830'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -143,6 +143,72 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Describes the error status for payloads that were not written.
|
||||||
|
class CollectdPayloadError
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The Status type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
||||||
|
# (https://github.com/grpc). The error model is designed to be:
|
||||||
|
# Simple to use and understand for most users
|
||||||
|
# Flexible enough to meet unexpected needsOverviewThe 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 mappingThe 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 usesThe error model and the Status message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a consistent developer
|
||||||
|
# experience across different environments.Example uses of this error model
|
||||||
|
# include:
|
||||||
|
# Partial errors. If a service needs to return partial errors to the client, it
|
||||||
|
# may embed the Status in the normal response to indicate the partial errors.
|
||||||
|
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
||||||
|
# Status message for error reporting.
|
||||||
|
# Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# Status message should be used directly inside batch response, one for each
|
||||||
|
# error sub-response.
|
||||||
|
# Asynchronous operations. If an API call embeds asynchronous operation results
|
||||||
|
# in its response, the status of those operations should be represented directly
|
||||||
|
# using the Status message.
|
||||||
|
# Logging. If some API errors are stored in logs, the message Status could be
|
||||||
|
# used directly after any stripping needed for security/privacy reasons.
|
||||||
|
# Corresponds to the JSON property `error`
|
||||||
|
# @return [Google::Apis::MonitoringV3::Status]
|
||||||
|
attr_accessor :error
|
||||||
|
|
||||||
|
# The zero-based index in CreateCollectdTimeSeriesRequest.collectd_payloads.
|
||||||
|
# Corresponds to the JSON property `index`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :index
|
||||||
|
|
||||||
|
# Records the error status for values that were not written due to an error.
|
||||||
|
# Failed payloads for which nothing is written will not include partial value
|
||||||
|
# errors.
|
||||||
|
# Corresponds to the JSON property `valueErrors`
|
||||||
|
# @return [Array<Google::Apis::MonitoringV3::CollectdValueError>]
|
||||||
|
attr_accessor :value_errors
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@error = args[:error] if args.key?(:error)
|
||||||
|
@index = args[:index] if args.key?(:index)
|
||||||
|
@value_errors = args[:value_errors] if args.key?(:value_errors)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# A single data point from a collectd-based plugin.
|
# A single data point from a collectd-based plugin.
|
||||||
class CollectdValue
|
class CollectdValue
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -175,6 +241,65 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Describes the error status for values that were not written.
|
||||||
|
class CollectdValueError
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The Status type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
||||||
|
# (https://github.com/grpc). The error model is designed to be:
|
||||||
|
# Simple to use and understand for most users
|
||||||
|
# Flexible enough to meet unexpected needsOverviewThe 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 mappingThe 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 usesThe error model and the Status message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a consistent developer
|
||||||
|
# experience across different environments.Example uses of this error model
|
||||||
|
# include:
|
||||||
|
# Partial errors. If a service needs to return partial errors to the client, it
|
||||||
|
# may embed the Status in the normal response to indicate the partial errors.
|
||||||
|
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
||||||
|
# Status message for error reporting.
|
||||||
|
# Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# Status message should be used directly inside batch response, one for each
|
||||||
|
# error sub-response.
|
||||||
|
# Asynchronous operations. If an API call embeds asynchronous operation results
|
||||||
|
# in its response, the status of those operations should be represented directly
|
||||||
|
# using the Status message.
|
||||||
|
# Logging. If some API errors are stored in logs, the message Status could be
|
||||||
|
# used directly after any stripping needed for security/privacy reasons.
|
||||||
|
# Corresponds to the JSON property `error`
|
||||||
|
# @return [Google::Apis::MonitoringV3::Status]
|
||||||
|
attr_accessor :error
|
||||||
|
|
||||||
|
# The zero-based index in CollectdPayload.values within the parent
|
||||||
|
# CreateCollectdTimeSeriesRequest.collectd_payloads.
|
||||||
|
# Corresponds to the JSON property `index`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :index
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@error = args[:error] if args.key?(:error)
|
||||||
|
@index = args[:index] if args.key?(:index)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# The CreateCollectdTimeSeries request.
|
# The CreateCollectdTimeSeries request.
|
||||||
class CreateCollectdTimeSeriesRequest
|
class CreateCollectdTimeSeriesRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -220,6 +345,27 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The CreateCollectdTimeSeries response.
|
||||||
|
class CreateCollectdTimeSeriesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Records the error status for points that were not written due to an error.
|
||||||
|
# Failed requests for which nothing is written will return an error response
|
||||||
|
# instead.
|
||||||
|
# Corresponds to the JSON property `payloadErrors`
|
||||||
|
# @return [Array<Google::Apis::MonitoringV3::CollectdPayloadError>]
|
||||||
|
attr_accessor :payload_errors
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@payload_errors = args[:payload_errors] if args.key?(:payload_errors)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# The CreateTimeSeries request.
|
# The CreateTimeSeries request.
|
||||||
class CreateTimeSeriesRequest
|
class CreateTimeSeriesRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1122,6 +1268,73 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The Status type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
||||||
|
# (https://github.com/grpc). The error model is designed to be:
|
||||||
|
# Simple to use and understand for most users
|
||||||
|
# Flexible enough to meet unexpected needsOverviewThe 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 mappingThe 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 usesThe error model and the Status message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a consistent developer
|
||||||
|
# experience across different environments.Example uses of this error model
|
||||||
|
# include:
|
||||||
|
# Partial errors. If a service needs to return partial errors to the client, it
|
||||||
|
# may embed the Status in the normal response to indicate the partial errors.
|
||||||
|
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
||||||
|
# Status message for error reporting.
|
||||||
|
# Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# Status message should be used directly inside batch response, one for each
|
||||||
|
# error sub-response.
|
||||||
|
# Asynchronous operations. If an API call embeds asynchronous operation results
|
||||||
|
# in its response, the status of those operations should be represented directly
|
||||||
|
# using the Status message.
|
||||||
|
# Logging. If some API errors are stored in logs, the message Status could be
|
||||||
|
# used directly after any stripping needed for security/privacy reasons.
|
||||||
|
class Status
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The status code, which should be an enum value of google.rpc.Code.
|
||||||
|
# Corresponds to the JSON property `code`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :code
|
||||||
|
|
||||||
|
# A list of messages that carry the error details. There is a common set of
|
||||||
|
# message types for APIs to use.
|
||||||
|
# Corresponds to the JSON property `details`
|
||||||
|
# @return [Array<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
|
||||||
|
|
||||||
# A time interval extending just after a start time through an end time. If the
|
# A time interval extending just after a start time through an end time. If the
|
||||||
# start time is the same as the end time, then the interval represents a single
|
# start time is the same as the end time, then the interval represents a single
|
||||||
# point in time.
|
# point in time.
|
||||||
|
|
|
@ -34,18 +34,36 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CollectdPayloadError
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class CollectdValue
|
class CollectdValue
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CollectdValueError
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class CreateCollectdTimeSeriesRequest
|
class CreateCollectdTimeSeriesRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CreateCollectdTimeSeriesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class CreateTimeSeriesRequest
|
class CreateTimeSeriesRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -178,6 +196,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class TimeInterval
|
class TimeInterval
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -230,6 +254,17 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CollectdPayloadError
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :error, as: 'error', class: Google::Apis::MonitoringV3::Status, decorator: Google::Apis::MonitoringV3::Status::Representation
|
||||||
|
|
||||||
|
property :index, as: 'index'
|
||||||
|
collection :value_errors, as: 'valueErrors', class: Google::Apis::MonitoringV3::CollectdValueError, decorator: Google::Apis::MonitoringV3::CollectdValueError::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class CollectdValue
|
class CollectdValue
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -240,6 +275,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CollectdValueError
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :error, as: 'error', class: Google::Apis::MonitoringV3::Status, decorator: Google::Apis::MonitoringV3::Status::Representation
|
||||||
|
|
||||||
|
property :index, as: 'index'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class CreateCollectdTimeSeriesRequest
|
class CreateCollectdTimeSeriesRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -251,6 +295,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CreateCollectdTimeSeriesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :payload_errors, as: 'payloadErrors', class: Google::Apis::MonitoringV3::CollectdPayloadError, decorator: Google::Apis::MonitoringV3::CollectdPayloadError::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class CreateTimeSeriesRequest
|
class CreateTimeSeriesRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -463,6 +515,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class TimeInterval
|
class TimeInterval
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -65,10 +65,10 @@ module Google
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
# @yield [result, err] Result & error if block supplied
|
# @yield [result, err] Result & error if block supplied
|
||||||
# @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
|
# @yieldparam result [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesResponse] parsed result object
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
#
|
#
|
||||||
# @return [Google::Apis::MonitoringV3::Empty]
|
# @return [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesResponse]
|
||||||
#
|
#
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
@ -77,8 +77,8 @@ module Google
|
||||||
command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options)
|
command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options)
|
||||||
command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation
|
command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation
|
||||||
command.request_object = create_collectd_time_series_request_object
|
command.request_object = create_collectd_time_series_request_object
|
||||||
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
|
command.response_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesResponse::Representation
|
||||||
command.response_class = Google::Apis::MonitoringV3::Empty
|
command.response_class = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesResponse
|
||||||
command.params['name'] = name unless name.nil?
|
command.params['name'] = name unless name.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/service-control/
|
# @see https://cloud.google.com/service-control/
|
||||||
module ServicecontrolV1
|
module ServicecontrolV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170819'
|
REVISION = '20170828'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -257,13 +257,22 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :authority_selector
|
attr_accessor :authority_selector
|
||||||
|
|
||||||
# The email address of the authenticated user making the request.
|
# The email address of the authenticated user (or service account on behalf
|
||||||
# For privacy reasons, the principal email address is redacted for all
|
# of third party principal) making the request. For privacy reasons, the
|
||||||
# read-only operations that fail with a "permission denied" error.
|
# principal email address is redacted for all read-only operations that fail
|
||||||
|
# with a "permission denied" error.
|
||||||
# Corresponds to the JSON property `principalEmail`
|
# Corresponds to the JSON property `principalEmail`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :principal_email
|
attr_accessor :principal_email
|
||||||
|
|
||||||
|
# The third party identification (if any) of the authenticated user making
|
||||||
|
# the request.
|
||||||
|
# When the JSON object represented here has a proto equivalent, the proto
|
||||||
|
# name will be indicated in the `@type` property.
|
||||||
|
# Corresponds to the JSON property `thirdPartyPrincipal`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :third_party_principal
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -272,6 +281,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@authority_selector = args[:authority_selector] if args.key?(:authority_selector)
|
@authority_selector = args[:authority_selector] if args.key?(:authority_selector)
|
||||||
@principal_email = args[:principal_email] if args.key?(:principal_email)
|
@principal_email = args[:principal_email] if args.key?(:principal_email)
|
||||||
|
@third_party_principal = args[:third_party_principal] if args.key?(:third_party_principal)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -280,6 +280,7 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :authority_selector, as: 'authoritySelector'
|
property :authority_selector, as: 'authoritySelector'
|
||||||
property :principal_email, as: 'principalEmail'
|
property :principal_email, as: 'principalEmail'
|
||||||
|
hash :third_party_principal, as: 'thirdPartyPrincipal'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue