Autogenerated update (2018-06-30)
Update: - cloudfunctions_v1 - firestore_v1beta1 - jobs_v2 - servicemanagement_v1 - serviceuser_v1
This commit is contained in:
parent
c0f72bf000
commit
185caf367e
|
@ -13952,11 +13952,15 @@
|
|||
"/cloudfunctions:v1/CloudFunction/availableMemoryMb": available_memory_mb
|
||||
"/cloudfunctions:v1/CloudFunction/description": description
|
||||
"/cloudfunctions:v1/CloudFunction/entryPoint": entry_point
|
||||
"/cloudfunctions:v1/CloudFunction/environmentVariables": environment_variables
|
||||
"/cloudfunctions:v1/CloudFunction/environmentVariables/environment_variable": environment_variable
|
||||
"/cloudfunctions:v1/CloudFunction/eventTrigger": event_trigger
|
||||
"/cloudfunctions:v1/CloudFunction/httpsTrigger": https_trigger
|
||||
"/cloudfunctions:v1/CloudFunction/labels": labels
|
||||
"/cloudfunctions:v1/CloudFunction/labels/label": label
|
||||
"/cloudfunctions:v1/CloudFunction/maxInstances": max_instances
|
||||
"/cloudfunctions:v1/CloudFunction/name": name
|
||||
"/cloudfunctions:v1/CloudFunction/network": network
|
||||
"/cloudfunctions:v1/CloudFunction/runtime": runtime
|
||||
"/cloudfunctions:v1/CloudFunction/serviceAccountEmail": service_account_email
|
||||
"/cloudfunctions:v1/CloudFunction/sourceArchiveUrl": source_archive_url
|
||||
|
@ -56771,12 +56775,35 @@
|
|||
"/firestore:v1beta1/FieldReference": field_reference
|
||||
"/firestore:v1beta1/FieldReference/fieldPath": field_path
|
||||
"/firestore:v1beta1/FieldTransform": field_transform
|
||||
"/firestore:v1beta1/FieldTransform/appendMissingElements": append_missing_elements
|
||||
"/firestore:v1beta1/FieldTransform/fieldPath": field_path
|
||||
"/firestore:v1beta1/FieldTransform/removeAllFromArray": remove_all_from_array
|
||||
"/firestore:v1beta1/FieldTransform/setToServerValue": set_to_server_value
|
||||
"/firestore:v1beta1/Filter": filter
|
||||
"/firestore:v1beta1/Filter/compositeFilter": composite_filter
|
||||
"/firestore:v1beta1/Filter/fieldFilter": field_filter
|
||||
"/firestore:v1beta1/Filter/unaryFilter": unary_filter
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1Index": google_firestore_admin_v1beta1_index
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1Index/collectionId": collection_id
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1Index/fields": fields
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1Index/fields/field": field
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1Index/name": name
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1Index/state": state
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexField": google_firestore_admin_v1beta1_index_field
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexField/fieldPath": field_path
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1IndexField/mode": mode
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ListIndexesResponse": google_firestore_admin_v1beta1_list_indexes_response
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ListIndexesResponse/indexes": indexes
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ListIndexesResponse/indexes/index": index
|
||||
"/firestore:v1beta1/GoogleFirestoreAdminV1beta1ListIndexesResponse/nextPageToken": next_page_token
|
||||
"/firestore:v1beta1/GoogleLongrunningOperation": google_longrunning_operation
|
||||
"/firestore:v1beta1/GoogleLongrunningOperation/done": done
|
||||
"/firestore:v1beta1/GoogleLongrunningOperation/error": error
|
||||
"/firestore:v1beta1/GoogleLongrunningOperation/metadata": metadata
|
||||
"/firestore:v1beta1/GoogleLongrunningOperation/metadata/metadatum": metadatum
|
||||
"/firestore:v1beta1/GoogleLongrunningOperation/name": name
|
||||
"/firestore:v1beta1/GoogleLongrunningOperation/response": response
|
||||
"/firestore:v1beta1/GoogleLongrunningOperation/response/response": response
|
||||
"/firestore:v1beta1/Index": index
|
||||
"/firestore:v1beta1/Index/collectionId": collection_id
|
||||
"/firestore:v1beta1/Index/fields": fields
|
||||
|
@ -70697,11 +70724,16 @@
|
|||
"/servicemanagement:v1/MetricDescriptor/displayName": display_name
|
||||
"/servicemanagement:v1/MetricDescriptor/labels": labels
|
||||
"/servicemanagement:v1/MetricDescriptor/labels/label": label
|
||||
"/servicemanagement:v1/MetricDescriptor/metadata": metadata
|
||||
"/servicemanagement:v1/MetricDescriptor/metricKind": metric_kind
|
||||
"/servicemanagement:v1/MetricDescriptor/name": name
|
||||
"/servicemanagement:v1/MetricDescriptor/type": type
|
||||
"/servicemanagement:v1/MetricDescriptor/unit": unit
|
||||
"/servicemanagement:v1/MetricDescriptor/valueType": value_type
|
||||
"/servicemanagement:v1/MetricDescriptorMetadata": metric_descriptor_metadata
|
||||
"/servicemanagement:v1/MetricDescriptorMetadata/ingestDelay": ingest_delay
|
||||
"/servicemanagement:v1/MetricDescriptorMetadata/launchStage": launch_stage
|
||||
"/servicemanagement:v1/MetricDescriptorMetadata/samplePeriod": sample_period
|
||||
"/servicemanagement:v1/MetricRule": metric_rule
|
||||
"/servicemanagement:v1/MetricRule/metricCosts": metric_costs
|
||||
"/servicemanagement:v1/MetricRule/metricCosts/metric_cost": metric_cost
|
||||
|
@ -71018,6 +71050,11 @@
|
|||
"/serviceusage:v1/BackendRule/deadline": deadline
|
||||
"/serviceusage:v1/BackendRule/minDeadline": min_deadline
|
||||
"/serviceusage:v1/BackendRule/selector": selector
|
||||
"/serviceusage:v1/BatchEnableServicesResponse": batch_enable_services_response
|
||||
"/serviceusage:v1/BatchEnableServicesResponse/failures": failures
|
||||
"/serviceusage:v1/BatchEnableServicesResponse/failures/failure": failure
|
||||
"/serviceusage:v1/BatchEnableServicesResponse/services": services
|
||||
"/serviceusage:v1/BatchEnableServicesResponse/services/service": service
|
||||
"/serviceusage:v1/Billing": billing
|
||||
"/serviceusage:v1/Billing/consumerDestinations": consumer_destinations
|
||||
"/serviceusage:v1/Billing/consumerDestinations/consumer_destination": consumer_destination
|
||||
|
@ -71055,6 +71092,8 @@
|
|||
"/serviceusage:v1/CustomHttpPattern/kind": kind
|
||||
"/serviceusage:v1/CustomHttpPattern/path": path
|
||||
"/serviceusage:v1/DisableServiceRequest": disable_service_request
|
||||
"/serviceusage:v1/DisableServiceResponse": disable_service_response
|
||||
"/serviceusage:v1/DisableServiceResponse/service": service
|
||||
"/serviceusage:v1/Documentation": documentation
|
||||
"/serviceusage:v1/Documentation/documentationRootUrl": documentation_root_url
|
||||
"/serviceusage:v1/Documentation/overview": overview
|
||||
|
@ -71068,7 +71107,12 @@
|
|||
"/serviceusage:v1/DocumentationRule/description": description
|
||||
"/serviceusage:v1/DocumentationRule/selector": selector
|
||||
"/serviceusage:v1/Empty": empty
|
||||
"/serviceusage:v1/EnableFailure": enable_failure
|
||||
"/serviceusage:v1/EnableFailure/errorMessage": error_message
|
||||
"/serviceusage:v1/EnableFailure/serviceId": service_id
|
||||
"/serviceusage:v1/EnableServiceRequest": enable_service_request
|
||||
"/serviceusage:v1/EnableServiceResponse": enable_service_response
|
||||
"/serviceusage:v1/EnableServiceResponse/service": service
|
||||
"/serviceusage:v1/EnabledState": enabled_state
|
||||
"/serviceusage:v1/EnabledState/state": state
|
||||
"/serviceusage:v1/Endpoint": endpoint
|
||||
|
@ -71144,6 +71188,22 @@
|
|||
"/serviceusage:v1/GoogleApiService/types/type": type
|
||||
"/serviceusage:v1/GoogleApiService/usage": usage
|
||||
"/serviceusage:v1/GoogleApiService/visibility": visibility
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1Service": google_api_serviceusage_v1_service
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1Service/config": config
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1Service/name": name
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1Service/parent": parent
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1Service/state": state
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig": google_api_serviceusage_v1_service_config
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/apis": apis
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/apis/api": api
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/authentication": authentication
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/documentation": documentation
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/endpoints": endpoints
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/endpoints/endpoint": endpoint
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/name": name
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/quota": quota
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/title": title
|
||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/usage": usage
|
||||
"/serviceusage:v1/Http": http
|
||||
"/serviceusage:v1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion
|
||||
"/serviceusage:v1/Http/rules": rules
|
||||
|
@ -71223,11 +71283,16 @@
|
|||
"/serviceusage:v1/MetricDescriptor/displayName": display_name
|
||||
"/serviceusage:v1/MetricDescriptor/labels": labels
|
||||
"/serviceusage:v1/MetricDescriptor/labels/label": label
|
||||
"/serviceusage:v1/MetricDescriptor/metadata": metadata
|
||||
"/serviceusage:v1/MetricDescriptor/metricKind": metric_kind
|
||||
"/serviceusage:v1/MetricDescriptor/name": name
|
||||
"/serviceusage:v1/MetricDescriptor/type": type
|
||||
"/serviceusage:v1/MetricDescriptor/unit": unit
|
||||
"/serviceusage:v1/MetricDescriptor/valueType": value_type
|
||||
"/serviceusage:v1/MetricDescriptorMetadata": metric_descriptor_metadata
|
||||
"/serviceusage:v1/MetricDescriptorMetadata/ingestDelay": ingest_delay
|
||||
"/serviceusage:v1/MetricDescriptorMetadata/launchStage": launch_stage
|
||||
"/serviceusage:v1/MetricDescriptorMetadata/samplePeriod": sample_period
|
||||
"/serviceusage:v1/MetricRule": metric_rule
|
||||
"/serviceusage:v1/MetricRule/metricCosts": metric_costs
|
||||
"/serviceusage:v1/MetricRule/metricCosts/metric_cost": metric_cost
|
||||
|
@ -72036,11 +72101,16 @@
|
|||
"/serviceuser:v1/MetricDescriptor/displayName": display_name
|
||||
"/serviceuser:v1/MetricDescriptor/labels": labels
|
||||
"/serviceuser:v1/MetricDescriptor/labels/label": label
|
||||
"/serviceuser:v1/MetricDescriptor/metadata": metadata
|
||||
"/serviceuser:v1/MetricDescriptor/metricKind": metric_kind
|
||||
"/serviceuser:v1/MetricDescriptor/name": name
|
||||
"/serviceuser:v1/MetricDescriptor/type": type
|
||||
"/serviceuser:v1/MetricDescriptor/unit": unit
|
||||
"/serviceuser:v1/MetricDescriptor/valueType": value_type
|
||||
"/serviceuser:v1/MetricDescriptorMetadata": metric_descriptor_metadata
|
||||
"/serviceuser:v1/MetricDescriptorMetadata/ingestDelay": ingest_delay
|
||||
"/serviceuser:v1/MetricDescriptorMetadata/launchStage": launch_stage
|
||||
"/serviceuser:v1/MetricDescriptorMetadata/samplePeriod": sample_period
|
||||
"/serviceuser:v1/MetricRule": metric_rule
|
||||
"/serviceuser:v1/MetricRule/metricCosts": metric_costs
|
||||
"/serviceuser:v1/MetricRule/metricCosts/metric_cost": metric_cost
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/functions
|
||||
module CloudfunctionsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180619'
|
||||
REVISION = '20180622'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -100,6 +100,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :entry_point
|
||||
|
||||
# **Beta Feature**
|
||||
# Environment variables that shall be available during function execution.
|
||||
# Corresponds to the JSON property `environmentVariables`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :environment_variables
|
||||
|
||||
# Describes EventTrigger, used to request events be sent from another
|
||||
# service.
|
||||
# Corresponds to the JSON property `eventTrigger`
|
||||
|
@ -116,12 +122,34 @@ module Google
|
|||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The limit on the maximum number of function instances that may coexist at a
|
||||
# given time. This feature is currently in alpha, available only for
|
||||
# whitelisted users.
|
||||
# Corresponds to the JSON property `maxInstances`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_instances
|
||||
|
||||
# A user-defined name of the function. Function names must be unique
|
||||
# globally and match pattern `projects/*/locations/*/functions/*`
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The Google Compute Engine network that this function can connect to.
|
||||
# Either the fully-qualified URI of the network resource, or
|
||||
# the short name of the network must be specified. If the network belongs to
|
||||
# another project, the URI of the resource must be specified
|
||||
# e.g.,
|
||||
# `https://www.googleapis.com/compute/v1/projects/`project`/global/networks/`
|
||||
# network``
|
||||
# or `my-network`.
|
||||
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
|
||||
# more information on connecting Cloud projects.
|
||||
# This feature is currently in alpha, available only for whitelisted users.
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# The runtime in which the function is going to run. If empty, defaults to
|
||||
# Node.js 6.
|
||||
# Corresponds to the JSON property `runtime`
|
||||
|
@ -184,10 +212,13 @@ module Google
|
|||
@available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@entry_point = args[:entry_point] if args.key?(:entry_point)
|
||||
@environment_variables = args[:environment_variables] if args.key?(:environment_variables)
|
||||
@event_trigger = args[:event_trigger] if args.key?(:event_trigger)
|
||||
@https_trigger = args[:https_trigger] if args.key?(:https_trigger)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@max_instances = args[:max_instances] if args.key?(:max_instances)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
@runtime = args[:runtime] if args.key?(:runtime)
|
||||
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
||||
@source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
|
||||
|
|
|
@ -164,12 +164,15 @@ module Google
|
|||
property :available_memory_mb, as: 'availableMemoryMb'
|
||||
property :description, as: 'description'
|
||||
property :entry_point, as: 'entryPoint'
|
||||
hash :environment_variables, as: 'environmentVariables'
|
||||
property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV1::EventTrigger, decorator: Google::Apis::CloudfunctionsV1::EventTrigger::Representation
|
||||
|
||||
property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1::HttpsTrigger::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :max_instances, as: 'maxInstances'
|
||||
property :name, as: 'name'
|
||||
property :network, as: 'network'
|
||||
property :runtime, as: 'runtime'
|
||||
property :service_account_email, as: 'serviceAccountEmail'
|
||||
property :source_archive_url, as: 'sourceArchiveUrl'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/firestore
|
||||
module FirestoreV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20180605'
|
||||
REVISION = '20180626'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -660,12 +660,22 @@ module Google
|
|||
class FieldTransform
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An array value.
|
||||
# Corresponds to the JSON property `appendMissingElements`
|
||||
# @return [Google::Apis::FirestoreV1beta1::ArrayValue]
|
||||
attr_accessor :append_missing_elements
|
||||
|
||||
# The path of the field. See Document.fields for the field path syntax
|
||||
# reference.
|
||||
# Corresponds to the JSON property `fieldPath`
|
||||
# @return [String]
|
||||
attr_accessor :field_path
|
||||
|
||||
# An array value.
|
||||
# Corresponds to the JSON property `removeAllFromArray`
|
||||
# @return [Google::Apis::FirestoreV1beta1::ArrayValue]
|
||||
attr_accessor :remove_all_from_array
|
||||
|
||||
# Sets the field to the given server value.
|
||||
# Corresponds to the JSON property `setToServerValue`
|
||||
# @return [String]
|
||||
|
@ -677,7 +687,9 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@append_missing_elements = args[:append_missing_elements] if args.key?(:append_missing_elements)
|
||||
@field_path = args[:field_path] if args.key?(:field_path)
|
||||
@remove_all_from_array = args[:remove_all_from_array] if args.key?(:remove_all_from_array)
|
||||
@set_to_server_value = args[:set_to_server_value] if args.key?(:set_to_server_value)
|
||||
end
|
||||
end
|
||||
|
@ -714,7 +726,7 @@ module Google
|
|||
end
|
||||
|
||||
# An index definition.
|
||||
class Index
|
||||
class GoogleFirestoreAdminV1beta1Index
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The collection ID to which this index applies. Required.
|
||||
|
@ -724,7 +736,7 @@ module Google
|
|||
|
||||
# The fields to index.
|
||||
# Corresponds to the JSON property `fields`
|
||||
# @return [Array<Google::Apis::FirestoreV1beta1::IndexField>]
|
||||
# @return [Array<Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1IndexField>]
|
||||
attr_accessor :fields
|
||||
|
||||
# The resource name of the index.
|
||||
|
@ -753,7 +765,7 @@ module Google
|
|||
end
|
||||
|
||||
# A field of an index.
|
||||
class IndexField
|
||||
class GoogleFirestoreAdminV1beta1IndexField
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The path of the field. Must match the field path specification described
|
||||
|
@ -780,6 +792,128 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The response for FirestoreAdmin.ListIndexes.
|
||||
class GoogleFirestoreAdminV1beta1ListIndexesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The indexes.
|
||||
# Corresponds to the JSON property `indexes`
|
||||
# @return [Array<Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index>]
|
||||
attr_accessor :indexes
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@indexes = args[:indexes] if args.key?(:indexes)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class GoogleLongrunningOperation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the value is `false`, it means the operation is still in progress.
|
||||
# If `true`, the operation is completed, and either `error` or `response` is
|
||||
# available.
|
||||
# Corresponds to the JSON property `done`
|
||||
# @return [Boolean]
|
||||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::FirestoreV1beta1::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 have the format of `operations/some/unique/name`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The normal response of the operation in case of success. If the original
|
||||
# method returns no data on success, such as `Delete`, the response is
|
||||
# `google.protobuf.Empty`. If the original method is standard
|
||||
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
||||
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
||||
# is the original method name. For example, if the original method name
|
||||
# is `TakeSnapshot()`, the inferred response type is
|
||||
# `TakeSnapshotResponse`.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<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
|
||||
|
||||
# An object representing a latitude/longitude pair. This is expressed as a pair
|
||||
# of doubles representing degrees latitude and degrees longitude. Unless
|
||||
# specified otherwise, this must conform to the
|
||||
|
@ -885,31 +1019,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The response for FirestoreAdmin.ListIndexes.
|
||||
class ListIndexesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The indexes.
|
||||
# Corresponds to the JSON property `indexes`
|
||||
# @return [Array<Google::Apis::FirestoreV1beta1::Index>]
|
||||
attr_accessor :indexes
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@indexes = args[:indexes] if args.key?(:indexes)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# A request for Firestore.Listen
|
||||
class ListenRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1020,103 +1129,6 @@ module Google
|
|||
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). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::FirestoreV1beta1::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 have the format of `operations/some/unique/name`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The normal response of the operation in case of success. If the original
|
||||
# method returns no data on success, such as `Delete`, the response is
|
||||
# `google.protobuf.Empty`. If the original method is standard
|
||||
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
||||
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
||||
# is the original method name. For example, if the original method name
|
||||
# is `TakeSnapshot()`, the inferred response type is
|
||||
# `TakeSnapshotResponse`.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<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
|
||||
|
||||
# An order on a field.
|
||||
class Order
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -160,13 +160,25 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Index
|
||||
class GoogleFirestoreAdminV1beta1Index
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IndexField
|
||||
class GoogleFirestoreAdminV1beta1IndexField
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFirestoreAdminV1beta1ListIndexesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleLongrunningOperation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -196,12 +208,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListIndexesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListenRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -220,12 +226,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Order
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -534,7 +534,11 @@ module Google
|
|||
class FieldTransform
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :append_missing_elements, as: 'appendMissingElements', class: Google::Apis::FirestoreV1beta1::ArrayValue, decorator: Google::Apis::FirestoreV1beta1::ArrayValue::Representation
|
||||
|
||||
property :field_path, as: 'fieldPath'
|
||||
property :remove_all_from_array, as: 'removeAllFromArray', class: Google::Apis::FirestoreV1beta1::ArrayValue, decorator: Google::Apis::FirestoreV1beta1::ArrayValue::Representation
|
||||
|
||||
property :set_to_server_value, as: 'setToServerValue'
|
||||
end
|
||||
end
|
||||
|
@ -551,18 +555,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Index
|
||||
class GoogleFirestoreAdminV1beta1Index
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :collection_id, as: 'collectionId'
|
||||
collection :fields, as: 'fields', class: Google::Apis::FirestoreV1beta1::IndexField, decorator: Google::Apis::FirestoreV1beta1::IndexField::Representation
|
||||
collection :fields, as: 'fields', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1IndexField, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1IndexField::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
class IndexField
|
||||
class GoogleFirestoreAdminV1beta1IndexField
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :field_path, as: 'fieldPath'
|
||||
|
@ -570,6 +574,27 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleFirestoreAdminV1beta1ListIndexesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :indexes, as: 'indexes', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleLongrunningOperation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::FirestoreV1beta1::Status, decorator: Google::Apis::FirestoreV1beta1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class LatLng
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -603,15 +628,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListIndexesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :indexes, as: 'indexes', class: Google::Apis::FirestoreV1beta1::Index, decorator: Google::Apis::FirestoreV1beta1::Index::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListenRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -646,18 +662,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::FirestoreV1beta1::Status, decorator: Google::Apis::FirestoreV1beta1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class Order
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -587,7 +587,7 @@ module Google
|
|||
# @param [String] parent
|
||||
# The name of the database this index will apply to. For example:
|
||||
# `projects/`project_id`/databases/`database_id``
|
||||
# @param [Google::Apis::FirestoreV1beta1::Index] index_object
|
||||
# @param [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index] google_firestore_admin_v1beta1_index_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -597,20 +597,20 @@ module Google
|
|||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FirestoreV1beta1::Operation] parsed result object
|
||||
# @yieldparam result [Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirestoreV1beta1::Operation]
|
||||
# @return [Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_database_index(parent, index_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def create_project_database_index(parent, google_firestore_admin_v1beta1_index_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+parent}/indexes', options)
|
||||
command.request_representation = Google::Apis::FirestoreV1beta1::Index::Representation
|
||||
command.request_object = index_object
|
||||
command.response_representation = Google::Apis::FirestoreV1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::FirestoreV1beta1::Operation
|
||||
command.request_representation = Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index::Representation
|
||||
command.request_object = google_firestore_admin_v1beta1_index_object
|
||||
command.response_representation = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
|
@ -661,18 +661,18 @@ module Google
|
|||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FirestoreV1beta1::Index] parsed result object
|
||||
# @yieldparam result [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirestoreV1beta1::Index]
|
||||
# @return [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index]
|
||||
#
|
||||
# @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_database_index(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FirestoreV1beta1::Index::Representation
|
||||
command.response_class = Google::Apis::FirestoreV1beta1::Index
|
||||
command.response_representation = Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index::Representation
|
||||
command.response_class = Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
|
@ -697,18 +697,18 @@ module Google
|
|||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FirestoreV1beta1::ListIndexesResponse] parsed result object
|
||||
# @yieldparam result [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ListIndexesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirestoreV1beta1::ListIndexesResponse]
|
||||
# @return [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ListIndexesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_database_indexes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+parent}/indexes', options)
|
||||
command.response_representation = Google::Apis::FirestoreV1beta1::ListIndexesResponse::Representation
|
||||
command.response_class = Google::Apis::FirestoreV1beta1::ListIndexesResponse
|
||||
command.response_representation = Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ListIndexesResponse::Representation
|
||||
command.response_class = Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ListIndexesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/job-discovery/docs
|
||||
module JobsV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180612'
|
||||
REVISION = '20180627'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -816,10 +816,10 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required.
|
||||
# Specifies the custom field key to perform a histogram on. If
|
||||
# specified without `long_value_buckets` or `long_value_min_max`, a
|
||||
# histogram on string values of the given `key` is triggered,
|
||||
# otherwise histogram is performed on long values.
|
||||
# Specifies the custom field key to perform a histogram on. If specified
|
||||
# without `long_value_histogram_bucketing_option`, histogram on string values
|
||||
# of the given `key` is triggered, otherwise histogram is performed on long
|
||||
# values.
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
@ -2312,7 +2312,7 @@ module Google
|
|||
# Optional.
|
||||
# The employment type filter specifies the employment type of jobs to
|
||||
# search against, such as EmploymentType.FULL_TIME.
|
||||
# If a value is not specified, jobs in the search results includes any
|
||||
# If a value is not specified, jobs in the search results include any
|
||||
# employment type.
|
||||
# If multiple values are specified, jobs in the search results include
|
||||
# any of the specified employment types.
|
||||
|
@ -2336,7 +2336,7 @@ module Google
|
|||
# Optional.
|
||||
# The location filter specifies geo-regions containing the jobs to
|
||||
# search against. See LocationFilter for more information.
|
||||
# If a location value isn'tt specified, jobs fitting the other search
|
||||
# If a location value isn't specified, jobs fitting the other search
|
||||
# criteria are retrieved regardless of where they're located.
|
||||
# If multiple values are specified, jobs are retrieved from any of the
|
||||
# specified locations, and, if different values are specified
|
||||
|
@ -2535,8 +2535,9 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional.
|
||||
# The distance from the address in miles to search.
|
||||
# The default distance is 20 miles and maximum distance is 5,000 miles.
|
||||
# The distance_in_miles is applied when the location being searched for is
|
||||
# identified as a city or smaller. When the location being searched for is a
|
||||
# state or larger, this field is ignored.
|
||||
# Corresponds to the JSON property `distanceInMiles`
|
||||
# @return [Float]
|
||||
attr_accessor :distance_in_miles
|
||||
|
@ -2927,8 +2928,8 @@ module Google
|
|||
# job board www.foo.com and career site www.bar.com, then this field is
|
||||
# set to "foo.com" for use on the job board, and "bar.com" for use on the
|
||||
# career site.
|
||||
# If this field is not available for some reason, send "UNKNOWN". Note that any
|
||||
# improvements to the `` api_name `` model for a particular tenant site, rely on
|
||||
# If this field is not available for some reason, send "UNKNOWN". Note that
|
||||
# any improvements to the service model for a particular tenant site rely on
|
||||
# this field being set correctly to some domain.
|
||||
# Corresponds to the JSON property `domain`
|
||||
# @return [String]
|
||||
|
@ -2940,7 +2941,7 @@ module Google
|
|||
# Obfuscate this field for privacy concerns before
|
||||
# providing it to the API.
|
||||
# If this field is not available for some reason, please send "UNKNOWN". Note
|
||||
# that any improvements to the `` api_name `` model for a particular tenant site,
|
||||
# that any improvements to the service model for a particular tenant site,
|
||||
# rely on this field being set correctly to some unique session_id.
|
||||
# Corresponds to the JSON property `sessionId`
|
||||
# @return [String]
|
||||
|
@ -2953,7 +2954,7 @@ module Google
|
|||
# Obfuscate this field for privacy concerns before
|
||||
# providing it to the service.
|
||||
# If this field is not available for some reason, please send "UNKNOWN". Note
|
||||
# that any improvements to the `` api_name `` model for a particular tenant site,
|
||||
# that any improvements to the service model for a particular tenant site,
|
||||
# rely on this field being set correctly to some unique user_id.
|
||||
# Corresponds to the JSON property `userId`
|
||||
# @return [String]
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-management/
|
||||
module ServicemanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180612'
|
||||
REVISION = '20180622'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -2397,6 +2397,11 @@ module Google
|
|||
# @return [Array<Google::Apis::ServicemanagementV1::LabelDescriptor>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::ServicemanagementV1::MetricDescriptorMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Whether the metric records instantaneous values, changes to a value, etc.
|
||||
# Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
# Corresponds to the JSON property `metricKind`
|
||||
|
@ -2489,6 +2494,7 @@ module Google
|
|||
@description = args[:description] if args.key?(:description)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
|
@ -2497,6 +2503,42 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
class MetricDescriptorMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The delay of data points caused by ingestion. Data points older than this
|
||||
# age are guaranteed to be ingested and available to be read, excluding
|
||||
# data loss due to errors.
|
||||
# Corresponds to the JSON property `ingestDelay`
|
||||
# @return [String]
|
||||
attr_accessor :ingest_delay
|
||||
|
||||
# The launch stage of the metric definition.
|
||||
# Corresponds to the JSON property `launchStage`
|
||||
# @return [String]
|
||||
attr_accessor :launch_stage
|
||||
|
||||
# The sampling period of metric data points. For metrics which are written
|
||||
# periodically, consecutive data points are stored at this time interval,
|
||||
# excluding data loss due to errors. Metrics with a higher granularity have
|
||||
# a smaller sampling period.
|
||||
# Corresponds to the JSON property `samplePeriod`
|
||||
# @return [String]
|
||||
attr_accessor :sample_period
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@ingest_delay = args[:ingest_delay] if args.key?(:ingest_delay)
|
||||
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
||||
@sample_period = args[:sample_period] if args.key?(:sample_period)
|
||||
end
|
||||
end
|
||||
|
||||
# Bind API methods to metrics. Binding a method to a metric causes that
|
||||
# metric's configured quota behaviors to apply to the method call.
|
||||
class MetricRule
|
||||
|
|
|
@ -346,6 +346,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -1061,6 +1067,8 @@ module Google
|
|||
property :display_name, as: 'displayName'
|
||||
collection :labels, as: 'labels', class: Google::Apis::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation
|
||||
|
||||
property :metadata, as: 'metadata', class: Google::Apis::ServicemanagementV1::MetricDescriptorMetadata, decorator: Google::Apis::ServicemanagementV1::MetricDescriptorMetadata::Representation
|
||||
|
||||
property :metric_kind, as: 'metricKind'
|
||||
property :name, as: 'name'
|
||||
property :type, as: 'type'
|
||||
|
@ -1069,6 +1077,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ingest_delay, as: 'ingestDelay'
|
||||
property :launch_stage, as: 'launchStage'
|
||||
property :sample_period, as: 'samplePeriod'
|
||||
end
|
||||
end
|
||||
|
||||
class MetricRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
# 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/serviceusage_v1/service.rb'
|
||||
require 'google/apis/serviceusage_v1/classes.rb'
|
||||
require 'google/apis/serviceusage_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Service Usage API
|
||||
#
|
||||
# Enables services that service consumers want to use on Google Cloud Platform,
|
||||
# lists the available or enabled services, or disables services that service
|
||||
# consumers no longer use.
|
||||
#
|
||||
# @see https://cloud.google.com/service-usage/
|
||||
module ServiceusageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180627'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# Manage your Google API service configuration
|
||||
AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,215 @@
|
|||
# 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 ServiceusageV1
|
||||
# Service Usage API
|
||||
#
|
||||
# Enables services that service consumers want to use on Google Cloud Platform,
|
||||
# lists the available or enabled services, or disables services that service
|
||||
# consumers no longer use.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/serviceusage_v1'
|
||||
#
|
||||
# Serviceusage = Google::Apis::ServiceusageV1 # Alias the module
|
||||
# service = Serviceusage::ServiceUsageService.new
|
||||
#
|
||||
# @see https://cloud.google.com/service-usage/
|
||||
class ServiceUsageService < 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://serviceusage.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 [Google::Apis::ServiceusageV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ServiceusageV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServiceusageV1::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_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::ServiceusageV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::ServiceusageV1::Empty::Representation
|
||||
command.response_class = Google::Apis::ServiceusageV1::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::ServiceusageV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServiceusageV1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ServiceusageV1::Empty::Representation
|
||||
command.response_class = Google::Apis::ServiceusageV1::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::ServiceusageV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServiceusageV1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ServiceusageV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ServiceusageV1::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] filter
|
||||
# The standard list filter.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @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::ServiceusageV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServiceusageV1::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_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/operations', options)
|
||||
command.response_representation = Google::Apis::ServiceusageV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::ServiceusageV1::ListOperationsResponse
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['name'] = name unless name.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
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-management/
|
||||
module ServiceuserV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180621'
|
||||
REVISION = '20180622'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1800,6 +1800,11 @@ module Google
|
|||
# @return [Array<Google::Apis::ServiceuserV1::LabelDescriptor>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::ServiceuserV1::MetricDescriptorMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Whether the metric records instantaneous values, changes to a value, etc.
|
||||
# Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
# Corresponds to the JSON property `metricKind`
|
||||
|
@ -1892,6 +1897,7 @@ module Google
|
|||
@description = args[:description] if args.key?(:description)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
|
@ -1900,6 +1906,42 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
class MetricDescriptorMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The delay of data points caused by ingestion. Data points older than this
|
||||
# age are guaranteed to be ingested and available to be read, excluding
|
||||
# data loss due to errors.
|
||||
# Corresponds to the JSON property `ingestDelay`
|
||||
# @return [String]
|
||||
attr_accessor :ingest_delay
|
||||
|
||||
# The launch stage of the metric definition.
|
||||
# Corresponds to the JSON property `launchStage`
|
||||
# @return [String]
|
||||
attr_accessor :launch_stage
|
||||
|
||||
# The sampling period of metric data points. For metrics which are written
|
||||
# periodically, consecutive data points are stored at this time interval,
|
||||
# excluding data loss due to errors. Metrics with a higher granularity have
|
||||
# a smaller sampling period.
|
||||
# Corresponds to the JSON property `samplePeriod`
|
||||
# @return [String]
|
||||
attr_accessor :sample_period
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@ingest_delay = args[:ingest_delay] if args.key?(:ingest_delay)
|
||||
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
||||
@sample_period = args[:sample_period] if args.key?(:sample_period)
|
||||
end
|
||||
end
|
||||
|
||||
# Bind API methods to metrics. Binding a method to a metric causes that
|
||||
# metric's configured quota behaviors to apply to the method call.
|
||||
class MetricRule
|
||||
|
|
|
@ -238,6 +238,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -756,6 +762,8 @@ module Google
|
|||
property :display_name, as: 'displayName'
|
||||
collection :labels, as: 'labels', class: Google::Apis::ServiceuserV1::LabelDescriptor, decorator: Google::Apis::ServiceuserV1::LabelDescriptor::Representation
|
||||
|
||||
property :metadata, as: 'metadata', class: Google::Apis::ServiceuserV1::MetricDescriptorMetadata, decorator: Google::Apis::ServiceuserV1::MetricDescriptorMetadata::Representation
|
||||
|
||||
property :metric_kind, as: 'metricKind'
|
||||
property :name, as: 'name'
|
||||
property :type, as: 'type'
|
||||
|
@ -764,6 +772,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ingest_delay, as: 'ingestDelay'
|
||||
property :launch_stage, as: 'launchStage'
|
||||
property :sample_period, as: 'samplePeriod'
|
||||
end
|
||||
end
|
||||
|
||||
class MetricRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
Loading…
Reference in New Issue