From ad7caecb9c5f4719d5d3368ea51be27a68afb357 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 22 Nov 2019 00:37:17 +0000 Subject: [PATCH] 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 --- generated/google/apis/appengine_v1.rb | 2 +- generated/google/apis/appengine_v1/classes.rb | 2 +- generated/google/apis/appengine_v1beta.rb | 2 +- .../google/apis/appengine_v1beta/classes.rb | 2 +- .../google/apis/bigqueryconnection_v1beta1.rb | 2 +- .../bigqueryconnection_v1beta1/classes.rb | 28 +- generated/google/apis/bigtableadmin_v2.rb | 2 +- .../google/apis/bigtableadmin_v2/service.rb | 2 +- .../google/apis/billingbudgets_v1beta1.rb | 35 + .../apis/billingbudgets_v1beta1/classes.rb | 392 +++++++ .../billingbudgets_v1beta1/representations.rb | 191 +++ .../apis/billingbudgets_v1beta1/service.rb | 233 ++++ generated/google/apis/cloudbuild_v1alpha1.rb | 2 +- .../apis/cloudbuild_v1alpha1/service.rb | 5 +- generated/google/apis/cloudfunctions_v1.rb | 2 +- .../google/apis/cloudfunctions_v1/classes.rb | 18 +- .../apis/cloudfunctions_v1/representations.rb | 1 + .../google/apis/cloudfunctions_v1/service.rb | 4 +- .../google/apis/containeranalysis_v1alpha1.rb | 2 +- .../containeranalysis_v1alpha1/classes.rb | 28 +- .../google/apis/containeranalysis_v1beta1.rb | 2 +- .../apis/containeranalysis_v1beta1/classes.rb | 28 +- generated/google/apis/datacatalog_v1beta1.rb | 2 +- .../apis/datacatalog_v1beta1/classes.rb | 10 +- generated/google/apis/pubsub_v1.rb | 2 +- generated/google/apis/pubsub_v1/classes.rb | 11 +- generated/google/apis/pubsub_v1beta2.rb | 2 +- .../google/apis/pubsub_v1beta2/classes.rb | 11 +- .../google/apis/remotebuildexecution_v1.rb | 2 +- .../apis/remotebuildexecution_v1/classes.rb | 33 + .../representations.rb | 15 + .../apis/remotebuildexecution_v1alpha.rb | 2 +- .../remotebuildexecution_v1alpha/classes.rb | 33 + .../representations.rb | 15 + generated/google/apis/run_v1alpha1.rb | 2 +- generated/google/apis/run_v1alpha1/classes.rb | 7 +- generated/google/apis/servicecontrol_v1.rb | 2 +- .../google/apis/servicecontrol_v1/classes.rb | 2 +- generated/google/apis/storage_v1beta1.rb | 40 - .../google/apis/storage_v1beta1/classes.rb | 616 ---------- .../apis/storage_v1beta1/representations.rb | 249 ---- .../google/apis/storage_v1beta1/service.rb | 1032 ----------------- 42 files changed, 1028 insertions(+), 2045 deletions(-) create mode 100644 generated/google/apis/billingbudgets_v1beta1.rb create mode 100644 generated/google/apis/billingbudgets_v1beta1/classes.rb create mode 100644 generated/google/apis/billingbudgets_v1beta1/representations.rb create mode 100644 generated/google/apis/billingbudgets_v1beta1/service.rb delete mode 100644 generated/google/apis/storage_v1beta1.rb delete mode 100644 generated/google/apis/storage_v1beta1/classes.rb delete mode 100644 generated/google/apis/storage_v1beta1/representations.rb delete mode 100644 generated/google/apis/storage_v1beta1/service.rb diff --git a/generated/google/apis/appengine_v1.rb b/generated/google/apis/appengine_v1.rb index 34f179f7f..287ae0cf4 100644 --- a/generated/google/apis/appengine_v1.rb +++ b/generated/google/apis/appengine_v1.rb @@ -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' diff --git a/generated/google/apis/appengine_v1/classes.rb b/generated/google/apis/appengine_v1/classes.rb index 73bcef1ce..6174ffc38 100644 --- a/generated/google/apis/appengine_v1/classes.rb +++ b/generated/google/apis/appengine_v1/classes.rb @@ -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 diff --git a/generated/google/apis/appengine_v1beta.rb b/generated/google/apis/appengine_v1beta.rb index 87780f718..8c3daf14c 100644 --- a/generated/google/apis/appengine_v1beta.rb +++ b/generated/google/apis/appengine_v1beta.rb @@ -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' diff --git a/generated/google/apis/appengine_v1beta/classes.rb b/generated/google/apis/appengine_v1beta/classes.rb index 937d042c3..328c13660 100644 --- a/generated/google/apis/appengine_v1beta/classes.rb +++ b/generated/google/apis/appengine_v1beta/classes.rb @@ -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 diff --git a/generated/google/apis/bigqueryconnection_v1beta1.rb b/generated/google/apis/bigqueryconnection_v1beta1.rb index 5f7a64fdd..839298bdf 100644 --- a/generated/google/apis/bigqueryconnection_v1beta1.rb +++ b/generated/google/apis/bigqueryconnection_v1beta1.rb @@ -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' diff --git a/generated/google/apis/bigqueryconnection_v1beta1/classes.rb b/generated/google/apis/bigqueryconnection_v1beta1/classes.rb index eafe8b677..585175c05 100644 --- a/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +++ b/generated/google/apis/bigqueryconnection_v1beta1/classes.rb @@ -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 diff --git a/generated/google/apis/bigtableadmin_v2.rb b/generated/google/apis/bigtableadmin_v2.rb index cf74fcf6d..b26e38a2c 100644 --- a/generated/google/apis/bigtableadmin_v2.rb +++ b/generated/google/apis/bigtableadmin_v2.rb @@ -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' diff --git a/generated/google/apis/bigtableadmin_v2/service.rb b/generated/google/apis/bigtableadmin_v2/service.rb index bfa1d7692..13a519c83 100644 --- a/generated/google/apis/bigtableadmin_v2/service.rb +++ b/generated/google/apis/bigtableadmin_v2/service.rb @@ -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 diff --git a/generated/google/apis/billingbudgets_v1beta1.rb b/generated/google/apis/billingbudgets_v1beta1.rb new file mode 100644 index 000000000..78e4a65e9 --- /dev/null +++ b/generated/google/apis/billingbudgets_v1beta1.rb @@ -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 diff --git a/generated/google/apis/billingbudgets_v1beta1/classes.rb b/generated/google/apis/billingbudgets_v1beta1/classes.rb new file mode 100644 index 000000000..bef3525c1 --- /dev/null +++ b/generated/google/apis/billingbudgets_v1beta1/classes.rb @@ -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] + 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] + 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] + 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] + 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 diff --git a/generated/google/apis/billingbudgets_v1beta1/representations.rb b/generated/google/apis/billingbudgets_v1beta1/representations.rb new file mode 100644 index 000000000..14dc85bb3 --- /dev/null +++ b/generated/google/apis/billingbudgets_v1beta1/representations.rb @@ -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 diff --git a/generated/google/apis/billingbudgets_v1beta1/service.rb b/generated/google/apis/billingbudgets_v1beta1/service.rb new file mode 100644 index 000000000..f329c19aa --- /dev/null +++ b/generated/google/apis/billingbudgets_v1beta1/service.rb @@ -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 + # Quotas and limits + # 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 diff --git a/generated/google/apis/cloudbuild_v1alpha1.rb b/generated/google/apis/cloudbuild_v1alpha1.rb index 27066fd19..f7e5c6b96 100644 --- a/generated/google/apis/cloudbuild_v1alpha1.rb +++ b/generated/google/apis/cloudbuild_v1alpha1.rb @@ -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' diff --git a/generated/google/apis/cloudbuild_v1alpha1/service.rb b/generated/google/apis/cloudbuild_v1alpha1/service.rb index 853fd6b78..47eb52d4c 100644 --- a/generated/google/apis/cloudbuild_v1alpha1/service.rb +++ b/generated/google/apis/cloudbuild_v1alpha1/service.rb @@ -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) diff --git a/generated/google/apis/cloudfunctions_v1.rb b/generated/google/apis/cloudfunctions_v1.rb index 7cef934a6..836c47dea 100644 --- a/generated/google/apis/cloudfunctions_v1.rb +++ b/generated/google/apis/cloudfunctions_v1.rb @@ -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' diff --git a/generated/google/apis/cloudfunctions_v1/classes.rb b/generated/google/apis/cloudfunctions_v1/classes.rb index ac918c695..17381d6a0 100644 --- a/generated/google/apis/cloudfunctions_v1/classes.rb +++ b/generated/google/apis/cloudfunctions_v1/classes.rb @@ -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] + 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 diff --git a/generated/google/apis/cloudfunctions_v1/representations.rb b/generated/google/apis/cloudfunctions_v1/representations.rb index 0d95895b0..9705719b6 100644 --- a/generated/google/apis/cloudfunctions_v1/representations.rb +++ b/generated/google/apis/cloudfunctions_v1/representations.rb @@ -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 diff --git a/generated/google/apis/cloudfunctions_v1/service.rb b/generated/google/apis/cloudfunctions_v1/service.rb index f4d5813f8..1a9e27604 100644 --- a/generated/google/apis/cloudfunctions_v1/service.rb +++ b/generated/google/apis/cloudfunctions_v1/service.rb @@ -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 diff --git a/generated/google/apis/containeranalysis_v1alpha1.rb b/generated/google/apis/containeranalysis_v1alpha1.rb index abf92ef13..ec0e06ed9 100644 --- a/generated/google/apis/containeranalysis_v1alpha1.rb +++ b/generated/google/apis/containeranalysis_v1alpha1.rb @@ -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' diff --git a/generated/google/apis/containeranalysis_v1alpha1/classes.rb b/generated/google/apis/containeranalysis_v1alpha1/classes.rb index 2242f8b62..8415e2e29 100644 --- a/generated/google/apis/containeranalysis_v1alpha1/classes.rb +++ b/generated/google/apis/containeranalysis_v1alpha1/classes.rb @@ -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 diff --git a/generated/google/apis/containeranalysis_v1beta1.rb b/generated/google/apis/containeranalysis_v1beta1.rb index 63d93eb4c..a229bd98a 100644 --- a/generated/google/apis/containeranalysis_v1beta1.rb +++ b/generated/google/apis/containeranalysis_v1beta1.rb @@ -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' diff --git a/generated/google/apis/containeranalysis_v1beta1/classes.rb b/generated/google/apis/containeranalysis_v1beta1/classes.rb index a640c7171..1e6247a11 100644 --- a/generated/google/apis/containeranalysis_v1beta1/classes.rb +++ b/generated/google/apis/containeranalysis_v1beta1/classes.rb @@ -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 diff --git a/generated/google/apis/datacatalog_v1beta1.rb b/generated/google/apis/datacatalog_v1beta1.rb index 739de5b34..423bb1283 100644 --- a/generated/google/apis/datacatalog_v1beta1.rb +++ b/generated/google/apis/datacatalog_v1beta1.rb @@ -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' diff --git a/generated/google/apis/datacatalog_v1beta1/classes.rb b/generated/google/apis/datacatalog_v1beta1/classes.rb index 6602646c1..9e272a84d 100644 --- a/generated/google/apis/datacatalog_v1beta1/classes.rb +++ b/generated/google/apis/datacatalog_v1beta1/classes.rb @@ -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 diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index 2d29486b3..3451616c0 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -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' diff --git a/generated/google/apis/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index 24798f4e6..be397426b 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -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 diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index c578a2a8a..0e2e06eb5 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -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' diff --git a/generated/google/apis/pubsub_v1beta2/classes.rb b/generated/google/apis/pubsub_v1beta2/classes.rb index 0de76b845..ee94171b0 100644 --- a/generated/google/apis/pubsub_v1beta2/classes.rb +++ b/generated/google/apis/pubsub_v1beta2/classes.rb @@ -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 diff --git a/generated/google/apis/remotebuildexecution_v1.rb b/generated/google/apis/remotebuildexecution_v1.rb index b64f47209..f446404b0 100644 --- a/generated/google/apis/remotebuildexecution_v1.rb +++ b/generated/google/apis/remotebuildexecution_v1.rb @@ -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' diff --git a/generated/google/apis/remotebuildexecution_v1/classes.rb b/generated/google/apis/remotebuildexecution_v1/classes.rb index e7c8fedea..9e1461267 100644 --- a/generated/google/apis/remotebuildexecution_v1/classes.rb +++ b/generated/google/apis/remotebuildexecution_v1/classes.rb @@ -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 diff --git a/generated/google/apis/remotebuildexecution_v1/representations.rb b/generated/google/apis/remotebuildexecution_v1/representations.rb index 7c06f1351..ea60187cd 100644 --- a/generated/google/apis/remotebuildexecution_v1/representations.rb +++ b/generated/google/apis/remotebuildexecution_v1/representations.rb @@ -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 diff --git a/generated/google/apis/remotebuildexecution_v1alpha.rb b/generated/google/apis/remotebuildexecution_v1alpha.rb index 4ffb6c1c9..f5ab3b76f 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha.rb @@ -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' diff --git a/generated/google/apis/remotebuildexecution_v1alpha/classes.rb b/generated/google/apis/remotebuildexecution_v1alpha/classes.rb index 4aec1459f..737da59a7 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha/classes.rb @@ -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 diff --git a/generated/google/apis/remotebuildexecution_v1alpha/representations.rb b/generated/google/apis/remotebuildexecution_v1alpha/representations.rb index 951e8d894..8200f3b15 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha/representations.rb @@ -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 diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index c68397f34..bc1ed671a 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -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' diff --git a/generated/google/apis/run_v1alpha1/classes.rb b/generated/google/apis/run_v1alpha1/classes.rb index 75b235ed9..5b75e6653 100644 --- a/generated/google/apis/run_v1alpha1/classes.rb +++ b/generated/google/apis/run_v1alpha1/classes.rb @@ -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] attr_accessor :importers diff --git a/generated/google/apis/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index 5d4ffb436..ffa15c76f 100644 --- a/generated/google/apis/servicecontrol_v1.rb +++ b/generated/google/apis/servicecontrol_v1.rb @@ -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' diff --git a/generated/google/apis/servicecontrol_v1/classes.rb b/generated/google/apis/servicecontrol_v1/classes.rb index 7a420fca8..c86307c47 100644 --- a/generated/google/apis/servicecontrol_v1/classes.rb +++ b/generated/google/apis/servicecontrol_v1/classes.rb @@ -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] diff --git a/generated/google/apis/storage_v1beta1.rb b/generated/google/apis/storage_v1beta1.rb deleted file mode 100644 index 45cb71048..000000000 --- a/generated/google/apis/storage_v1beta1.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/storage_v1beta1/classes.rb b/generated/google/apis/storage_v1beta1/classes.rb deleted file mode 100644 index cb5d7f6a7..000000000 --- a/generated/google/apis/storage_v1beta1/classes.rb +++ /dev/null @@ -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] - attr_accessor :acl - - # Default access controls to apply to new objects when no ACL is provided. - # Corresponds to the JSON property `defaultObjectAcl` - # @return [Array] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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 diff --git a/generated/google/apis/storage_v1beta1/representations.rb b/generated/google/apis/storage_v1beta1/representations.rb deleted file mode 100644 index fbb8e4306..000000000 --- a/generated/google/apis/storage_v1beta1/representations.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/storage_v1beta1/service.rb b/generated/google/apis/storage_v1beta1/service.rb deleted file mode 100644 index c3c0e5d76..000000000 --- a/generated/google/apis/storage_v1beta1/service.rb +++ /dev/null @@ -1,1032 +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/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module StorageV1beta1 - # Cloud Storage JSON API - # - # Lets you store and retrieve potentially-large, immutable data objects. - # - # @example - # require 'google/apis/storage_v1beta1' - # - # Storage = Google::Apis::StorageV1beta1 # Alias the module - # service = Storage::StorageService.new - # - # @see https://developers.google.com/storage/docs/json_api/ - class StorageService < 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', 'storage/v1beta1/') - @batch_path = 'batch/storage/v1beta1' - end - - # Deletes the ACL entry for the specified entity on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', options) - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns the ACL entry for the specified entity on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::BucketAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::BucketAccessControl] - # - # @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_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', options) - command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta1::BucketAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new ACL entry on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [Google::Apis::StorageV1beta1::BucketAccessControl] bucket_access_control_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::BucketAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::BucketAccessControl] - # - # @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 insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'b/{bucket}/acl', options) - command.request_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation - command.request_object = bucket_access_control_object - command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta1::BucketAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves ACL entries on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::BucketAccessControls] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::BucketAccessControls] - # - # @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_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/acl', options) - command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControls::Representation - command.response_class = Google::Apis::StorageV1beta1::BucketAccessControls - command.params['bucket'] = bucket unless bucket.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates an ACL entry on the specified bucket. This method supports patch - # semantics. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta1::BucketAccessControl] bucket_access_control_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::BucketAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::BucketAccessControl] - # - # @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_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation - command.request_object = bucket_access_control_object - command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta1::BucketAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates an ACL entry on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta1::BucketAccessControl] bucket_access_control_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::BucketAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::BucketAccessControl] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation - command.request_object = bucket_access_control_object - command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta1::BucketAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Deletes an empty bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_bucket(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'b/{bucket}', options) - command.params['bucket'] = bucket unless bucket.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns metadata for the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] projection - # Set of properties to return. Defaults to no_acl. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Bucket] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Bucket] - # - # @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_bucket(bucket, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}', options) - command.response_representation = Google::Apis::StorageV1beta1::Bucket::Representation - command.response_class = Google::Apis::StorageV1beta1::Bucket - command.params['bucket'] = bucket unless bucket.nil? - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new bucket. - # @param [Google::Apis::StorageV1beta1::Bucket] bucket_object - # @param [String] projection - # Set of properties to return. Defaults to no_acl, unless the bucket resource - # specifies acl or defaultObjectAcl properties, when it defaults to full. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Bucket] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Bucket] - # - # @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 insert_bucket(bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'b', options) - command.request_representation = Google::Apis::StorageV1beta1::Bucket::Representation - command.request_object = bucket_object - command.response_representation = Google::Apis::StorageV1beta1::Bucket::Representation - command.response_class = Google::Apis::StorageV1beta1::Bucket - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves a list of buckets for a given project. - # @param [Fixnum] project_id - # A valid API project identifier. - # @param [Fixnum] max_results - # Maximum number of buckets to return. - # @param [String] page_token - # A previously-returned page token representing part of the larger set of - # results to view. - # @param [String] projection - # Set of properties to return. Defaults to no_acl. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Buckets] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Buckets] - # - # @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_buckets(project_id, max_results: nil, page_token: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b', options) - command.response_representation = Google::Apis::StorageV1beta1::Buckets::Representation - command.response_class = Google::Apis::StorageV1beta1::Buckets - command.query['max-results'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['projectId'] = project_id unless project_id.nil? - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates a bucket. This method supports patch semantics. - # @param [String] bucket - # Name of a bucket. - # @param [Google::Apis::StorageV1beta1::Bucket] bucket_object - # @param [String] projection - # Set of properties to return. Defaults to full. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Bucket] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Bucket] - # - # @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_bucket(bucket, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'b/{bucket}', options) - command.request_representation = Google::Apis::StorageV1beta1::Bucket::Representation - command.request_object = bucket_object - command.response_representation = Google::Apis::StorageV1beta1::Bucket::Representation - command.response_class = Google::Apis::StorageV1beta1::Bucket - command.params['bucket'] = bucket unless bucket.nil? - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates a bucket. - # @param [String] bucket - # Name of a bucket. - # @param [Google::Apis::StorageV1beta1::Bucket] bucket_object - # @param [String] projection - # Set of properties to return. Defaults to full. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Bucket] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Bucket] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_bucket(bucket, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'b/{bucket}', options) - command.request_representation = Google::Apis::StorageV1beta1::Bucket::Representation - command.request_object = bucket_object - command.response_representation = Google::Apis::StorageV1beta1::Bucket::Representation - command.response_class = Google::Apis::StorageV1beta1::Bucket - command.params['bucket'] = bucket unless bucket.nil? - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Deletes the ACL entry for the specified entity on the specified object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_object_access_control(bucket, object, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', options) - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns the ACL entry for the specified entity on the specified object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::ObjectAccessControl] - # - # @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_object_access_control(bucket, object, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', options) - command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new ACL entry on the specified object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [Google::Apis::StorageV1beta1::ObjectAccessControl] object_access_control_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::ObjectAccessControl] - # - # @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 insert_object_access_control(bucket, object, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', options) - command.request_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation - command.request_object = object_access_control_object - command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves ACL entries on the specified object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::ObjectAccessControls] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::ObjectAccessControls] - # - # @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_object_access_controls(bucket, object, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', options) - command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControls::Representation - command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControls - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates an ACL entry on the specified object. This method supports patch - # semantics. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta1::ObjectAccessControl] object_access_control_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::ObjectAccessControl] - # - # @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_object_access_control(bucket, object, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation - command.request_object = object_access_control_object - command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates an ACL entry on the specified object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta1::ObjectAccessControl] object_access_control_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::ObjectAccessControl] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_object_access_control(bucket, object, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation - command.request_object = object_access_control_object - command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Deletes data blobs and associated metadata. - # @param [String] bucket - # Name of the bucket in which the object resides. - # @param [String] object - # Name of the object. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_object(bucket, object, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'b/{bucket}/o/{object}', options) - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves objects or their associated metadata. - # @param [String] bucket - # Name of the bucket in which the object resides. - # @param [String] object - # Name of the object. - # @param [String] projection - # Set of properties to return. Defaults to no_acl. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Object] - # - # @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_object(bucket, object, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, 'b/{bucket}/o/{object}', options) - else - command = make_download_command(:get, 'b/{bucket}/o/{object}', options) - command.download_dest = download_dest - end - command.response_representation = Google::Apis::StorageV1beta1::Object::Representation - command.response_class = Google::Apis::StorageV1beta1::Object - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Stores new data blobs and associated metadata. - # @param [String] bucket - # Name of the bucket in which to store the new object. Overrides the provided - # object metadata's bucket value, if any. - # @param [Google::Apis::StorageV1beta1::Object] object_object - # @param [String] name - # Name of the object. Required when the object metadata is not otherwise - # provided. Overrides the object metadata's name value, if any. - # @param [String] projection - # Set of properties to return. Defaults to no_acl, unless the object resource - # specifies the acl property, when it defaults to full. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [IO, String] upload_source - # IO stream or filename containing content to upload - # @param [String] content_type - # Content type of the uploaded content. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Object] - # - # @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 insert_object(bucket, object_object = nil, name: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - if upload_source.nil? - command = make_simple_command(:post, 'b/{bucket}/o', options) - else - command = make_upload_command(:post, 'b/{bucket}/o', options) - command.upload_source = upload_source - command.upload_content_type = content_type - end - command.request_representation = Google::Apis::StorageV1beta1::Object::Representation - command.request_object = object_object - command.response_representation = Google::Apis::StorageV1beta1::Object::Representation - command.response_class = Google::Apis::StorageV1beta1::Object - command.params['bucket'] = bucket unless bucket.nil? - command.query['name'] = name unless name.nil? - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves a list of objects matching the criteria. - # @param [String] bucket - # Name of the bucket in which to look for objects. - # @param [String] delimiter - # Returns results in a directory-like mode. items will contain only objects - # whose names, aside from the prefix, do not contain delimiter. Objects whose - # names, aside from the prefix, contain delimiter will have their name, - # truncated after the delimiter, returned in prefixes. Duplicate prefixes are - # omitted. - # @param [Fixnum] max_results - # Maximum number of items plus prefixes to return. As duplicate prefixes are - # omitted, fewer total results may be returned than requested. - # @param [String] page_token - # A previously-returned page token representing part of the larger set of - # results to view. - # @param [String] prefix - # Filter results to objects whose names begin with this prefix. - # @param [String] projection - # Set of properties to return. Defaults to no_acl. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Objects] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Objects] - # - # @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_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/o', options) - command.response_representation = Google::Apis::StorageV1beta1::Objects::Representation - command.response_class = Google::Apis::StorageV1beta1::Objects - command.params['bucket'] = bucket unless bucket.nil? - command.query['delimiter'] = delimiter unless delimiter.nil? - command.query['max-results'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['prefix'] = prefix unless prefix.nil? - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates a data blob's associated metadata. This method supports patch - # semantics. - # @param [String] bucket - # Name of the bucket in which the object resides. - # @param [String] object - # Name of the object. - # @param [Google::Apis::StorageV1beta1::Object] object_object - # @param [String] projection - # Set of properties to return. Defaults to full. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Object] - # - # @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_object(bucket, object, object_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options) - command.request_representation = Google::Apis::StorageV1beta1::Object::Representation - command.request_object = object_object - command.response_representation = Google::Apis::StorageV1beta1::Object::Representation - command.response_class = Google::Apis::StorageV1beta1::Object - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates a data blob's associated metadata. - # @param [String] bucket - # Name of the bucket in which the object resides. - # @param [String] object - # Name of the object. - # @param [Google::Apis::StorageV1beta1::Object] object_object - # @param [String] projection - # Set of properties to return. Defaults to full. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta1::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta1::Object] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_object(bucket, object, object_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:put, 'b/{bucket}/o/{object}', options) - else - command = make_download_command(:put, 'b/{bucket}/o/{object}', options) - command.download_dest = download_dest - end - command.request_representation = Google::Apis::StorageV1beta1::Object::Representation - command.request_object = object_object - command.response_representation = Google::Apis::StorageV1beta1::Object::Representation - command.response_class = Google::Apis::StorageV1beta1::Object - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['projection'] = projection unless projection.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end