Autogenerated update (2019-11-22)
Delete: - storage_v1beta1 Update: - appengine_v1 - appengine_v1beta - bigqueryconnection_v1beta1 - bigtableadmin_v2 - cloudbuild_v1alpha1 - cloudfunctions_v1 - containeranalysis_v1alpha1 - containeranalysis_v1beta1 - datacatalog_v1beta1 - pubsub_v1 - pubsub_v1beta2 - remotebuildexecution_v1 - remotebuildexecution_v1alpha - run_v1alpha1 - servicecontrol_v1
This commit is contained in:
parent
67c6afc01e
commit
ad7caecb9c
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191106'
|
||||
REVISION = '20191114'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -2231,7 +2231,7 @@ module Google
|
|||
# application that handles customer requests might include separate services to
|
||||
# handle tasks such as backend data analysis or API requests from mobile devices.
|
||||
# Each service has a collection of versions that define a specific set of code
|
||||
# used to implement the functionality of that service. Next tag: 6
|
||||
# used to implement the functionality of that service.
|
||||
class Service
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20191106'
|
||||
REVISION = '20191114'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -2348,7 +2348,7 @@ module Google
|
|||
# application that handles customer requests might include separate services to
|
||||
# handle tasks such as backend data analysis or API requests from mobile devices.
|
||||
# Each service has a collection of versions that define a specific set of code
|
||||
# used to implement the functionality of that service. Next tag: 6
|
||||
# used to implement the functionality of that service.
|
||||
class Service
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryconnectionV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20191105'
|
||||
REVISION = '20191113'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -162,23 +162,6 @@ module Google
|
|||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
# * `group:`emailid``: An email address that represents a Google group.
|
||||
# For example, `admins@example.com`.
|
||||
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||
# identifier) representing a user that has been recently deleted. For
|
||||
# example,`alice@example.com?uid=123456789012345678901`. If the user is
|
||||
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
||||
# retains the role in the binding.
|
||||
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
||||
# unique identifier) representing a service account that has been recently
|
||||
# deleted. For example,
|
||||
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||
# If the service account is undeleted, this value reverts to
|
||||
# `serviceAccount:`emailid`` and the undeleted service account retains the
|
||||
# role in the binding.
|
||||
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||
# identifier) representing a Google group that has been recently
|
||||
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
||||
# the group is recovered, this value reverts to `group:`emailid`` and the
|
||||
# recovered group retains the role in the binding.
|
||||
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
||||
# users of that domain. For example, `google.com` or `example.com`.
|
||||
# Corresponds to the JSON property `members`
|
||||
|
@ -544,8 +527,8 @@ module Google
|
|||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
|
||||
# 'setIamPolicy' will not fail even if either of incoming or stored policy
|
||||
# does not meet the version requirements.
|
||||
# 'setIamPolicy' will not fail even if the incoming policy version does not
|
||||
# meet the requirements for modifying the stored policy.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -556,11 +539,12 @@ module Google
|
|||
# rejected.
|
||||
# Operations affecting conditional bindings must specify version 3. This can
|
||||
# be either setting a conditional policy, modifying a conditional binding,
|
||||
# or removing a conditional binding from the stored conditional policy.
|
||||
# or removing a binding (conditional or unconditional) from the stored
|
||||
# conditional policy.
|
||||
# Operations on non-conditional policies may specify any valid value or
|
||||
# leave the field unset.
|
||||
# If no etag is provided in the call to `setIamPolicy`, any version
|
||||
# compliance checks on the incoming and/or stored policy is skipped.
|
||||
# If no etag is provided in the call to `setIamPolicy`, version compliance
|
||||
# checks against the stored policy is skipped.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigtable/
|
||||
module BigtableadminV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20191022'
|
||||
REVISION = '20191102'
|
||||
|
||||
# Administer your Cloud Bigtable tables and clusters
|
||||
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
|
||||
|
|
|
@ -1145,7 +1145,7 @@ module Google
|
|||
# The value of `next_page_token` returned by a previous call.
|
||||
# @param [String] view
|
||||
# The view to be applied to the returned tables' fields.
|
||||
# Defaults to `NAME_ONLY` if unspecified; no others are currently supported.
|
||||
# Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/billingbudgets_v1beta1/service.rb'
|
||||
require 'google/apis/billingbudgets_v1beta1/classes.rb'
|
||||
require 'google/apis/billingbudgets_v1beta1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud Billing Budget API
|
||||
#
|
||||
# The Cloud Billing Budget API stores Cloud Billing budgets, which define a
|
||||
# budget plan and the rules to execute as spend is tracked against that plan.
|
||||
#
|
||||
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
|
||||
module BillingbudgetsV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20191118'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,392 @@
|
|||
# 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 BillingbudgetsV1beta1
|
||||
|
||||
# AllUpdatesRule defines notifications that are sent on every update to the
|
||||
# billing account's spend, regardless of the thresholds defined using
|
||||
# threshold rules.
|
||||
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. The name of the Cloud Pub/Sub topic where budget related messages
|
||||
# will be
|
||||
# published, in the form `projects/`project_id`/topics/`topic_id``. Updates
|
||||
# are sent at regular intervals to the topic.
|
||||
# The topic needs to be created before the budget is created; see
|
||||
# https://cloud.google.com/billing/docs/how-to/budgets#manage-notifications
|
||||
# for more details.
|
||||
# Caller is expected to have
|
||||
# `pubsub.topics.setIamPolicy` permission on the topic when it's set for a
|
||||
# budget, otherwise, the API call will fail with PERMISSION_DENIED. See
|
||||
# https://cloud.google.com/pubsub/docs/access-control for more details on
|
||||
# Pub/Sub roles and permissions.
|
||||
# Corresponds to the JSON property `pubsubTopic`
|
||||
# @return [String]
|
||||
attr_accessor :pubsub_topic
|
||||
|
||||
# Required. The schema version of the notification.
|
||||
# Only "1.0" is accepted. It represents the JSON schema as defined in
|
||||
# https://cloud.google.com/billing/docs/how-to/budgets#notification_format
|
||||
# Corresponds to the JSON property `schemaVersion`
|
||||
# @return [String]
|
||||
attr_accessor :schema_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
|
||||
@schema_version = args[:schema_version] if args.key?(:schema_version)
|
||||
end
|
||||
end
|
||||
|
||||
# A budget is a plan that describes what you expect to spend on Cloud
|
||||
# projects, plus the rules to execute as spend is tracked against that plan,
|
||||
# (for example, send an alert when 90% of the target spend is met).
|
||||
# Currently all plans are monthly budgets so the usage period(s) tracked are
|
||||
# implied (calendar months of usage back-to-back).
|
||||
class GoogleCloudBillingBudgetsV1beta1Budget
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# AllUpdatesRule defines notifications that are sent on every update to the
|
||||
# billing account's spend, regardless of the thresholds defined using
|
||||
# threshold rules.
|
||||
# Corresponds to the JSON property `allUpdatesRule`
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule]
|
||||
attr_accessor :all_updates_rule
|
||||
|
||||
# The budgeted amount for each usage period.
|
||||
# Corresponds to the JSON property `amount`
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1BudgetAmount]
|
||||
attr_accessor :amount
|
||||
|
||||
# A filter for a budget, limiting the scope of the cost to calculate.
|
||||
# Corresponds to the JSON property `budgetFilter`
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Filter]
|
||||
attr_accessor :budget_filter
|
||||
|
||||
# User data for display name in UI.
|
||||
# Validation: <= 60 chars.
|
||||
# Corresponds to the JSON property `displayName`
|
||||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Optional. Etag to validate that the object is unchanged for a
|
||||
# read-modify-write operation.
|
||||
# An empty etag will cause an update to overwrite other changes.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Output only. Resource name of the budget.
|
||||
# The resource name implies the scope of a budget. Values are of the form
|
||||
# `billingAccounts/`billingAccountId`/budgets/`budgetId``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Required. Rules that trigger alerts (notifications of thresholds
|
||||
# being crossed) when spend exceeds the specified percentages of the budget.
|
||||
# Corresponds to the JSON property `thresholdRules`
|
||||
# @return [Array<Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ThresholdRule>]
|
||||
attr_accessor :threshold_rules
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@all_updates_rule = args[:all_updates_rule] if args.key?(:all_updates_rule)
|
||||
@amount = args[:amount] if args.key?(:amount)
|
||||
@budget_filter = args[:budget_filter] if args.key?(:budget_filter)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@threshold_rules = args[:threshold_rules] if args.key?(:threshold_rules)
|
||||
end
|
||||
end
|
||||
|
||||
# The budgeted amount for each usage period.
|
||||
class GoogleCloudBillingBudgetsV1beta1BudgetAmount
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Describes a budget amount targeted to last period's spend.
|
||||
# At this time, the amount is automatically 100% of last period's spend;
|
||||
# that is, there are no other options yet.
|
||||
# Future configuration will be described here (for example, configuring a
|
||||
# percentage of last period's spend).
|
||||
# Corresponds to the JSON property `lastPeriodAmount`
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1LastPeriodAmount]
|
||||
attr_accessor :last_period_amount
|
||||
|
||||
# Represents an amount of money with its currency type.
|
||||
# Corresponds to the JSON property `specifiedAmount`
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleTypeMoney]
|
||||
attr_accessor :specified_amount
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@last_period_amount = args[:last_period_amount] if args.key?(:last_period_amount)
|
||||
@specified_amount = args[:specified_amount] if args.key?(:specified_amount)
|
||||
end
|
||||
end
|
||||
|
||||
# Request for CreateBudget
|
||||
class GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A budget is a plan that describes what you expect to spend on Cloud
|
||||
# projects, plus the rules to execute as spend is tracked against that plan,
|
||||
# (for example, send an alert when 90% of the target spend is met).
|
||||
# Currently all plans are monthly budgets so the usage period(s) tracked are
|
||||
# implied (calendar months of usage back-to-back).
|
||||
# Corresponds to the JSON property `budget`
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
|
||||
attr_accessor :budget
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@budget = args[:budget] if args.key?(:budget)
|
||||
end
|
||||
end
|
||||
|
||||
# A filter for a budget, limiting the scope of the cost to calculate.
|
||||
class GoogleCloudBillingBudgetsV1beta1Filter
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
|
||||
# Corresponds to the JSON property `creditTypesTreatment`
|
||||
# @return [String]
|
||||
attr_accessor :credit_types_treatment
|
||||
|
||||
# Optional. A set of projects of the form `projects/`project_id``,
|
||||
# specifying that usage from only this set of projects should be
|
||||
# included in the budget. If omitted, the report will include all usage for
|
||||
# the billing account, regardless of which project the usage occurred on.
|
||||
# Only zero or one project can be specified currently.
|
||||
# Corresponds to the JSON property `projects`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :projects
|
||||
|
||||
# Optional. A set of services of the form `services/`service_id``,
|
||||
# specifying that usage from only this set of services should be
|
||||
# included in the budget. If omitted, the report will include usage for
|
||||
# all the services.
|
||||
# The service names are available through the Catalog API:
|
||||
# https://cloud.google.com/billing/v1/how-tos/catalog-api.
|
||||
# Corresponds to the JSON property `services`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :services
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment)
|
||||
@projects = args[:projects] if args.key?(:projects)
|
||||
@services = args[:services] if args.key?(:services)
|
||||
end
|
||||
end
|
||||
|
||||
# Describes a budget amount targeted to last period's spend.
|
||||
# At this time, the amount is automatically 100% of last period's spend;
|
||||
# that is, there are no other options yet.
|
||||
# Future configuration will be described here (for example, configuring a
|
||||
# percentage of last period's spend).
|
||||
class GoogleCloudBillingBudgetsV1beta1LastPeriodAmount
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Response for ListBudgets
|
||||
class GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of the budgets owned by the requested billing account.
|
||||
# Corresponds to the JSON property `budgets`
|
||||
# @return [Array<Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget>]
|
||||
attr_accessor :budgets
|
||||
|
||||
# If not empty, indicates that there may be more budgets that match the
|
||||
# request; this value should be passed in a new `ListBudgetsRequest`.
|
||||
# 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)
|
||||
@budgets = args[:budgets] if args.key?(:budgets)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# ThresholdRule contains a definition of a threshold which triggers
|
||||
# an alert (a notification of a threshold being crossed) to be sent when
|
||||
# spend goes above the specified amount.
|
||||
# Alerts are automatically e-mailed to users with the Billing Account
|
||||
# Administrator role or the Billing Account User role.
|
||||
# The thresholds here have no effect on notifications sent to anything
|
||||
# configured under `Budget.all_updates_rule`.
|
||||
class GoogleCloudBillingBudgetsV1beta1ThresholdRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The type of basis used to determine if spend has passed the
|
||||
# threshold. Behavior defaults to CURRENT_SPEND if not set.
|
||||
# Corresponds to the JSON property `spendBasis`
|
||||
# @return [String]
|
||||
attr_accessor :spend_basis
|
||||
|
||||
# Required. Send an alert when this threshold is exceeded.
|
||||
# This is a 1.0-based percentage, so 0.5 = 50%.
|
||||
# Validation: non-negative number.
|
||||
# Corresponds to the JSON property `thresholdPercent`
|
||||
# @return [Float]
|
||||
attr_accessor :threshold_percent
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@spend_basis = args[:spend_basis] if args.key?(:spend_basis)
|
||||
@threshold_percent = args[:threshold_percent] if args.key?(:threshold_percent)
|
||||
end
|
||||
end
|
||||
|
||||
# Request for UpdateBudget
|
||||
class GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A budget is a plan that describes what you expect to spend on Cloud
|
||||
# projects, plus the rules to execute as spend is tracked against that plan,
|
||||
# (for example, send an alert when 90% of the target spend is met).
|
||||
# Currently all plans are monthly budgets so the usage period(s) tracked are
|
||||
# implied (calendar months of usage back-to-back).
|
||||
# Corresponds to the JSON property `budget`
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
|
||||
attr_accessor :budget
|
||||
|
||||
# Optional. Indicates which fields in the provided budget to update.
|
||||
# Read-only fields (such as `name`) cannot be changed. If this is not
|
||||
# provided, then only fields with non-default values from the request are
|
||||
# updated. See
|
||||
# https://developers.google.com/protocol-buffers/docs/proto3#default for more
|
||||
# details about default values.
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@budget = args[:budget] if args.key?(:budget)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated
|
||||
# empty messages in your APIs. A typical example is to use it as the request
|
||||
# or the response type of an API method. For instance:
|
||||
# service Foo `
|
||||
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
# `
|
||||
# The JSON representation for `Empty` is empty JSON object ````.
|
||||
class GoogleProtobufEmpty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Represents an amount of money with its currency type.
|
||||
class GoogleTypeMoney
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The 3-letter currency code defined in ISO 4217.
|
||||
# Corresponds to the JSON property `currencyCode`
|
||||
# @return [String]
|
||||
attr_accessor :currency_code
|
||||
|
||||
# Number of nano (10^-9) units of the amount.
|
||||
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
||||
# If `units` is positive, `nanos` must be positive or zero.
|
||||
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
||||
# If `units` is negative, `nanos` must be negative or zero.
|
||||
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
||||
# Corresponds to the JSON property `nanos`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :nanos
|
||||
|
||||
# The whole units of the amount.
|
||||
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
||||
# Corresponds to the JSON property `units`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :units
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
||||
@nanos = args[:nanos] if args.key?(:nanos)
|
||||
@units = args[:units] if args.key?(:units)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,191 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module BillingbudgetsV1beta1
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1Budget
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1BudgetAmount
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1Filter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1LastPeriodAmount
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1ThresholdRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleProtobufEmpty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleTypeMoney
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :pubsub_topic, as: 'pubsubTopic'
|
||||
property :schema_version, as: 'schemaVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1Budget
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :all_updates_rule, as: 'allUpdatesRule', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule::Representation
|
||||
|
||||
property :amount, as: 'amount', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1BudgetAmount, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1BudgetAmount::Representation
|
||||
|
||||
property :budget_filter, as: 'budgetFilter', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Filter, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Filter::Representation
|
||||
|
||||
property :display_name, as: 'displayName'
|
||||
property :etag, as: 'etag'
|
||||
property :name, as: 'name'
|
||||
collection :threshold_rules, as: 'thresholdRules', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ThresholdRule, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ThresholdRule::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1BudgetAmount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :last_period_amount, as: 'lastPeriodAmount', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1LastPeriodAmount, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1LastPeriodAmount::Representation
|
||||
|
||||
property :specified_amount, as: 'specifiedAmount', class: Google::Apis::BillingbudgetsV1beta1::GoogleTypeMoney, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleTypeMoney::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :budget, as: 'budget', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1Filter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :credit_types_treatment, as: 'creditTypesTreatment'
|
||||
collection :projects, as: 'projects'
|
||||
collection :services, as: 'services'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1LastPeriodAmount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :budgets, as: 'budgets', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1ThresholdRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :spend_basis, as: 'spendBasis'
|
||||
property :threshold_percent, as: 'thresholdPercent'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :budget, as: 'budget', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleProtobufEmpty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleTypeMoney
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :currency_code, as: 'currencyCode'
|
||||
property :nanos, as: 'nanos'
|
||||
property :units, :numeric_string => true, as: 'units'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,233 @@
|
|||
# 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 BillingbudgetsV1beta1
|
||||
# Cloud Billing Budget API
|
||||
#
|
||||
# The Cloud Billing Budget API stores Cloud Billing budgets, which define a
|
||||
# budget plan and the rules to execute as spend is tracked against that plan.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/billingbudgets_v1beta1'
|
||||
#
|
||||
# Billingbudgets = Google::Apis::BillingbudgetsV1beta1 # Alias the module
|
||||
# service = Billingbudgets::CloudBillingBudgetService.new
|
||||
#
|
||||
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
|
||||
class CloudBillingBudgetService < 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://billingbudgets.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Creates a new budget. See
|
||||
# <a href="https://cloud.google.com/billing/quotas">Quotas and limits</a>
|
||||
# for more information on the limits of the number of budgets you can create.
|
||||
# @param [String] parent
|
||||
# Required. The name of the billing account to create the budget in. Values
|
||||
# are of the form `billingAccounts/`billingAccountId``.
|
||||
# @param [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest] google_cloud_billing_budgets_v1beta1_create_budget_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::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_billing_account_budget(parent, google_cloud_billing_budgets_v1beta1_create_budget_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+parent}/budgets', options)
|
||||
command.request_representation = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest::Representation
|
||||
command.request_object = google_cloud_billing_budgets_v1beta1_create_budget_request_object
|
||||
command.response_representation = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget::Representation
|
||||
command.response_class = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a budget. Returns successfully if already deleted.
|
||||
# @param [String] name
|
||||
# Required. Name of the budget to delete. Values are of the form
|
||||
# `billingAccounts/`billingAccountId`/budgets/`budgetId``.
|
||||
# @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::BillingbudgetsV1beta1::GoogleProtobufEmpty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleProtobufEmpty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_billing_account_budget(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::BillingbudgetsV1beta1::GoogleProtobufEmpty::Representation
|
||||
command.response_class = Google::Apis::BillingbudgetsV1beta1::GoogleProtobufEmpty
|
||||
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
|
||||
|
||||
# Returns a budget.
|
||||
# @param [String] name
|
||||
# Required. Name of budget to get. Values are of the form
|
||||
# `billingAccounts/`billingAccountId`/budgets/`budgetId``.
|
||||
# @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::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_billing_account_budget(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget::Representation
|
||||
command.response_class = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget
|
||||
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
|
||||
|
||||
# Returns a list of budgets for a billing account.
|
||||
# @param [String] parent
|
||||
# Required. Name of billing account to list budgets under. Values
|
||||
# are of the form `billingAccounts/`billingAccountId``.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The maximum number of budgets to return per page.
|
||||
# The default and maximum value are 100.
|
||||
# @param [String] page_token
|
||||
# Optional. The value returned by the last `ListBudgetsResponse` which
|
||||
# indicates that this is a continuation of a prior `ListBudgets` call,
|
||||
# and that the system should return the next page of data.
|
||||
# @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::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_billing_account_budgets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+parent}/budgets', options)
|
||||
command.response_representation = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse::Representation
|
||||
command.response_class = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a budget and returns the updated budget.
|
||||
# @param [String] name
|
||||
# Output only. Resource name of the budget.
|
||||
# The resource name implies the scope of a budget. Values are of the form
|
||||
# `billingAccounts/`billingAccountId`/budgets/`budgetId``.
|
||||
# @param [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest] google_cloud_billing_budgets_v1beta1_update_budget_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::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_billing_account_budget(name, google_cloud_billing_budgets_v1beta1_update_budget_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
||||
command.request_representation = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest::Representation
|
||||
command.request_object = google_cloud_billing_budgets_v1beta1_update_budget_request_object
|
||||
command.response_representation = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget::Representation
|
||||
command.response_class = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget
|
||||
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
|
||||
|
||||
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
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20191109'
|
||||
REVISION = '20191120'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -182,6 +182,8 @@ module Google
|
|||
# The field will contain name of the resource requested, for example:
|
||||
# "projects/project-1/workerPools/workerpool-name"
|
||||
# @param [Google::Apis::CloudbuildV1alpha1::WorkerPool] worker_pool_object
|
||||
# @param [String] update_mask
|
||||
# A mask specifying which fields in `WorkerPool` should be updated.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -199,13 +201,14 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_worker_pool(name, worker_pool_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def patch_project_worker_pool(name, worker_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
|
||||
command.request_object = worker_pool_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha1::WorkerPool
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/functions
|
||||
module CloudfunctionsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191003'
|
||||
REVISION = '20191112'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -659,6 +659,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# Locations that could not be reached. The response does not include any
|
||||
# functions from these locations.
|
||||
# Corresponds to the JSON property `unreachable`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :unreachable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -667,6 +673,7 @@ module Google
|
|||
def update!(**args)
|
||||
@functions = args[:functions] if args.key?(:functions)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -995,8 +1002,8 @@ module Google
|
|||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
|
||||
# 'setIamPolicy' will not fail even if either of incoming or stored policy
|
||||
# does not meet the version requirements.
|
||||
# 'setIamPolicy' will not fail even if the incoming policy version does not
|
||||
# meet the requirements for modifying the stored policy.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -1007,11 +1014,12 @@ module Google
|
|||
# rejected.
|
||||
# Operations affecting conditional bindings must specify version 3. This can
|
||||
# be either setting a conditional policy, modifying a conditional binding,
|
||||
# or removing a conditional binding from the stored conditional policy.
|
||||
# or removing a binding (conditional or unconditional) from the stored
|
||||
# conditional policy.
|
||||
# Operations on non-conditional policies may specify any valid value or
|
||||
# leave the field unset.
|
||||
# If no etag is provided in the call to `setIamPolicy`, any version
|
||||
# compliance checks on the incoming and/or stored policy is skipped.
|
||||
# If no etag is provided in the call to `setIamPolicy`, version compliance
|
||||
# checks against the stored policy is skipped.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
|
|
@ -331,6 +331,7 @@ module Google
|
|||
collection :functions, as: 'functions', class: Google::Apis::CloudfunctionsV1::CloudFunction, decorator: Google::Apis::CloudfunctionsV1::CloudFunction::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :unreachable, as: 'unreachable'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -443,7 +443,9 @@ module Google
|
|||
# The project and location from which the function should be listed,
|
||||
# specified in the format `projects/*/locations/*`
|
||||
# If you want to list functions in all locations, use "-" in place of a
|
||||
# location.
|
||||
# location. When listing functions in all locations, if one or more
|
||||
# location(s) are unreachable, the response will contain functions from all
|
||||
# reachable locations along with the names of any unreachable locations.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum number of functions to return per call.
|
||||
# @param [String] page_token
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||
module ContaineranalysisV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20191108'
|
||||
REVISION = '20191118'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -210,23 +210,6 @@ module Google
|
|||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
# * `group:`emailid``: An email address that represents a Google group.
|
||||
# For example, `admins@example.com`.
|
||||
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||
# identifier) representing a user that has been recently deleted. For
|
||||
# example,`alice@example.com?uid=123456789012345678901`. If the user is
|
||||
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
||||
# retains the role in the binding.
|
||||
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
||||
# unique identifier) representing a service account that has been recently
|
||||
# deleted. For example,
|
||||
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||
# If the service account is undeleted, this value reverts to
|
||||
# `serviceAccount:`emailid`` and the undeleted service account retains the
|
||||
# role in the binding.
|
||||
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||
# identifier) representing a Google group that has been recently
|
||||
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
||||
# the group is recovered, this value reverts to `group:`emailid`` and the
|
||||
# recovered group retains the role in the binding.
|
||||
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
||||
# users of that domain. For example, `google.com` or `example.com`.
|
||||
# Corresponds to the JSON property `members`
|
||||
|
@ -2023,8 +2006,8 @@ module Google
|
|||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
|
||||
# 'setIamPolicy' will not fail even if either of incoming or stored policy
|
||||
# does not meet the version requirements.
|
||||
# 'setIamPolicy' will not fail even if the incoming policy version does not
|
||||
# meet the requirements for modifying the stored policy.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -2035,11 +2018,12 @@ module Google
|
|||
# rejected.
|
||||
# Operations affecting conditional bindings must specify version 3. This can
|
||||
# be either setting a conditional policy, modifying a conditional binding,
|
||||
# or removing a conditional binding from the stored conditional policy.
|
||||
# or removing a binding (conditional or unconditional) from the stored
|
||||
# conditional policy.
|
||||
# Operations on non-conditional policies may specify any valid value or
|
||||
# leave the field unset.
|
||||
# If no etag is provided in the call to `setIamPolicy`, any version
|
||||
# compliance checks on the incoming and/or stored policy is skipped.
|
||||
# If no etag is provided in the call to `setIamPolicy`, version compliance
|
||||
# checks against the stored policy is skipped.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||
module ContaineranalysisV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20191108'
|
||||
REVISION = '20191118'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -283,23 +283,6 @@ module Google
|
|||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
# * `group:`emailid``: An email address that represents a Google group.
|
||||
# For example, `admins@example.com`.
|
||||
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||
# identifier) representing a user that has been recently deleted. For
|
||||
# example,`alice@example.com?uid=123456789012345678901`. If the user is
|
||||
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
||||
# retains the role in the binding.
|
||||
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
||||
# unique identifier) representing a service account that has been recently
|
||||
# deleted. For example,
|
||||
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||
# If the service account is undeleted, this value reverts to
|
||||
# `serviceAccount:`emailid`` and the undeleted service account retains the
|
||||
# role in the binding.
|
||||
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||
# identifier) representing a Google group that has been recently
|
||||
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
||||
# the group is recovered, this value reverts to `group:`emailid`` and the
|
||||
# recovered group retains the role in the binding.
|
||||
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
||||
# users of that domain. For example, `google.com` or `example.com`.
|
||||
# Corresponds to the JSON property `members`
|
||||
|
@ -2211,8 +2194,8 @@ module Google
|
|||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
|
||||
# 'setIamPolicy' will not fail even if either of incoming or stored policy
|
||||
# does not meet the version requirements.
|
||||
# 'setIamPolicy' will not fail even if the incoming policy version does not
|
||||
# meet the requirements for modifying the stored policy.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -2223,11 +2206,12 @@ module Google
|
|||
# rejected.
|
||||
# Operations affecting conditional bindings must specify version 3. This can
|
||||
# be either setting a conditional policy, modifying a conditional binding,
|
||||
# or removing a conditional binding from the stored conditional policy.
|
||||
# or removing a binding (conditional or unconditional) from the stored
|
||||
# conditional policy.
|
||||
# Operations on non-conditional policies may specify any valid value or
|
||||
# leave the field unset.
|
||||
# If no etag is provided in the call to `setIamPolicy`, any version
|
||||
# compliance checks on the incoming and/or stored policy is skipped.
|
||||
# If no etag is provided in the call to `setIamPolicy`, version compliance
|
||||
# checks against the stored policy is skipped.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/data-catalog/docs/
|
||||
module DatacatalogV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20191113'
|
||||
REVISION = '20191118'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -563,9 +563,15 @@ module Google
|
|||
class GoogleCloudDatacatalogV1beta1GcsFilesetSpec
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. Patterns to identify a set of files in Google Cloud Storage.
|
||||
# Required. Patterns to identify a set of files in Google Cloud Storage. See [
|
||||
# Cloud
|
||||
# Storage documentation](storage/docs/gsutil/addlhelp/WildcardNames) for
|
||||
# more information. Note that bucket wildcards are currently not supported.
|
||||
# Examples of valid file_patterns:
|
||||
# * `gs://bucket_name/*`: matches all files in `bucket_name`
|
||||
# * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
|
||||
# directory.
|
||||
# * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
|
||||
# spanning all subdirectories.
|
||||
# * `gs://bucket_name/file*`: matches files prefixed by `file` in
|
||||
# `bucket_name`
|
||||
# * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/pubsub/docs
|
||||
module PubsubV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191104'
|
||||
REVISION = '20191111'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -527,8 +527,8 @@ module Google
|
|||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
|
||||
# 'setIamPolicy' will not fail even if either of incoming or stored policy
|
||||
# does not meet the version requirements.
|
||||
# 'setIamPolicy' will not fail even if the incoming policy version does not
|
||||
# meet the requirements for modifying the stored policy.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -539,11 +539,12 @@ module Google
|
|||
# rejected.
|
||||
# Operations affecting conditional bindings must specify version 3. This can
|
||||
# be either setting a conditional policy, modifying a conditional binding,
|
||||
# or removing a conditional binding from the stored conditional policy.
|
||||
# or removing a binding (conditional or unconditional) from the stored
|
||||
# conditional policy.
|
||||
# Operations on non-conditional policies may specify any valid value or
|
||||
# leave the field unset.
|
||||
# If no etag is provided in the call to `setIamPolicy`, any version
|
||||
# compliance checks on the incoming and/or stored policy is skipped.
|
||||
# If no etag is provided in the call to `setIamPolicy`, version compliance
|
||||
# checks against the stored policy is skipped.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/pubsub/docs
|
||||
module PubsubV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20191001'
|
||||
REVISION = '20191111'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -396,8 +396,8 @@ module Google
|
|||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
|
||||
# 'setIamPolicy' will not fail even if either of incoming or stored policy
|
||||
# does not meet the version requirements.
|
||||
# 'setIamPolicy' will not fail even if the incoming policy version does not
|
||||
# meet the requirements for modifying the stored policy.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -408,11 +408,12 @@ module Google
|
|||
# rejected.
|
||||
# Operations affecting conditional bindings must specify version 3. This can
|
||||
# be either setting a conditional policy, modifying a conditional binding,
|
||||
# or removing a conditional binding from the stored conditional policy.
|
||||
# or removing a binding (conditional or unconditional) from the stored
|
||||
# conditional policy.
|
||||
# Operations on non-conditional policies may specify any valid value or
|
||||
# leave the field unset.
|
||||
# If no etag is provided in the call to `setIamPolicy`, any version
|
||||
# compliance checks on the incoming and/or stored policy is skipped.
|
||||
# If no etag is provided in the call to `setIamPolicy`, version compliance
|
||||
# checks against the stored policy is skipped.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/remote-build-execution/docs/
|
||||
module RemotebuildexecutionV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191008'
|
||||
REVISION = '20191119'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1952,6 +1952,39 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The request used for `UpdateInstance`.
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether to enable Stackdriver logging for this instance.
|
||||
# Corresponds to the JSON property `loggingEnabled`
|
||||
# @return [Boolean]
|
||||
attr_accessor :logging_enabled
|
||||
alias_method :logging_enabled?, :logging_enabled
|
||||
|
||||
# Name of the instance to update.
|
||||
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The fields to update.
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@logging_enabled = args[:logging_enabled] if args.key?(:logging_enabled)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
# The request used for UpdateWorkerPool.
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -244,6 +244,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -742,6 +748,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :logging_enabled, as: 'loggingEnabled'
|
||||
property :name, as: 'name'
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/remote-build-execution/docs/
|
||||
module RemotebuildexecutionV1alpha
|
||||
VERSION = 'V1alpha'
|
||||
REVISION = '20191008'
|
||||
REVISION = '20191119'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1933,6 +1933,39 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The request used for `UpdateInstance`.
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether to enable Stackdriver logging for this instance.
|
||||
# Corresponds to the JSON property `loggingEnabled`
|
||||
# @return [Boolean]
|
||||
attr_accessor :logging_enabled
|
||||
alias_method :logging_enabled?, :logging_enabled
|
||||
|
||||
# Name of the instance to update.
|
||||
# Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The fields to update.
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@logging_enabled = args[:logging_enabled] if args.key?(:logging_enabled)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
# The request used for UpdateWorkerPool.
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -238,6 +238,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -711,6 +717,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :logging_enabled, as: 'loggingEnabled'
|
||||
property :name, as: 'name'
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/run/
|
||||
module RunV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20191112'
|
||||
REVISION = '20191115'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -4666,7 +4666,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
# Deprecated, importer specification will be available via GcpImporterDao.
|
||||
class TriggerImporterSpec
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -4709,9 +4709,8 @@ module Google
|
|||
# @return [Google::Apis::RunV1alpha1::TriggerFilter]
|
||||
attr_accessor :filter
|
||||
|
||||
# Specification of the importers that will provide events to the trigger.
|
||||
# Note, for Cloud Run, the importers will only be used if a filter is not
|
||||
# specified.
|
||||
# Deprecated, importer specification will be replaced by information stored
|
||||
# in GcpImporterDao.
|
||||
# Corresponds to the JSON property `importers`
|
||||
# @return [Array<Google::Apis::RunV1alpha1::TriggerImporterSpec>]
|
||||
attr_accessor :importers
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-control/
|
||||
module ServicecontrolV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191102'
|
||||
REVISION = '20191115'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1923,7 +1923,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :protocol
|
||||
|
||||
# The HTTP URL query in the format of `name1=value`&name2=value2`, as it
|
||||
# The HTTP URL query in the format of `name1=value1&name2=value2`, as it
|
||||
# appears in the first line of the HTTP request. No decoding is performed.
|
||||
# Corresponds to the JSON property `query`
|
||||
# @return [String]
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
# 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/storage_v1beta1/service.rb'
|
||||
require 'google/apis/storage_v1beta1/classes.rb'
|
||||
require 'google/apis/storage_v1beta1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud Storage JSON API
|
||||
#
|
||||
# Lets you store and retrieve potentially-large, immutable data objects.
|
||||
#
|
||||
# @see https://developers.google.com/storage/docs/json_api/
|
||||
module StorageV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190913'
|
||||
|
||||
# Manage your data and permissions in Google Cloud Storage
|
||||
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
|
||||
|
||||
# View your data in Google Cloud Storage
|
||||
AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only'
|
||||
|
||||
# Manage your data in Google Cloud Storage
|
||||
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,616 +0,0 @@
|
|||
# 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 StorageV1beta1
|
||||
|
||||
# A bucket.
|
||||
class Bucket
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Access controls on the bucket.
|
||||
# Corresponds to the JSON property `acl`
|
||||
# @return [Array<Google::Apis::StorageV1beta1::BucketAccessControl>]
|
||||
attr_accessor :acl
|
||||
|
||||
# Default access controls to apply to new objects when no ACL is provided.
|
||||
# Corresponds to the JSON property `defaultObjectAcl`
|
||||
# @return [Array<Google::Apis::StorageV1beta1::ObjectAccessControl>]
|
||||
attr_accessor :default_object_acl
|
||||
|
||||
# The name of the bucket.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# The kind of item this is. For buckets, this is always storage#bucket.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The location of the bucket. Object data for objects in the bucket resides in
|
||||
# physical storage in this location. Can be US or EU. Defaults to US.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [String]
|
||||
attr_accessor :location
|
||||
|
||||
# The owner of the bucket. This will always be the project team's owner group.
|
||||
# Corresponds to the JSON property `owner`
|
||||
# @return [Google::Apis::StorageV1beta1::Bucket::Owner]
|
||||
attr_accessor :owner
|
||||
|
||||
# The project the bucket belongs to.
|
||||
# Corresponds to the JSON property `projectId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :project_id
|
||||
|
||||
# The URI of this bucket.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# Creation time of the bucket in RFC 3339 format.
|
||||
# Corresponds to the JSON property `timeCreated`
|
||||
# @return [DateTime]
|
||||
attr_accessor :time_created
|
||||
|
||||
# The bucket's website configuration.
|
||||
# Corresponds to the JSON property `website`
|
||||
# @return [Google::Apis::StorageV1beta1::Bucket::Website]
|
||||
attr_accessor :website
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@acl = args[:acl] if args.key?(:acl)
|
||||
@default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@owner = args[:owner] if args.key?(:owner)
|
||||
@project_id = args[:project_id] if args.key?(:project_id)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@time_created = args[:time_created] if args.key?(:time_created)
|
||||
@website = args[:website] if args.key?(:website)
|
||||
end
|
||||
|
||||
# The owner of the bucket. This will always be the project team's owner group.
|
||||
class Owner
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The entity, in the form group-groupId.
|
||||
# Corresponds to the JSON property `entity`
|
||||
# @return [String]
|
||||
attr_accessor :entity
|
||||
|
||||
# The ID for the entity.
|
||||
# Corresponds to the JSON property `entityId`
|
||||
# @return [String]
|
||||
attr_accessor :entity_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@entity = args[:entity] if args.key?(:entity)
|
||||
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
||||
end
|
||||
end
|
||||
|
||||
# The bucket's website configuration.
|
||||
class Website
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Behaves as the bucket's directory index where missing objects are treated as
|
||||
# potential directories.
|
||||
# Corresponds to the JSON property `mainPageSuffix`
|
||||
# @return [String]
|
||||
attr_accessor :main_page_suffix
|
||||
|
||||
# The custom object to return when a requested resource is not found.
|
||||
# Corresponds to the JSON property `notFoundPage`
|
||||
# @return [String]
|
||||
attr_accessor :not_found_page
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@main_page_suffix = args[:main_page_suffix] if args.key?(:main_page_suffix)
|
||||
@not_found_page = args[:not_found_page] if args.key?(:not_found_page)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# An access-control entry.
|
||||
class BucketAccessControl
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the bucket.
|
||||
# Corresponds to the JSON property `bucket`
|
||||
# @return [String]
|
||||
attr_accessor :bucket
|
||||
|
||||
# The domain associated with the entity, if any.
|
||||
# Corresponds to the JSON property `domain`
|
||||
# @return [String]
|
||||
attr_accessor :domain
|
||||
|
||||
# The email address associated with the entity, if any.
|
||||
# Corresponds to the JSON property `email`
|
||||
# @return [String]
|
||||
attr_accessor :email
|
||||
|
||||
# The entity holding the permission, in one of the following forms:
|
||||
# - user-userId
|
||||
# - user-email
|
||||
# - group-groupId
|
||||
# - group-email
|
||||
# - domain-domain
|
||||
# - allUsers
|
||||
# - allAuthenticatedUsers Examples:
|
||||
# - The user liz@example.com would be user-liz@example.com.
|
||||
# - The group example@googlegroups.com would be group-example@googlegroups.com.
|
||||
# - To refer to all members of the Google Apps for Business domain example.com,
|
||||
# the entity would be domain-example.com.
|
||||
# Corresponds to the JSON property `entity`
|
||||
# @return [String]
|
||||
attr_accessor :entity
|
||||
|
||||
# The ID for the entity, if any.
|
||||
# Corresponds to the JSON property `entityId`
|
||||
# @return [String]
|
||||
attr_accessor :entity_id
|
||||
|
||||
# The ID of the access-control entry.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# The kind of item this is. For bucket access control entries, this is always
|
||||
# storage#bucketAccessControl.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The access permission for the entity. Can be READER, WRITER, or OWNER.
|
||||
# Corresponds to the JSON property `role`
|
||||
# @return [String]
|
||||
attr_accessor :role
|
||||
|
||||
# The link to this access-control entry.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@bucket = args[:bucket] if args.key?(:bucket)
|
||||
@domain = args[:domain] if args.key?(:domain)
|
||||
@email = args[:email] if args.key?(:email)
|
||||
@entity = args[:entity] if args.key?(:entity)
|
||||
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@role = args[:role] if args.key?(:role)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
# An access-control list.
|
||||
class BucketAccessControls
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of items.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::StorageV1beta1::BucketAccessControl>]
|
||||
attr_accessor :items
|
||||
|
||||
# The kind of item this is. For lists of bucket access control entries, this is
|
||||
# always storage#bucketAccessControls.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
# A list of buckets.
|
||||
class Buckets
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of items.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::StorageV1beta1::Bucket>]
|
||||
attr_accessor :items
|
||||
|
||||
# The kind of item this is. For lists of buckets, this is always storage#buckets.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The continuation token, used to page through large result sets. Provide this
|
||||
# value in a subsequent request to return the next page of results.
|
||||
# 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)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# An object.
|
||||
class Object
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Access controls on the object.
|
||||
# Corresponds to the JSON property `acl`
|
||||
# @return [Array<Google::Apis::StorageV1beta1::ObjectAccessControl>]
|
||||
attr_accessor :acl
|
||||
|
||||
# The bucket containing this object.
|
||||
# Corresponds to the JSON property `bucket`
|
||||
# @return [String]
|
||||
attr_accessor :bucket
|
||||
|
||||
# Cache-Control directive for the object data.
|
||||
# Corresponds to the JSON property `cacheControl`
|
||||
# @return [String]
|
||||
attr_accessor :cache_control
|
||||
|
||||
# Content-Disposition of the object data.
|
||||
# Corresponds to the JSON property `contentDisposition`
|
||||
# @return [String]
|
||||
attr_accessor :content_disposition
|
||||
|
||||
# Content-Encoding of the object data.
|
||||
# Corresponds to the JSON property `contentEncoding`
|
||||
# @return [String]
|
||||
attr_accessor :content_encoding
|
||||
|
||||
# Content-Language of the object data.
|
||||
# Corresponds to the JSON property `contentLanguage`
|
||||
# @return [String]
|
||||
attr_accessor :content_language
|
||||
|
||||
# The ID of the object.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# The kind of item this is. For objects, this is always storage#object.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Object media data. Provided on your behalf when uploading raw media or
|
||||
# multipart/related with an auxiliary media part.
|
||||
# Corresponds to the JSON property `media`
|
||||
# @return [Google::Apis::StorageV1beta1::Object::Media]
|
||||
attr_accessor :media
|
||||
|
||||
# User-provided metadata, in key/value pairs.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The name of this object. Required if not specified by URL parameter.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The owner of the object. This will always be the uploader of the object.
|
||||
# Corresponds to the JSON property `owner`
|
||||
# @return [Google::Apis::StorageV1beta1::Object::Owner]
|
||||
attr_accessor :owner
|
||||
|
||||
# The link to this object.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@acl = args[:acl] if args.key?(:acl)
|
||||
@bucket = args[:bucket] if args.key?(:bucket)
|
||||
@cache_control = args[:cache_control] if args.key?(:cache_control)
|
||||
@content_disposition = args[:content_disposition] if args.key?(:content_disposition)
|
||||
@content_encoding = args[:content_encoding] if args.key?(:content_encoding)
|
||||
@content_language = args[:content_language] if args.key?(:content_language)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@media = args[:media] if args.key?(:media)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@owner = args[:owner] if args.key?(:owner)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
|
||||
# Object media data. Provided on your behalf when uploading raw media or
|
||||
# multipart/related with an auxiliary media part.
|
||||
class Media
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Hash algorithm used. Currently only MD5 is supported. Required if a hash is
|
||||
# provided.
|
||||
# Corresponds to the JSON property `algorithm`
|
||||
# @return [String]
|
||||
attr_accessor :algorithm
|
||||
|
||||
# Content-Type of the object data.
|
||||
# Corresponds to the JSON property `contentType`
|
||||
# @return [String]
|
||||
attr_accessor :content_type
|
||||
|
||||
# URL-safe Base64-encoded data. This property can be used to insert objects
|
||||
# under 64KB in size, and will only be returned in response to the get method
|
||||
# for objects so created. When this resource is returned in response to the list
|
||||
# method, this property is omitted.
|
||||
# Corresponds to the JSON property `data`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :data
|
||||
|
||||
# Hash of the data. Required if a hash algorithm is provided.
|
||||
# Corresponds to the JSON property `hash`
|
||||
# @return [String]
|
||||
attr_accessor :hash_prop
|
||||
|
||||
# Content-Length of the data in bytes.
|
||||
# Corresponds to the JSON property `length`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :length
|
||||
|
||||
# Media download link.
|
||||
# Corresponds to the JSON property `link`
|
||||
# @return [String]
|
||||
attr_accessor :link
|
||||
|
||||
# Creation time of the data in RFC 3339 format.
|
||||
# Corresponds to the JSON property `timeCreated`
|
||||
# @return [DateTime]
|
||||
attr_accessor :time_created
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
||||
@content_type = args[:content_type] if args.key?(:content_type)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@hash_prop = args[:hash_prop] if args.key?(:hash_prop)
|
||||
@length = args[:length] if args.key?(:length)
|
||||
@link = args[:link] if args.key?(:link)
|
||||
@time_created = args[:time_created] if args.key?(:time_created)
|
||||
end
|
||||
end
|
||||
|
||||
# The owner of the object. This will always be the uploader of the object.
|
||||
class Owner
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The entity, in the form user-userId.
|
||||
# Corresponds to the JSON property `entity`
|
||||
# @return [String]
|
||||
attr_accessor :entity
|
||||
|
||||
# The ID for the entity.
|
||||
# Corresponds to the JSON property `entityId`
|
||||
# @return [String]
|
||||
attr_accessor :entity_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@entity = args[:entity] if args.key?(:entity)
|
||||
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# An access-control entry.
|
||||
class ObjectAccessControl
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the bucket.
|
||||
# Corresponds to the JSON property `bucket`
|
||||
# @return [String]
|
||||
attr_accessor :bucket
|
||||
|
||||
# The domain associated with the entity, if any.
|
||||
# Corresponds to the JSON property `domain`
|
||||
# @return [String]
|
||||
attr_accessor :domain
|
||||
|
||||
# The email address associated with the entity, if any.
|
||||
# Corresponds to the JSON property `email`
|
||||
# @return [String]
|
||||
attr_accessor :email
|
||||
|
||||
# The entity holding the permission, in one of the following forms:
|
||||
# - user-userId
|
||||
# - user-email
|
||||
# - group-groupId
|
||||
# - group-email
|
||||
# - domain-domain
|
||||
# - allUsers
|
||||
# - allAuthenticatedUsers Examples:
|
||||
# - The user liz@example.com would be user-liz@example.com.
|
||||
# - The group example@googlegroups.com would be group-example@googlegroups.com.
|
||||
# - To refer to all members of the Google Apps for Business domain example.com,
|
||||
# the entity would be domain-example.com.
|
||||
# Corresponds to the JSON property `entity`
|
||||
# @return [String]
|
||||
attr_accessor :entity
|
||||
|
||||
# The ID for the entity, if any.
|
||||
# Corresponds to the JSON property `entityId`
|
||||
# @return [String]
|
||||
attr_accessor :entity_id
|
||||
|
||||
# The ID of the access-control entry.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# The kind of item this is. For object access control entries, this is always
|
||||
# storage#objectAccessControl.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The name of the object.
|
||||
# Corresponds to the JSON property `object`
|
||||
# @return [String]
|
||||
attr_accessor :object
|
||||
|
||||
# The access permission for the entity. Can be READER or OWNER.
|
||||
# Corresponds to the JSON property `role`
|
||||
# @return [String]
|
||||
attr_accessor :role
|
||||
|
||||
# The link to this access-control entry.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@bucket = args[:bucket] if args.key?(:bucket)
|
||||
@domain = args[:domain] if args.key?(:domain)
|
||||
@email = args[:email] if args.key?(:email)
|
||||
@entity = args[:entity] if args.key?(:entity)
|
||||
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@object = args[:object] if args.key?(:object)
|
||||
@role = args[:role] if args.key?(:role)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
# An access-control list.
|
||||
class ObjectAccessControls
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of items.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::StorageV1beta1::ObjectAccessControl>]
|
||||
attr_accessor :items
|
||||
|
||||
# The kind of item this is. For lists of object access control entries, this is
|
||||
# always storage#objectAccessControls.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
# A list of objects.
|
||||
class Objects
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of items.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::StorageV1beta1::Object>]
|
||||
attr_accessor :items
|
||||
|
||||
# The kind of item this is. For lists of objects, this is always storage#objects.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The continuation token, used to page through large result sets. Provide this
|
||||
# value in a subsequent request to return the next page of results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# The list of prefixes of objects matching-but-not-listed up to and including
|
||||
# the requested delimiter.
|
||||
# Corresponds to the JSON property `prefixes`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :prefixes
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@prefixes = args[:prefixes] if args.key?(:prefixes)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,249 +0,0 @@
|
|||
# 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 StorageV1beta1
|
||||
|
||||
class Bucket
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Owner
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Website
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BucketAccessControl
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BucketAccessControls
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Buckets
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Object
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Media
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Owner
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ObjectAccessControl
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ObjectAccessControls
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Objects
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Bucket
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :acl, as: 'acl', class: Google::Apis::StorageV1beta1::BucketAccessControl, decorator: Google::Apis::StorageV1beta1::BucketAccessControl::Representation
|
||||
|
||||
collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1beta1::ObjectAccessControl, decorator: Google::Apis::StorageV1beta1::ObjectAccessControl::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :location, as: 'location'
|
||||
property :owner, as: 'owner', class: Google::Apis::StorageV1beta1::Bucket::Owner, decorator: Google::Apis::StorageV1beta1::Bucket::Owner::Representation
|
||||
|
||||
property :project_id, :numeric_string => true, as: 'projectId'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :time_created, as: 'timeCreated', type: DateTime
|
||||
|
||||
property :website, as: 'website', class: Google::Apis::StorageV1beta1::Bucket::Website, decorator: Google::Apis::StorageV1beta1::Bucket::Website::Representation
|
||||
|
||||
end
|
||||
|
||||
class Owner
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entity, as: 'entity'
|
||||
property :entity_id, as: 'entityId'
|
||||
end
|
||||
end
|
||||
|
||||
class Website
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :main_page_suffix, as: 'mainPageSuffix'
|
||||
property :not_found_page, as: 'notFoundPage'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class BucketAccessControl
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bucket, as: 'bucket'
|
||||
property :domain, as: 'domain'
|
||||
property :email, as: 'email'
|
||||
property :entity, as: 'entity'
|
||||
property :entity_id, as: 'entityId'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :role, as: 'role'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class BucketAccessControls
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :items, as: 'items', class: Google::Apis::StorageV1beta1::BucketAccessControl, decorator: Google::Apis::StorageV1beta1::BucketAccessControl::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class Buckets
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :items, as: 'items', class: Google::Apis::StorageV1beta1::Bucket, decorator: Google::Apis::StorageV1beta1::Bucket::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Object
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :acl, as: 'acl', class: Google::Apis::StorageV1beta1::ObjectAccessControl, decorator: Google::Apis::StorageV1beta1::ObjectAccessControl::Representation
|
||||
|
||||
property :bucket, as: 'bucket'
|
||||
property :cache_control, as: 'cacheControl'
|
||||
property :content_disposition, as: 'contentDisposition'
|
||||
property :content_encoding, as: 'contentEncoding'
|
||||
property :content_language, as: 'contentLanguage'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :media, as: 'media', class: Google::Apis::StorageV1beta1::Object::Media, decorator: Google::Apis::StorageV1beta1::Object::Media::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
property :owner, as: 'owner', class: Google::Apis::StorageV1beta1::Object::Owner, decorator: Google::Apis::StorageV1beta1::Object::Owner::Representation
|
||||
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
|
||||
class Media
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :algorithm, as: 'algorithm'
|
||||
property :content_type, as: 'contentType'
|
||||
property :data, :base64 => true, as: 'data'
|
||||
property :hash_prop, as: 'hash'
|
||||
property :length, :numeric_string => true, as: 'length'
|
||||
property :link, as: 'link'
|
||||
property :time_created, as: 'timeCreated', type: DateTime
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Owner
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entity, as: 'entity'
|
||||
property :entity_id, as: 'entityId'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class ObjectAccessControl
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bucket, as: 'bucket'
|
||||
property :domain, as: 'domain'
|
||||
property :email, as: 'email'
|
||||
property :entity, as: 'entity'
|
||||
property :entity_id, as: 'entityId'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :object, as: 'object'
|
||||
property :role, as: 'role'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class ObjectAccessControls
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :items, as: 'items', class: Google::Apis::StorageV1beta1::ObjectAccessControl, decorator: Google::Apis::StorageV1beta1::ObjectAccessControl::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class Objects
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :items, as: 'items', class: Google::Apis::StorageV1beta1::Object, decorator: Google::Apis::StorageV1beta1::Object::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :prefixes, as: 'prefixes'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue