diff --git a/api_names_out.yaml b/api_names_out.yaml
index ba0bdcc7f..3f3cdbdb5 100644
--- a/api_names_out.yaml
+++ b/api_names_out.yaml
@@ -10130,6 +10130,10 @@
"/bigquery:v2/JobStatistics2/queryPlan/query_plan": query_plan
"/bigquery:v2/JobStatistics2/referencedTables": referenced_tables
"/bigquery:v2/JobStatistics2/referencedTables/referenced_table": referenced_table
+"/bigquery:v2/JobStatistics2/reservationUsage": reservation_usage
+"/bigquery:v2/JobStatistics2/reservationUsage/reservation_usage": reservation_usage
+"/bigquery:v2/JobStatistics2/reservationUsage/reservation_usage/name": name
+"/bigquery:v2/JobStatistics2/reservationUsage/reservation_usage/slotMs": slot_ms
"/bigquery:v2/JobStatistics2/schema": schema
"/bigquery:v2/JobStatistics2/statementType": statement_type
"/bigquery:v2/JobStatistics2/timeline": timeline
@@ -36483,6 +36487,8 @@
"/dataproc:v1beta2/InstanceGroupConfig/numInstances": num_instances
"/dataproc:v1beta2/InstantiateWorkflowTemplateRequest": instantiate_workflow_template_request
"/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/instanceId": instance_id
+"/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/parameters": parameters
+"/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/parameters/parameter": parameter
"/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/version": version
"/dataproc:v1beta2/Job": job
"/dataproc:v1beta2/Job/driverControlFilesUri": driver_control_files_uri
@@ -36571,6 +36577,9 @@
"/dataproc:v1beta2/OrderedJob/sparkJob": spark_job
"/dataproc:v1beta2/OrderedJob/sparkSqlJob": spark_sql_job
"/dataproc:v1beta2/OrderedJob/stepId": step_id
+"/dataproc:v1beta2/ParameterValidation": parameter_validation
+"/dataproc:v1beta2/ParameterValidation/regex": regex
+"/dataproc:v1beta2/ParameterValidation/values": values
"/dataproc:v1beta2/PigJob": pig_job
"/dataproc:v1beta2/PigJob/continueOnFailure": continue_on_failure
"/dataproc:v1beta2/PigJob/jarFileUris": jar_file_uris
@@ -36605,6 +36614,9 @@
"/dataproc:v1beta2/QueryList": query_list
"/dataproc:v1beta2/QueryList/queries": queries
"/dataproc:v1beta2/QueryList/queries/query": query
+"/dataproc:v1beta2/RegexValidation": regex_validation
+"/dataproc:v1beta2/RegexValidation/regexes": regexes
+"/dataproc:v1beta2/RegexValidation/regexes/regex": regex
"/dataproc:v1beta2/SetIamPolicyRequest": set_iam_policy_request
"/dataproc:v1beta2/SetIamPolicyRequest/policy": policy
"/dataproc:v1beta2/SoftwareConfig": software_config
@@ -36644,12 +36656,21 @@
"/dataproc:v1beta2/SubmitJobRequest": submit_job_request
"/dataproc:v1beta2/SubmitJobRequest/job": job
"/dataproc:v1beta2/SubmitJobRequest/requestId": request_id
+"/dataproc:v1beta2/TemplateParameter": template_parameter
+"/dataproc:v1beta2/TemplateParameter/description": description
+"/dataproc:v1beta2/TemplateParameter/fields": fields
+"/dataproc:v1beta2/TemplateParameter/fields/field": field
+"/dataproc:v1beta2/TemplateParameter/name": name
+"/dataproc:v1beta2/TemplateParameter/validation": validation
"/dataproc:v1beta2/TestIamPermissionsRequest": test_iam_permissions_request
"/dataproc:v1beta2/TestIamPermissionsRequest/permissions": permissions
"/dataproc:v1beta2/TestIamPermissionsRequest/permissions/permission": permission
"/dataproc:v1beta2/TestIamPermissionsResponse": test_iam_permissions_response
"/dataproc:v1beta2/TestIamPermissionsResponse/permissions": permissions
"/dataproc:v1beta2/TestIamPermissionsResponse/permissions/permission": permission
+"/dataproc:v1beta2/ValueValidation": value_validation
+"/dataproc:v1beta2/ValueValidation/values": values
+"/dataproc:v1beta2/ValueValidation/values/value": value
"/dataproc:v1beta2/WorkflowGraph": workflow_graph
"/dataproc:v1beta2/WorkflowGraph/nodes": nodes
"/dataproc:v1beta2/WorkflowGraph/nodes/node": node
@@ -36678,6 +36699,8 @@
"/dataproc:v1beta2/WorkflowTemplate/labels": labels
"/dataproc:v1beta2/WorkflowTemplate/labels/label": label
"/dataproc:v1beta2/WorkflowTemplate/name": name
+"/dataproc:v1beta2/WorkflowTemplate/parameters": parameters
+"/dataproc:v1beta2/WorkflowTemplate/parameters/parameter": parameter
"/dataproc:v1beta2/WorkflowTemplate/placement": placement
"/dataproc:v1beta2/WorkflowTemplate/updateTime": update_time
"/dataproc:v1beta2/WorkflowTemplate/version": version
@@ -74754,6 +74777,7 @@
"/storage:v1/storage.objects.list": list_objects
"/storage:v1/storage.objects.list/bucket": bucket
"/storage:v1/storage.objects.list/delimiter": delimiter
+"/storage:v1/storage.objects.list/includeTrailingDelimiter": include_trailing_delimiter
"/storage:v1/storage.objects.list/maxResults": max_results
"/storage:v1/storage.objects.list/pageToken": page_token
"/storage:v1/storage.objects.list/prefix": prefix
@@ -74816,6 +74840,7 @@
"/storage:v1/storage.objects.watchAll": watch_all_objects
"/storage:v1/storage.objects.watchAll/bucket": bucket
"/storage:v1/storage.objects.watchAll/delimiter": delimiter
+"/storage:v1/storage.objects.watchAll/includeTrailingDelimiter": include_trailing_delimiter
"/storage:v1/storage.objects.watchAll/maxResults": max_results
"/storage:v1/storage.objects.watchAll/pageToken": page_token
"/storage:v1/storage.objects.watchAll/prefix": prefix
diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb
index 91859eb1c..9e6681f92 100644
--- a/generated/google/apis/adexchangebuyer2_v2beta1.rb
+++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
- REVISION = '20180508'
+ REVISION = '20180524'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb
index 54e29d7a3..a6803dd5a 100644
--- a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb
+++ b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb
@@ -542,7 +542,7 @@ module Google
# @param [String] query
# An optional query string to filter creatives. If no filter is specified,
# all active creatives will be returned.
- # Supported queries are:
+ #
Supported queries are:
#
# - accountId=account_id_string
#
- creativeId=creative_id_string
diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb
index 5245cfbb8..c2f4e458d 100644
--- a/generated/google/apis/androidmanagement_v1.rb
+++ b/generated/google/apis/androidmanagement_v1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
- REVISION = '20180523'
+ REVISION = '20180524'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb
index 16c53b4aa..260141e60 100644
--- a/generated/google/apis/bigquery_v2.rb
+++ b/generated/google/apis/bigquery_v2.rb
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
- REVISION = '20180510'
+ REVISION = '20180517'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb
index ded95f708..0087790b5 100644
--- a/generated/google/apis/bigquery_v2/classes.rb
+++ b/generated/google/apis/bigquery_v2/classes.rb
@@ -2122,6 +2122,11 @@ module Google
# @return [Array]
attr_accessor :referenced_tables
+ # [Output-only] Job resource usage breakdown by reservation.
+ # Corresponds to the JSON property `reservationUsage`
+ # @return [Array]
+ attr_accessor :reservation_usage
+
# [Output-only] The schema of the results. Present only for successful dry run
# of non-legacy SQL queries.
# Corresponds to the JSON property `schema`
@@ -2188,6 +2193,7 @@ module Google
@num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
@query_plan = args[:query_plan] if args.key?(:query_plan)
@referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
+ @reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)
@schema = args[:schema] if args.key?(:schema)
@statement_type = args[:statement_type] if args.key?(:statement_type)
@timeline = args[:timeline] if args.key?(:timeline)
@@ -2197,6 +2203,31 @@ module Google
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
@undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
end
+
+ #
+ class ReservationUsage
+ include Google::Apis::Core::Hashable
+
+ # [Output-only] Reservation name or "unreserved" for on-demand resources usage.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ # [Output-only] Slot-milliseconds the job spent in the given reservation.
+ # Corresponds to the JSON property `slotMs`
+ # @return [Fixnum]
+ attr_accessor :slot_ms
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @name = args[:name] if args.key?(:name)
+ @slot_ms = args[:slot_ms] if args.key?(:slot_ms)
+ end
+ end
end
#
diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb
index e414c486f..0fa7fab7e 100644
--- a/generated/google/apis/bigquery_v2/representations.rb
+++ b/generated/google/apis/bigquery_v2/representations.rb
@@ -204,6 +204,12 @@ module Google
class JobStatistics2
class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ class ReservationUsage
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
include Google::Apis::Core::JsonObjectSupport
end
@@ -857,6 +863,8 @@ module Google
collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
+ collection :reservation_usage, as: 'reservationUsage', class: Google::Apis::BigqueryV2::JobStatistics2::ReservationUsage, decorator: Google::Apis::BigqueryV2::JobStatistics2::ReservationUsage::Representation
+
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
property :statement_type, as: 'statementType'
@@ -869,6 +877,14 @@ module Google
collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
end
+
+ class ReservationUsage
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :name, as: 'name'
+ property :slot_ms, :numeric_string => true, as: 'slotMs'
+ end
+ end
end
class JobStatistics3
diff --git a/generated/google/apis/bigquery_v2/service.rb b/generated/google/apis/bigquery_v2/service.rb
index 5a73ac5e2..7fab5669a 100644
--- a/generated/google/apis/bigquery_v2/service.rb
+++ b/generated/google/apis/bigquery_v2/service.rb
@@ -305,7 +305,8 @@ module Google
# [Required] Job ID of the job to cancel
# @param [String] location
# [Experimental] The geographic location of the job. Required except for US and
- # EU.
+ # EU. See details at https://cloud.google.com/bigquery/docs/dataset-locations#
+ # specifying_your_location.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -347,7 +348,8 @@ module Google
# [Required] Job ID of the requested job
# @param [String] location
# [Experimental] The geographic location of the job. Required except for US and
- # EU.
+ # EU. See details at https://cloud.google.com/bigquery/docs/dataset-locations#
+ # specifying_your_location.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -387,7 +389,8 @@ module Google
# [Required] Job ID of the query job
# @param [String] location
# [Experimental] The geographic location where the job should run. Required
- # except for US and EU.
+ # except for US and EU. See details at https://cloud.google.com/bigquery/docs/
+ # dataset-locations#specifying_your_location.
# @param [Fixnum] max_results
# Maximum number of results to read
# @param [String] page_token
diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb
index 932af24a9..0cf3cec39 100644
--- a/generated/google/apis/cloudresourcemanager_v1.rb
+++ b/generated/google/apis/cloudresourcemanager_v1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1
VERSION = 'V1'
- REVISION = '20180517'
+ REVISION = '20180521'
# 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/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb
index 55f3764ba..6cde8d8d4 100644
--- a/generated/google/apis/cloudresourcemanager_v1/service.rb
+++ b/generated/google/apis/cloudresourcemanager_v1/service.rb
@@ -823,6 +823,10 @@ module Google
# `resourcemanager.projects.create` on the specified parent for the new
# project. The parent is identified by a specified ResourceId,
# which must include both an ID and a type, such as organization.
+ # This method does not associate the new project with a billing account.
+ # You can set or update the billing account associated with a project using
+ # the [`projects.updateBillingInfo`]
+ # (/billing/reference/rest/v1/projects/updateBillingInfo) method.
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb
index 3019036f0..0d5c9f240 100644
--- a/generated/google/apis/cloudresourcemanager_v1beta1.rb
+++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1
VERSION = 'V1beta1'
- REVISION = '20180418'
+ REVISION = '20180521'
# 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/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb
index 0ffd53913..233bf3036 100644
--- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb
+++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb
@@ -283,6 +283,10 @@ module Google
# Google Cloud Storage. The parent is identified by a specified
# ResourceId, which must include both an ID and a type, such as
# project, folder, or organization.
+ # This method does not associate the new project with a billing account.
+ # You can set or update the billing account associated with a project using
+ # the [`projects.updateBillingInfo`]
+ # (/billing/reference/rest/v1/projects/updateBillingInfo) method.
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
# @param [Boolean] use_legacy_stack
# A safety hatch to opt out of the new reliable project creation process.
diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb
index f8e5810ce..4d5842b88 100644
--- a/generated/google/apis/content_v2.rb
+++ b/generated/google/apis/content_v2.rb
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
- REVISION = '20180507'
+ REVISION = '20180523'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb
index 09c627117..c6c7c20f7 100644
--- a/generated/google/apis/content_v2/classes.rb
+++ b/generated/google/apis/content_v2/classes.rb
@@ -3325,8 +3325,8 @@ module Google
attr_accessor :quantity
# The reason for the cancellation. Orders that are cancelled with a noInventory
- # reason will lead to the removal of the product from POG until you make an
- # update to that product. This will not affect your Shopping ads.
+ # reason will lead to the removal of the product from Shopping Actions until you
+ # make an update to that product. This will not affect your Shopping ads.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
diff --git a/generated/google/apis/content_v2sandbox.rb b/generated/google/apis/content_v2sandbox.rb
index ea1a20b83..18ef59feb 100644
--- a/generated/google/apis/content_v2sandbox.rb
+++ b/generated/google/apis/content_v2sandbox.rb
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2sandbox
VERSION = 'V2sandbox'
- REVISION = '20180410'
+ REVISION = '20180523'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
diff --git a/generated/google/apis/content_v2sandbox/classes.rb b/generated/google/apis/content_v2sandbox/classes.rb
index 0f254030b..c36ac9498 100644
--- a/generated/google/apis/content_v2sandbox/classes.rb
+++ b/generated/google/apis/content_v2sandbox/classes.rb
@@ -310,8 +310,8 @@ module Google
attr_accessor :quantity
# The reason for the cancellation. Orders that are cancelled with a noInventory
- # reason will lead to the removal of the product from POG until you make an
- # update to that product. This will not affect your Shopping ads.
+ # reason will lead to the removal of the product from Shopping Actions until you
+ # make an update to that product. This will not affect your Shopping ads.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb
index 08e234b12..f097fa762 100644
--- a/generated/google/apis/dataproc_v1beta2.rb
+++ b/generated/google/apis/dataproc_v1beta2.rb
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1beta2
VERSION = 'V1beta2'
- REVISION = '20180502'
+ REVISION = '20180522'
# 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb
index 437c8688d..3357ac277 100644
--- a/generated/google/apis/dataproc_v1beta2/classes.rb
+++ b/generated/google/apis/dataproc_v1beta2/classes.rb
@@ -919,6 +919,12 @@ module Google
# @return [String]
attr_accessor :instance_id
+ # Optional. Map from parameter names to values that should be used for those
+ # parameters.
+ # Corresponds to the JSON property `parameters`
+ # @return [Hash]
+ attr_accessor :parameters
+
# Optional. The version of workflow template to instantiate. If specified, the
# workflow will be instantiated only if the current version of the workflow
# template has the supplied version.This option cannot be used to instantiate a
@@ -934,6 +940,7 @@ module Google
# Update properties of this object
def update!(**args)
@instance_id = args[:instance_id] if args.key?(:instance_id)
+ @parameters = args[:parameters] if args.key?(:parameters)
@version = args[:version] if args.key?(:version)
end
end
@@ -1608,6 +1615,31 @@ module Google
end
end
+ # Configuration for parameter validation.
+ class ParameterValidation
+ include Google::Apis::Core::Hashable
+
+ # Validation based on regular expressions.
+ # Corresponds to the JSON property `regex`
+ # @return [Google::Apis::DataprocV1beta2::RegexValidation]
+ attr_accessor :regex
+
+ # Validation based on a list of allowed values.
+ # Corresponds to the JSON property `values`
+ # @return [Google::Apis::DataprocV1beta2::ValueValidation]
+ attr_accessor :values
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @regex = args[:regex] if args.key?(:regex)
+ @values = args[:values] if args.key?(:values)
+ end
+ end
+
# A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
# on YARN.
class PigJob
@@ -1849,6 +1881,27 @@ module Google
end
end
+ # Validation based on regular expressions.
+ class RegexValidation
+ include Google::Apis::Core::Hashable
+
+ # Required. RE2 regular expressions used to validate the parameter's value. The
+ # provided value must match the regexes in its entirety, e.g. substring matches
+ # are not enough.
+ # Corresponds to the JSON property `regexes`
+ # @return [Array]
+ attr_accessor :regexes
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @regexes = args[:regexes] if args.key?(:regexes)
+ end
+ end
+
# Request message for SetIamPolicy method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
@@ -2164,6 +2217,73 @@ module Google
end
end
+ # A configurable parameter that replaces one or more fields in the template.
+ class TemplateParameter
+ include Google::Apis::Core::Hashable
+
+ # Optional. User-friendly description of the parameter. Must not exceed 1024
+ # characters.
+ # Corresponds to the JSON property `description`
+ # @return [String]
+ attr_accessor :description
+
+ # Required. Paths to all fields that this parameter replaces. Each field may
+ # appear in at most one Parameter's fields list.Field path syntax:A field path
+ # is similar to a FieldMask. For example, a field path that references the zone
+ # field of the template's cluster selector would look like:placement.
+ # clusterSelector.zoneThe only differences between field paths and standard
+ # field masks are that:
+ # Values in maps can be referenced by key.Example: placement.clusterSelector.
+ # clusterLabels'key'
+ # Jobs in the jobs list can be referenced by step id.Example: jobs'step-id'.
+ # hadoopJob.mainJarFileUri
+ # Items in repeated fields can be referenced by zero-based index.Example: jobs'
+ # step-id'.sparkJob.args0NOTE: Maps and repeated fields may not be parameterized
+ # in their entirety. Only individual map values and items in repeated fields may
+ # be referenced. For example, the following field paths are invalid: - placement.
+ # clusterSelector.clusterLabels - jobs'step-id'.sparkJob.argsParameterizable
+ # fields:Only certain types of fields may be parameterized, specifically: -
+ # Labels - File uris - Job properties - Job arguments - Script variables - Main
+ # class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)Examples of
+ # parameterizable fields:Labels:labels'key' placement.managedCluster.labels'key'
+ # placement.clusterSelector.clusterLabels'key' jobs'step-id'.labels'key'File
+ # uris:jobs'step-id'.hadoopJob.mainJarFileUri jobs'step-id'.hiveJob.queryFileUri
+ # jobs'step-id'.pySparkJob.mainPythonFileUri jobs'step-id'.hadoopJob.
+ # jarFileUris0 jobs'step-id'.hadoopJob.archiveUris0 jobs'step-id'.hadoopJob.
+ # fileUris0 jobs'step-id'.pySparkJob.pythonFileUris0Other:jobs'step-id'.
+ # hadoopJob.properties'key' jobs'step-id'.hadoopJob.args0 jobs'step-id'.hiveJob.
+ # scriptVariables'key' jobs'step-id'.hadoopJob.mainJarFileUri placement.
+ # clusterSelector.zone
+ # Corresponds to the JSON property `fields`
+ # @return [Array]
+ attr_accessor :fields
+
+ # Required. User-friendly parameter name. This name is used as a key when
+ # providing a value for this parameter when the template is instantiated. Must
+ # contain only capital letters (A-Z), numbers (0-9), and underscores (_), and
+ # must not start with a number. The maximum length is 40 characters.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ # Configuration for parameter validation.
+ # Corresponds to the JSON property `validation`
+ # @return [Google::Apis::DataprocV1beta2::ParameterValidation]
+ attr_accessor :validation
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @description = args[:description] if args.key?(:description)
+ @fields = args[:fields] if args.key?(:fields)
+ @name = args[:name] if args.key?(:name)
+ @validation = args[:validation] if args.key?(:validation)
+ end
+ end
+
# Request message for TestIamPermissions method.
class TestIamPermissionsRequest
include Google::Apis::Core::Hashable
@@ -2204,6 +2324,25 @@ module Google
end
end
+ # Validation based on a list of allowed values.
+ class ValueValidation
+ include Google::Apis::Core::Hashable
+
+ # Required. List of allowed values for this parameter.
+ # Corresponds to the JSON property `values`
+ # @return [Array]
+ attr_accessor :values
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @values = args[:values] if args.key?(:values)
+ end
+ end
+
# The workflow graph.
class WorkflowGraph
include Google::Apis::Core::Hashable
@@ -2365,6 +2504,12 @@ module Google
# @return [String]
attr_accessor :name
+ # Optional. Template parameters whose values are substituted into the template.
+ # Values for these parameters must be provided when the template is instantiated.
+ # Corresponds to the JSON property `parameters`
+ # @return [Array]
+ attr_accessor :parameters
+
# Specifies workflow execution target.Either managed_cluster or cluster_selector
# is required.
# Corresponds to the JSON property `placement`
@@ -2399,6 +2544,7 @@ module Google
@jobs = args[:jobs] if args.key?(:jobs)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
+ @parameters = args[:parameters] if args.key?(:parameters)
@placement = args[:placement] if args.key?(:placement)
@update_time = args[:update_time] if args.key?(:update_time)
@version = args[:version] if args.key?(:version)
diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb
index 5807e85a7..450e82113 100644
--- a/generated/google/apis/dataproc_v1beta2/representations.rb
+++ b/generated/google/apis/dataproc_v1beta2/representations.rb
@@ -244,6 +244,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class ParameterValidation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class PigJob
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -268,6 +274,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class RegexValidation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -304,6 +316,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class TemplateParameter
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -316,6 +334,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class ValueValidation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class WorkflowGraph
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -572,6 +596,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance_id, as: 'instanceId'
+ hash :parameters, as: 'parameters'
property :version, as: 'version'
end
end
@@ -755,6 +780,16 @@ module Google
end
end
+ class ParameterValidation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :regex, as: 'regex', class: Google::Apis::DataprocV1beta2::RegexValidation, decorator: Google::Apis::DataprocV1beta2::RegexValidation::Representation
+
+ property :values, as: 'values', class: Google::Apis::DataprocV1beta2::ValueValidation, decorator: Google::Apis::DataprocV1beta2::ValueValidation::Representation
+
+ end
+ end
+
class PigJob
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -802,6 +837,13 @@ module Google
end
end
+ class RegexValidation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :regexes, as: 'regexes'
+ end
+ end
+
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -865,6 +907,17 @@ module Google
end
end
+ class TemplateParameter
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :description, as: 'description'
+ collection :fields, as: 'fields'
+ property :name, as: 'name'
+ property :validation, as: 'validation', class: Google::Apis::DataprocV1beta2::ParameterValidation, decorator: Google::Apis::DataprocV1beta2::ParameterValidation::Representation
+
+ end
+ end
+
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -879,6 +932,13 @@ module Google
end
end
+ class ValueValidation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :values, as: 'values'
+ end
+ end
+
class WorkflowGraph
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -924,6 +984,8 @@ module Google
hash :labels, as: 'labels'
property :name, as: 'name'
+ collection :parameters, as: 'parameters', class: Google::Apis::DataprocV1beta2::TemplateParameter, decorator: Google::Apis::DataprocV1beta2::TemplateParameter::Representation
+
property :placement, as: 'placement', class: Google::Apis::DataprocV1beta2::WorkflowTemplatePlacement, decorator: Google::Apis::DataprocV1beta2::WorkflowTemplatePlacement::Representation
property :update_time, as: 'updateTime'
diff --git a/generated/google/apis/resourceviews_v1beta1.rb b/generated/google/apis/resourceviews_v1beta1.rb
deleted file mode 100644
index dbff2707a..000000000
--- a/generated/google/apis/resourceviews_v1beta1.rb
+++ /dev/null
@@ -1,50 +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/resourceviews_v1beta1/service.rb'
-require 'google/apis/resourceviews_v1beta1/classes.rb'
-require 'google/apis/resourceviews_v1beta1/representations.rb'
-
-module Google
- module Apis
- # Resource Views API
- #
- # The Resource View API allows users to create and manage logical sets of Google
- # Compute Engine instances.
- #
- # @see https://developers.google.com/compute/
- module ResourceviewsV1beta1
- VERSION = 'V1beta1'
- REVISION = '20160512'
-
- # View and manage your data across Google Cloud Platform services
- AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
-
- # View your data across Google Cloud Platform services
- AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
-
- # View and manage your Google Compute Engine resources
- AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
-
- # View your Google Compute Engine resources
- AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly'
-
- # View and manage your Google Cloud Platform management resources and deployment status information
- AUTH_NDEV_CLOUDMAN = 'https://www.googleapis.com/auth/ndev.cloudman'
-
- # View your Google Cloud Platform management resources and deployment status information
- AUTH_NDEV_CLOUDMAN_READONLY = 'https://www.googleapis.com/auth/ndev.cloudman.readonly'
- end
- end
-end
diff --git a/generated/google/apis/resourceviews_v1beta1/classes.rb b/generated/google/apis/resourceviews_v1beta1/classes.rb
deleted file mode 100644
index 23be42a26..000000000
--- a/generated/google/apis/resourceviews_v1beta1/classes.rb
+++ /dev/null
@@ -1,338 +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 ResourceviewsV1beta1
-
- # The Label to be applied to the resource views.
- class Label
- include Google::Apis::Core::Hashable
-
- # Key of the label.
- # Corresponds to the JSON property `key`
- # @return [String]
- attr_accessor :key
-
- # Value of the label.
- # Corresponds to the JSON property `value`
- # @return [String]
- attr_accessor :value
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @key = args[:key] if args.key?(:key)
- @value = args[:value] if args.key?(:value)
- end
- end
-
- # The request to add resources to the resource view.
- class RegionViewsAddResourcesRequest
- include Google::Apis::Core::Hashable
-
- # The list of resources to be added.
- # Corresponds to the JSON property `resources`
- # @return [Array]
- attr_accessor :resources
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @resources = args[:resources] if args.key?(:resources)
- end
- end
-
- # The response to a resource view insert request.
- class RegionViewsInsertResponse
- include Google::Apis::Core::Hashable
-
- # The resource view object.
- # Corresponds to the JSON property `resource`
- # @return [Google::Apis::ResourceviewsV1beta1::ResourceView]
- attr_accessor :resource
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @resource = args[:resource] if args.key?(:resource)
- end
- end
-
- # The response to the list resource request.
- class RegionViewsListResourcesResponse
- include Google::Apis::Core::Hashable
-
- # The resources in the view.
- # Corresponds to the JSON property `members`
- # @return [Array]
- attr_accessor :members
-
- # A token used for pagination.
- # 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)
- @members = args[:members] if args.key?(:members)
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
- end
- end
-
- # The response to the list resource view request.
- class RegionViewsListResponse
- include Google::Apis::Core::Hashable
-
- # A token used for pagination.
- # Corresponds to the JSON property `nextPageToken`
- # @return [String]
- attr_accessor :next_page_token
-
- # The list of resource views that meet the criteria.
- # Corresponds to the JSON property `resourceViews`
- # @return [Array]
- attr_accessor :resource_views
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
- @resource_views = args[:resource_views] if args.key?(:resource_views)
- end
- end
-
- # The request to remove resources from the resource view.
- class RegionViewsRemoveResourcesRequest
- include Google::Apis::Core::Hashable
-
- # The list of resources to be removed.
- # Corresponds to the JSON property `resources`
- # @return [Array]
- attr_accessor :resources
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @resources = args[:resources] if args.key?(:resources)
- end
- end
-
- # The resource view object.
- class ResourceView
- include Google::Apis::Core::Hashable
-
- # The creation time of the resource view.
- # Corresponds to the JSON property `creationTime`
- # @return [String]
- attr_accessor :creation_time
-
- # The detailed description of the resource view.
- # Corresponds to the JSON property `description`
- # @return [String]
- attr_accessor :description
-
- # [Output Only] The ID of the resource view.
- # Corresponds to the JSON property `id`
- # @return [String]
- attr_accessor :id
-
- # Type of the resource.
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # The labels for events.
- # Corresponds to the JSON property `labels`
- # @return [Array]
- attr_accessor :labels
-
- # The last modified time of the view. Not supported yet.
- # Corresponds to the JSON property `lastModified`
- # @return [String]
- attr_accessor :last_modified
-
- # A list of all resources in the resource view.
- # Corresponds to the JSON property `members`
- # @return [Array]
- attr_accessor :members
-
- # The name of the resource view.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- # The total number of resources in the resource view.
- # Corresponds to the JSON property `numMembers`
- # @return [Fixnum]
- attr_accessor :num_members
-
- # [Output Only] A self-link to the resource view.
- # 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)
- @creation_time = args[:creation_time] if args.key?(:creation_time)
- @description = args[:description] if args.key?(:description)
- @id = args[:id] if args.key?(:id)
- @kind = args[:kind] if args.key?(:kind)
- @labels = args[:labels] if args.key?(:labels)
- @last_modified = args[:last_modified] if args.key?(:last_modified)
- @members = args[:members] if args.key?(:members)
- @name = args[:name] if args.key?(:name)
- @num_members = args[:num_members] if args.key?(:num_members)
- @self_link = args[:self_link] if args.key?(:self_link)
- end
- end
-
- # The request to add resources to the resource view.
- class ZoneViewsAddResourcesRequest
- include Google::Apis::Core::Hashable
-
- # The list of resources to be added.
- # Corresponds to the JSON property `resources`
- # @return [Array]
- attr_accessor :resources
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @resources = args[:resources] if args.key?(:resources)
- end
- end
-
- # The response to an insert request.
- class ZoneViewsInsertResponse
- include Google::Apis::Core::Hashable
-
- # The resource view object.
- # Corresponds to the JSON property `resource`
- # @return [Google::Apis::ResourceviewsV1beta1::ResourceView]
- attr_accessor :resource
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @resource = args[:resource] if args.key?(:resource)
- end
- end
-
- # The response to a list resource request.
- class ZoneViewsListResourcesResponse
- include Google::Apis::Core::Hashable
-
- # The full URL of resources in the view.
- # Corresponds to the JSON property `members`
- # @return [Array]
- attr_accessor :members
-
- # A token used for pagination.
- # 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)
- @members = args[:members] if args.key?(:members)
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
- end
- end
-
- # The response to a list request.
- class ZoneViewsListResponse
- include Google::Apis::Core::Hashable
-
- # A token used for pagination.
- # Corresponds to the JSON property `nextPageToken`
- # @return [String]
- attr_accessor :next_page_token
-
- # The result that contains all resource views that meet the criteria.
- # Corresponds to the JSON property `resourceViews`
- # @return [Array]
- attr_accessor :resource_views
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
- @resource_views = args[:resource_views] if args.key?(:resource_views)
- end
- end
-
- # The request to remove resources from the resource view.
- class ZoneViewsRemoveResourcesRequest
- include Google::Apis::Core::Hashable
-
- # The list of resources to be removed.
- # Corresponds to the JSON property `resources`
- # @return [Array]
- attr_accessor :resources
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @resources = args[:resources] if args.key?(:resources)
- end
- end
- end
- end
-end
diff --git a/generated/google/apis/resourceviews_v1beta1/representations.rb b/generated/google/apis/resourceviews_v1beta1/representations.rb
deleted file mode 100644
index a12819abb..000000000
--- a/generated/google/apis/resourceviews_v1beta1/representations.rb
+++ /dev/null
@@ -1,201 +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 ResourceviewsV1beta1
-
- class Label
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class RegionViewsAddResourcesRequest
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class RegionViewsInsertResponse
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class RegionViewsListResourcesResponse
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class RegionViewsListResponse
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class RegionViewsRemoveResourcesRequest
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ResourceView
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ZoneViewsAddResourcesRequest
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ZoneViewsInsertResponse
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ZoneViewsListResourcesResponse
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ZoneViewsListResponse
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ZoneViewsRemoveResourcesRequest
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class Label
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :key, as: 'key'
- property :value, as: 'value'
- end
- end
-
- class RegionViewsAddResourcesRequest
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :resources, as: 'resources'
- end
- end
-
- class RegionViewsInsertResponse
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :resource, as: 'resource', class: Google::Apis::ResourceviewsV1beta1::ResourceView, decorator: Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
-
- end
- end
-
- class RegionViewsListResourcesResponse
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :members, as: 'members'
- property :next_page_token, as: 'nextPageToken'
- end
- end
-
- class RegionViewsListResponse
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :next_page_token, as: 'nextPageToken'
- collection :resource_views, as: 'resourceViews', class: Google::Apis::ResourceviewsV1beta1::ResourceView, decorator: Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
-
- end
- end
-
- class RegionViewsRemoveResourcesRequest
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :resources, as: 'resources'
- end
- end
-
- class ResourceView
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :creation_time, as: 'creationTime'
- property :description, as: 'description'
- property :id, as: 'id'
- property :kind, as: 'kind'
- collection :labels, as: 'labels', class: Google::Apis::ResourceviewsV1beta1::Label, decorator: Google::Apis::ResourceviewsV1beta1::Label::Representation
-
- property :last_modified, as: 'lastModified'
- collection :members, as: 'members'
- property :name, as: 'name'
- property :num_members, as: 'numMembers'
- property :self_link, as: 'selfLink'
- end
- end
-
- class ZoneViewsAddResourcesRequest
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :resources, as: 'resources'
- end
- end
-
- class ZoneViewsInsertResponse
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :resource, as: 'resource', class: Google::Apis::ResourceviewsV1beta1::ResourceView, decorator: Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
-
- end
- end
-
- class ZoneViewsListResourcesResponse
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :members, as: 'members'
- property :next_page_token, as: 'nextPageToken'
- end
- end
-
- class ZoneViewsListResponse
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :next_page_token, as: 'nextPageToken'
- collection :resource_views, as: 'resourceViews', class: Google::Apis::ResourceviewsV1beta1::ResourceView, decorator: Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
-
- end
- end
-
- class ZoneViewsRemoveResourcesRequest
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :resources, as: 'resources'
- end
- end
- end
- end
-end
diff --git a/generated/google/apis/resourceviews_v1beta1/service.rb b/generated/google/apis/resourceviews_v1beta1/service.rb
deleted file mode 100644
index 78e58c48b..000000000
--- a/generated/google/apis/resourceviews_v1beta1/service.rb
+++ /dev/null
@@ -1,637 +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 ResourceviewsV1beta1
- # Resource Views API
- #
- # The Resource View API allows users to create and manage logical sets of Google
- # Compute Engine instances.
- #
- # @example
- # require 'google/apis/resourceviews_v1beta1'
- #
- # Resourceviews = Google::Apis::ResourceviewsV1beta1 # Alias the module
- # service = Resourceviews::ResourceviewsService.new
- #
- # @see https://developers.google.com/compute/
- class ResourceviewsService < 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/', 'resourceviews/v1beta1/projects/')
- @batch_path = 'batch/resourceviews/v1beta1'
- end
-
- # Add resources to the view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] region
- # The region name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta1::RegionViewsAddResourcesRequest] region_views_add_resources_request_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 addresources_region_view(project_name, region, resource_view_name, region_views_add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{projectName}/regions/{region}/resourceViews/{resourceViewName}/addResources', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsAddResourcesRequest::Representation
- command.request_object = region_views_add_resources_request_object
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['region'] = region unless region.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.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
-
- # Delete a resource view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] region
- # The region name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @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_region_view(project_name, region, resource_view_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{projectName}/regions/{region}/resourceViews/{resourceViewName}', options)
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['region'] = region unless region.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.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
-
- # Get the information of a resource view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] region
- # The region name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @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::ResourceviewsV1beta1::ResourceView] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta1::ResourceView]
- #
- # @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_region_view(project_name, region, resource_view_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{projectName}/regions/{region}/resourceViews/{resourceViewName}', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta1::ResourceView
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['region'] = region unless region.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.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
-
- # Create a resource view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] region
- # The region name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta1::ResourceView] resource_view_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::ResourceviewsV1beta1::RegionViewsInsertResponse] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta1::RegionViewsInsertResponse]
- #
- # @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_region_view(project_name, region, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{projectName}/regions/{region}/resourceViews', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
- command.request_object = resource_view_object
- command.response_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsInsertResponse::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta1::RegionViewsInsertResponse
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['region'] = region unless region.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
-
- # List resource views.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] region
- # The region name of the resource view.
- # @param [Fixnum] max_results
- # Maximum count of results to be returned. Acceptable values are 0 to 5000,
- # inclusive. (Default: 5000)
- # @param [String] page_token
- # Specifies a nextPageToken returned by a previous list request. This token can
- # be used to request the next page of results from a previous list request.
- # @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::ResourceviewsV1beta1::RegionViewsListResponse] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta1::RegionViewsListResponse]
- #
- # @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_region_views(project_name, region, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{projectName}/regions/{region}/resourceViews', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsListResponse::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta1::RegionViewsListResponse
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['region'] = region unless region.nil?
- command.query['maxResults'] = max_results unless max_results.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?
- command.query['userIp'] = user_ip unless user_ip.nil?
- execute_or_queue_command(command, &block)
- end
-
- # List the resources in the view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] region
- # The region name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @param [Fixnum] max_results
- # Maximum count of results to be returned. Acceptable values are 0 to 5000,
- # inclusive. (Default: 5000)
- # @param [String] page_token
- # Specifies a nextPageToken returned by a previous list request. This token can
- # be used to request the next page of results from a previous list request.
- # @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::ResourceviewsV1beta1::RegionViewsListResourcesResponse] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta1::RegionViewsListResourcesResponse]
- #
- # @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 listresources_region_view(project_name, region, resource_view_name, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{projectName}/regions/{region}/resourceViews/{resourceViewName}/resources', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsListResourcesResponse::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta1::RegionViewsListResourcesResponse
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['region'] = region unless region.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
- command.query['maxResults'] = max_results unless max_results.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?
- command.query['userIp'] = user_ip unless user_ip.nil?
- execute_or_queue_command(command, &block)
- end
-
- # Remove resources from the view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] region
- # The region name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta1::RegionViewsRemoveResourcesRequest] region_views_remove_resources_request_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 removeresources_region_view(project_name, region, resource_view_name, region_views_remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{projectName}/regions/{region}/resourceViews/{resourceViewName}/removeResources', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsRemoveResourcesRequest::Representation
- command.request_object = region_views_remove_resources_request_object
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['region'] = region unless region.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.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
-
- # Add resources to the view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta1::ZoneViewsAddResourcesRequest] zone_views_add_resources_request_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 addresources_zone_view(project_name, zone, resource_view_name, zone_views_add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/addResources', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsAddResourcesRequest::Representation
- command.request_object = zone_views_add_resources_request_object
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.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
-
- # Delete a resource view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @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_zone_view(project_name, zone, resource_view_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', options)
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.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
-
- # Get the information of a zonal resource view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @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::ResourceviewsV1beta1::ResourceView] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta1::ResourceView]
- #
- # @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_zone_view(project_name, zone, resource_view_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta1::ResourceView
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.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
-
- # Create a resource view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta1::ResourceView] resource_view_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::ResourceviewsV1beta1::ZoneViewsInsertResponse] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta1::ZoneViewsInsertResponse]
- #
- # @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_zone_view(project_name, zone, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{projectName}/zones/{zone}/resourceViews', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
- command.request_object = resource_view_object
- command.response_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsInsertResponse::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta1::ZoneViewsInsertResponse
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['zone'] = zone unless zone.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
-
- # List resource views.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [Fixnum] max_results
- # Maximum count of results to be returned. Acceptable values are 0 to 5000,
- # inclusive. (Default: 5000)
- # @param [String] page_token
- # Specifies a nextPageToken returned by a previous list request. This token can
- # be used to request the next page of results from a previous list request.
- # @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::ResourceviewsV1beta1::ZoneViewsListResponse] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta1::ZoneViewsListResponse]
- #
- # @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_zone_views(project_name, zone, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{projectName}/zones/{zone}/resourceViews', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsListResponse::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta1::ZoneViewsListResponse
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['zone'] = zone unless zone.nil?
- command.query['maxResults'] = max_results unless max_results.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?
- command.query['userIp'] = user_ip unless user_ip.nil?
- execute_or_queue_command(command, &block)
- end
-
- # List the resources of the resource view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @param [Fixnum] max_results
- # Maximum count of results to be returned. Acceptable values are 0 to 5000,
- # inclusive. (Default: 5000)
- # @param [String] page_token
- # Specifies a nextPageToken returned by a previous list request. This token can
- # be used to request the next page of results from a previous list request.
- # @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::ResourceviewsV1beta1::ZoneViewsListResourcesResponse] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta1::ZoneViewsListResourcesResponse]
- #
- # @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 listresources_zone_view(project_name, zone, resource_view_name, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/resources', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsListResourcesResponse::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta1::ZoneViewsListResourcesResponse
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
- command.query['maxResults'] = max_results unless max_results.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?
- command.query['userIp'] = user_ip unless user_ip.nil?
- execute_or_queue_command(command, &block)
- end
-
- # Remove resources from the view.
- # @param [String] project_name
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view_name
- # The name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta1::ZoneViewsRemoveResourcesRequest] zone_views_remove_resources_request_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 removeresources_zone_view(project_name, zone, resource_view_name, zone_views_remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/removeResources', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsRemoveResourcesRequest::Representation
- command.request_object = zone_views_remove_resources_request_object
- command.params['projectName'] = project_name unless project_name.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceViewName'] = resource_view_name unless resource_view_name.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
diff --git a/generated/google/apis/resourceviews_v1beta2.rb b/generated/google/apis/resourceviews_v1beta2.rb
deleted file mode 100644
index c5fd5e2c3..000000000
--- a/generated/google/apis/resourceviews_v1beta2.rb
+++ /dev/null
@@ -1,50 +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/resourceviews_v1beta2/service.rb'
-require 'google/apis/resourceviews_v1beta2/classes.rb'
-require 'google/apis/resourceviews_v1beta2/representations.rb'
-
-module Google
- module Apis
- # Google Compute Engine Instance Groups API
- #
- # The Resource View API allows users to create and manage logical sets of Google
- # Compute Engine instances.
- #
- # @see https://developers.google.com/compute/
- module ResourceviewsV1beta2
- VERSION = 'V1beta2'
- REVISION = '20160512'
-
- # View and manage your data across Google Cloud Platform services
- AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
-
- # View your data across Google Cloud Platform services
- AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
-
- # View and manage your Google Compute Engine resources
- AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
-
- # View your Google Compute Engine resources
- AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly'
-
- # View and manage your Google Cloud Platform management resources and deployment status information
- AUTH_NDEV_CLOUDMAN = 'https://www.googleapis.com/auth/ndev.cloudman'
-
- # View your Google Cloud Platform management resources and deployment status information
- AUTH_NDEV_CLOUDMAN_READONLY = 'https://www.googleapis.com/auth/ndev.cloudman.readonly'
- end
- end
-end
diff --git a/generated/google/apis/resourceviews_v1beta2/classes.rb b/generated/google/apis/resourceviews_v1beta2/classes.rb
deleted file mode 100644
index 74ed3abaf..000000000
--- a/generated/google/apis/resourceviews_v1beta2/classes.rb
+++ /dev/null
@@ -1,660 +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 ResourceviewsV1beta2
-
- # The Label to be applied to the resource views.
- class Label
- include Google::Apis::Core::Hashable
-
- # Key of the label.
- # Corresponds to the JSON property `key`
- # @return [String]
- attr_accessor :key
-
- # Value of the label.
- # Corresponds to the JSON property `value`
- # @return [String]
- attr_accessor :value
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @key = args[:key] if args.key?(:key)
- @value = args[:value] if args.key?(:value)
- end
- end
-
- # The list response item that contains the resource and end points information.
- class ListResourceResponseItem
- include Google::Apis::Core::Hashable
-
- # The list of service end points on the resource.
- # Corresponds to the JSON property `endpoints`
- # @return [Hash>]
- attr_accessor :endpoints
-
- # The full URL of the resource.
- # Corresponds to the JSON property `resource`
- # @return [String]
- attr_accessor :resource
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @endpoints = args[:endpoints] if args.key?(:endpoints)
- @resource = args[:resource] if args.key?(:resource)
- end
- end
-
- # An operation resource, used to manage asynchronous API requests.
- class Operation
- include Google::Apis::Core::Hashable
-
- # [Output only] An optional identifier specified by the client when the mutation
- # was initiated. Must be unique for all operation resources in the project.
- # Corresponds to the JSON property `clientOperationId`
- # @return [String]
- attr_accessor :client_operation_id
-
- # [Output Only] The time that this operation was requested, in RFC3339 text
- # format.
- # Corresponds to the JSON property `creationTimestamp`
- # @return [String]
- attr_accessor :creation_timestamp
-
- # [Output Only] The time that this operation was completed, in RFC3339 text
- # format.
- # Corresponds to the JSON property `endTime`
- # @return [String]
- attr_accessor :end_time
-
- # [Output Only] If errors occurred during processing of this operation, this
- # field will be populated.
- # Corresponds to the JSON property `error`
- # @return [Google::Apis::ResourceviewsV1beta2::Operation::Error]
- attr_accessor :error
-
- # [Output only] If operation fails, the HTTP error message returned.
- # Corresponds to the JSON property `httpErrorMessage`
- # @return [String]
- attr_accessor :http_error_message
-
- # [Output only] If operation fails, the HTTP error status code returned.
- # Corresponds to the JSON property `httpErrorStatusCode`
- # @return [Fixnum]
- attr_accessor :http_error_status_code
-
- # [Output Only] Unique identifier for the resource, generated by the server.
- # Corresponds to the JSON property `id`
- # @return [Fixnum]
- attr_accessor :id
-
- # [Output Only] The time that this operation was requested, in RFC3339 text
- # format.
- # Corresponds to the JSON property `insertTime`
- # @return [String]
- attr_accessor :insert_time
-
- # [Output only] Type of the resource.
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # [Output Only] Name of the resource.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- # [Output only] Type of the operation. Operations include insert, update, and
- # delete.
- # Corresponds to the JSON property `operationType`
- # @return [String]
- attr_accessor :operation_type
-
- # [Output only] An optional progress indicator that ranges from 0 to 100. There
- # is no requirement that this be linear or support any granularity of operations.
- # This should not be used to guess at when the operation will be complete. This
- # number should be monotonically increasing as the operation progresses.
- # Corresponds to the JSON property `progress`
- # @return [Fixnum]
- attr_accessor :progress
-
- # [Output Only] URL of the region where the operation resides. Only available
- # when performing regional operations.
- # Corresponds to the JSON property `region`
- # @return [String]
- attr_accessor :region
-
- # [Output Only] Server-defined fully-qualified URL for this resource.
- # Corresponds to the JSON property `selfLink`
- # @return [String]
- attr_accessor :self_link
-
- # [Output Only] The time that this operation was started by the server, in
- # RFC3339 text format.
- # Corresponds to the JSON property `startTime`
- # @return [String]
- attr_accessor :start_time
-
- # [Output Only] Status of the operation.
- # Corresponds to the JSON property `status`
- # @return [String]
- attr_accessor :status
-
- # [Output Only] An optional textual description of the current status of the
- # operation.
- # Corresponds to the JSON property `statusMessage`
- # @return [String]
- attr_accessor :status_message
-
- # [Output Only] Unique target ID which identifies a particular incarnation of
- # the target.
- # Corresponds to the JSON property `targetId`
- # @return [Fixnum]
- attr_accessor :target_id
-
- # [Output only] URL of the resource the operation is mutating.
- # Corresponds to the JSON property `targetLink`
- # @return [String]
- attr_accessor :target_link
-
- # [Output Only] User who requested the operation, for example: user@example.com.
- # Corresponds to the JSON property `user`
- # @return [String]
- attr_accessor :user
-
- # [Output Only] If there are issues with this operation, a warning is returned.
- # Corresponds to the JSON property `warnings`
- # @return [Array]
- attr_accessor :warnings
-
- # [Output Only] URL of the zone where the operation resides. Only available when
- # performing per-zone operations.
- # Corresponds to the JSON property `zone`
- # @return [String]
- attr_accessor :zone
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
- @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
- @end_time = args[:end_time] if args.key?(:end_time)
- @error = args[:error] if args.key?(:error)
- @http_error_message = args[:http_error_message] if args.key?(:http_error_message)
- @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
- @id = args[:id] if args.key?(:id)
- @insert_time = args[:insert_time] if args.key?(:insert_time)
- @kind = args[:kind] if args.key?(:kind)
- @name = args[:name] if args.key?(:name)
- @operation_type = args[:operation_type] if args.key?(:operation_type)
- @progress = args[:progress] if args.key?(:progress)
- @region = args[:region] if args.key?(:region)
- @self_link = args[:self_link] if args.key?(:self_link)
- @start_time = args[:start_time] if args.key?(:start_time)
- @status = args[:status] if args.key?(:status)
- @status_message = args[:status_message] if args.key?(:status_message)
- @target_id = args[:target_id] if args.key?(:target_id)
- @target_link = args[:target_link] if args.key?(:target_link)
- @user = args[:user] if args.key?(:user)
- @warnings = args[:warnings] if args.key?(:warnings)
- @zone = args[:zone] if args.key?(:zone)
- end
-
- # [Output Only] If errors occurred during processing of this operation, this
- # field will be populated.
- class Error
- include Google::Apis::Core::Hashable
-
- # [Output Only] The array of errors encountered while processing this operation.
- # Corresponds to the JSON property `errors`
- # @return [Array]
- attr_accessor :errors
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @errors = args[:errors] if args.key?(:errors)
- end
-
- #
- class Error
- include Google::Apis::Core::Hashable
-
- # [Output Only] The error type identifier for this error.
- # Corresponds to the JSON property `code`
- # @return [String]
- attr_accessor :code
-
- # [Output Only] Indicates the field in the request which caused the error. This
- # property is optional.
- # Corresponds to the JSON property `location`
- # @return [String]
- attr_accessor :location
-
- # [Output Only] An optional, human-readable error message.
- # Corresponds to the JSON property `message`
- # @return [String]
- attr_accessor :message
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @code = args[:code] if args.key?(:code)
- @location = args[:location] if args.key?(:location)
- @message = args[:message] if args.key?(:message)
- end
- end
- end
-
- #
- class Warning
- include Google::Apis::Core::Hashable
-
- # [Output only] The warning type identifier for this warning.
- # Corresponds to the JSON property `code`
- # @return [String]
- attr_accessor :code
-
- # [Output only] Metadata for this warning in key:value format.
- # Corresponds to the JSON property `data`
- # @return [Array]
- attr_accessor :data
-
- # [Output only] Optional human-readable details for this warning.
- # Corresponds to the JSON property `message`
- # @return [String]
- attr_accessor :message
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @code = args[:code] if args.key?(:code)
- @data = args[:data] if args.key?(:data)
- @message = args[:message] if args.key?(:message)
- end
-
- #
- class Datum
- include Google::Apis::Core::Hashable
-
- # [Output Only] Metadata key for this warning.
- # Corresponds to the JSON property `key`
- # @return [String]
- attr_accessor :key
-
- # [Output Only] Metadata value for this warning.
- # Corresponds to the JSON property `value`
- # @return [String]
- attr_accessor :value
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @key = args[:key] if args.key?(:key)
- @value = args[:value] if args.key?(:value)
- end
- end
- end
- end
-
- #
- class OperationList
- include Google::Apis::Core::Hashable
-
- # Unique identifier for the resource; defined by the server (output only).
- # Corresponds to the JSON property `id`
- # @return [String]
- attr_accessor :id
-
- # The operation resources.
- # Corresponds to the JSON property `items`
- # @return [Array]
- attr_accessor :items
-
- # Type of resource.
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # A token used to continue a truncated list request (output only).
- # Corresponds to the JSON property `nextPageToken`
- # @return [String]
- attr_accessor :next_page_token
-
- # Server defined URL for this resource (output only).
- # 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)
- @id = args[:id] if args.key?(:id)
- @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)
- @self_link = args[:self_link] if args.key?(:self_link)
- end
- end
-
- # The resource view object.
- class ResourceView
- include Google::Apis::Core::Hashable
-
- # The creation time of the resource view.
- # Corresponds to the JSON property `creationTimestamp`
- # @return [String]
- attr_accessor :creation_timestamp
-
- # The detailed description of the resource view.
- # Corresponds to the JSON property `description`
- # @return [String]
- attr_accessor :description
-
- # Services endpoint information.
- # Corresponds to the JSON property `endpoints`
- # @return [Array]
- attr_accessor :endpoints
-
- # The fingerprint of the service endpoint information.
- # Corresponds to the JSON property `fingerprint`
- # @return [String]
- attr_accessor :fingerprint
-
- # [Output Only] The ID of the resource view.
- # Corresponds to the JSON property `id`
- # @return [String]
- attr_accessor :id
-
- # Type of the resource.
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # The labels for events.
- # Corresponds to the JSON property `labels`
- # @return [Array]
- attr_accessor :labels
-
- # The name of the resource view.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- # The URL of a Compute Engine network to which the resources in the view belong.
- # Corresponds to the JSON property `network`
- # @return [String]
- attr_accessor :network
-
- # A list of all resources in the resource view.
- # Corresponds to the JSON property `resources`
- # @return [Array]
- attr_accessor :resources
-
- # [Output Only] A self-link to the resource view.
- # Corresponds to the JSON property `selfLink`
- # @return [String]
- attr_accessor :self_link
-
- # The total number of resources in the resource view.
- # Corresponds to the JSON property `size`
- # @return [Fixnum]
- attr_accessor :size
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
- @description = args[:description] if args.key?(:description)
- @endpoints = args[:endpoints] if args.key?(:endpoints)
- @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
- @id = args[:id] if args.key?(:id)
- @kind = args[:kind] if args.key?(:kind)
- @labels = args[:labels] if args.key?(:labels)
- @name = args[:name] if args.key?(:name)
- @network = args[:network] if args.key?(:network)
- @resources = args[:resources] if args.key?(:resources)
- @self_link = args[:self_link] if args.key?(:self_link)
- @size = args[:size] if args.key?(:size)
- end
- end
-
- # The service endpoint that may be started in a VM.
- class ServiceEndpoint
- include Google::Apis::Core::Hashable
-
- # The name of the service endpoint.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- # The port of the service endpoint.
- # Corresponds to the JSON property `port`
- # @return [Fixnum]
- attr_accessor :port
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @name = args[:name] if args.key?(:name)
- @port = args[:port] if args.key?(:port)
- end
- end
-
- # The request to add resources to the resource view.
- class AddResourcesRequest
- include Google::Apis::Core::Hashable
-
- # The list of resources to be added.
- # Corresponds to the JSON property `resources`
- # @return [Array]
- attr_accessor :resources
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @resources = args[:resources] if args.key?(:resources)
- end
- end
-
- #
- class GetServiceResponse
- include Google::Apis::Core::Hashable
-
- # The service information.
- # Corresponds to the JSON property `endpoints`
- # @return [Array]
- attr_accessor :endpoints
-
- # The fingerprint of the service information.
- # Corresponds to the JSON property `fingerprint`
- # @return [String]
- attr_accessor :fingerprint
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @endpoints = args[:endpoints] if args.key?(:endpoints)
- @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
- end
- end
-
- # The response to a list request.
- class ZoneViewsList
- include Google::Apis::Core::Hashable
-
- # The result that contains all resource views that meet the criteria.
- # Corresponds to the JSON property `items`
- # @return [Array]
- attr_accessor :items
-
- # Type of resource.
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # A token used for pagination.
- # Corresponds to the JSON property `nextPageToken`
- # @return [String]
- attr_accessor :next_page_token
-
- # Server defined URL for this resource (output only).
- # 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)
- @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)
- @self_link = args[:self_link] if args.key?(:self_link)
- end
- end
-
- # The response to a list resource request.
- class ListResourcesResponse
- include Google::Apis::Core::Hashable
-
- # The formatted JSON that is requested by the user.
- # Corresponds to the JSON property `items`
- # @return [Array]
- attr_accessor :items
-
- # The URL of a Compute Engine network to which the resources in the view belong.
- # Corresponds to the JSON property `network`
- # @return [String]
- attr_accessor :network
-
- # A token used for pagination.
- # 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)
- @network = args[:network] if args.key?(:network)
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
- end
- end
-
- # The request to remove resources from the resource view.
- class RemoveResourcesRequest
- include Google::Apis::Core::Hashable
-
- # The list of resources to be removed.
- # Corresponds to the JSON property `resources`
- # @return [Array]
- attr_accessor :resources
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @resources = args[:resources] if args.key?(:resources)
- end
- end
-
- #
- class SetServiceRequest
- include Google::Apis::Core::Hashable
-
- # The service information to be updated.
- # Corresponds to the JSON property `endpoints`
- # @return [Array]
- attr_accessor :endpoints
-
- # Fingerprint of the service information; a hash of the contents. This field is
- # used for optimistic locking when updating the service entries.
- # Corresponds to the JSON property `fingerprint`
- # @return [String]
- attr_accessor :fingerprint
-
- # The name of the resource if user wants to update the service information of
- # the resource.
- # Corresponds to the JSON property `resourceName`
- # @return [String]
- attr_accessor :resource_name
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @endpoints = args[:endpoints] if args.key?(:endpoints)
- @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
- @resource_name = args[:resource_name] if args.key?(:resource_name)
- end
- end
- end
- end
-end
diff --git a/generated/google/apis/resourceviews_v1beta2/representations.rb b/generated/google/apis/resourceviews_v1beta2/representations.rb
deleted file mode 100644
index 01c4c556d..000000000
--- a/generated/google/apis/resourceviews_v1beta2/representations.rb
+++ /dev/null
@@ -1,301 +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 ResourceviewsV1beta2
-
- class Label
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ListResourceResponseItem
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class Operation
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- class Error
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- class Error
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class Warning
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- class Datum
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class OperationList
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ResourceView
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ServiceEndpoint
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class AddResourcesRequest
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class GetServiceResponse
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ZoneViewsList
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class ListResourcesResponse
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class RemoveResourcesRequest
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class SetServiceRequest
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
- class Label
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :key, as: 'key'
- property :value, as: 'value'
- end
- end
-
- class ListResourceResponseItem
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- hash :endpoints, as: 'endpoints', :class => Array do
- include Representable::JSON::Collection
- items
- end
-
- property :resource, as: 'resource'
- end
- end
-
- class Operation
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :client_operation_id, as: 'clientOperationId'
- property :creation_timestamp, as: 'creationTimestamp'
- property :end_time, as: 'endTime'
- property :error, as: 'error', class: Google::Apis::ResourceviewsV1beta2::Operation::Error, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Error::Representation
-
- property :http_error_message, as: 'httpErrorMessage'
- property :http_error_status_code, as: 'httpErrorStatusCode'
- property :id, :numeric_string => true, as: 'id'
- property :insert_time, as: 'insertTime'
- property :kind, as: 'kind'
- property :name, as: 'name'
- property :operation_type, as: 'operationType'
- property :progress, as: 'progress'
- property :region, as: 'region'
- property :self_link, as: 'selfLink'
- property :start_time, as: 'startTime'
- property :status, as: 'status'
- property :status_message, as: 'statusMessage'
- property :target_id, :numeric_string => true, as: 'targetId'
- property :target_link, as: 'targetLink'
- property :user, as: 'user'
- collection :warnings, as: 'warnings', class: Google::Apis::ResourceviewsV1beta2::Operation::Warning, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Warning::Representation
-
- property :zone, as: 'zone'
- end
-
- class Error
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :errors, as: 'errors', class: Google::Apis::ResourceviewsV1beta2::Operation::Error::Error, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Error::Error::Representation
-
- end
-
- class Error
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :code, as: 'code'
- property :location, as: 'location'
- property :message, as: 'message'
- end
- end
- end
-
- class Warning
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :code, as: 'code'
- collection :data, as: 'data', class: Google::Apis::ResourceviewsV1beta2::Operation::Warning::Datum, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Warning::Datum::Representation
-
- property :message, as: 'message'
- end
-
- class Datum
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :key, as: 'key'
- property :value, as: 'value'
- end
- end
- end
- end
-
- class OperationList
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :id, as: 'id'
- collection :items, as: 'items', class: Google::Apis::ResourceviewsV1beta2::Operation, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Representation
-
- property :kind, as: 'kind'
- property :next_page_token, as: 'nextPageToken'
- property :self_link, as: 'selfLink'
- end
- end
-
- class ResourceView
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :creation_timestamp, as: 'creationTimestamp'
- property :description, as: 'description'
- collection :endpoints, as: 'endpoints', class: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint, decorator: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint::Representation
-
- property :fingerprint, as: 'fingerprint'
- property :id, as: 'id'
- property :kind, as: 'kind'
- collection :labels, as: 'labels', class: Google::Apis::ResourceviewsV1beta2::Label, decorator: Google::Apis::ResourceviewsV1beta2::Label::Representation
-
- property :name, as: 'name'
- property :network, as: 'network'
- collection :resources, as: 'resources'
- property :self_link, as: 'selfLink'
- property :size, as: 'size'
- end
- end
-
- class ServiceEndpoint
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- property :name, as: 'name'
- property :port, as: 'port'
- end
- end
-
- class AddResourcesRequest
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :resources, as: 'resources'
- end
- end
-
- class GetServiceResponse
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :endpoints, as: 'endpoints', class: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint, decorator: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint::Representation
-
- property :fingerprint, as: 'fingerprint'
- end
- end
-
- class ZoneViewsList
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :items, as: 'items', class: Google::Apis::ResourceviewsV1beta2::ResourceView, decorator: Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
-
- property :kind, as: 'kind'
- property :next_page_token, as: 'nextPageToken'
- property :self_link, as: 'selfLink'
- end
- end
-
- class ListResourcesResponse
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :items, as: 'items', class: Google::Apis::ResourceviewsV1beta2::ListResourceResponseItem, decorator: Google::Apis::ResourceviewsV1beta2::ListResourceResponseItem::Representation
-
- property :network, as: 'network'
- property :next_page_token, as: 'nextPageToken'
- end
- end
-
- class RemoveResourcesRequest
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :resources, as: 'resources'
- end
- end
-
- class SetServiceRequest
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- collection :endpoints, as: 'endpoints', class: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint, decorator: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint::Representation
-
- property :fingerprint, as: 'fingerprint'
- property :resource_name, as: 'resourceName'
- end
- end
- end
- end
-end
diff --git a/generated/google/apis/resourceviews_v1beta2/service.rb b/generated/google/apis/resourceviews_v1beta2/service.rb
deleted file mode 100644
index 7fd7d8cab..000000000
--- a/generated/google/apis/resourceviews_v1beta2/service.rb
+++ /dev/null
@@ -1,540 +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 ResourceviewsV1beta2
- # Google Compute Engine Instance Groups API
- #
- # The Resource View API allows users to create and manage logical sets of Google
- # Compute Engine instances.
- #
- # @example
- # require 'google/apis/resourceviews_v1beta2'
- #
- # Resourceviews = Google::Apis::ResourceviewsV1beta2 # Alias the module
- # service = Resourceviews::ResourceviewsService.new
- #
- # @see https://developers.google.com/compute/
- class ResourceviewsService < 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/', 'resourceviews/v1beta2/projects/')
- @batch_path = 'batch/resourceviews/v1beta2'
- end
-
- # Retrieves the specified zone-specific operation resource.
- # @param [String] project
- # Name of the project scoping this request.
- # @param [String] zone
- # Name of the zone scoping this request.
- # @param [String] operation
- # Name of the operation resource to return.
- # @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::ResourceviewsV1beta2::Operation] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
- #
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
- # @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['operation'] = operation unless operation.nil?
- command.query['fields'] = fields unless fields.nil?
- command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
- execute_or_queue_command(command, &block)
- end
-
- # Retrieves the list of operation resources contained within the specified zone.
- # @param [String] project
- # Name of the project scoping this request.
- # @param [String] zone
- # Name of the zone scoping this request.
- # @param [String] filter
- # Optional. Filter expression for filtering listed resources.
- # @param [Fixnum] max_results
- # Optional. Maximum count of results to be returned. Maximum value is 500 and
- # default value is 500.
- # @param [String] page_token
- # Optional. Tag returned by a previous list request truncated by maxResults.
- # Used to continue a previous list request.
- # @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::ResourceviewsV1beta2::OperationList] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::OperationList]
- #
- # @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_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta2::OperationList::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::OperationList
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.query['filter'] = filter unless filter.nil?
- command.query['maxResults'] = max_results unless max_results.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?
- command.query['userIp'] = user_ip unless user_ip.nil?
- execute_or_queue_command(command, &block)
- end
-
- # Add resources to the view.
- # @param [String] project
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view
- # The name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta2::AddResourcesRequest] add_resources_request_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::ResourceviewsV1beta2::Operation] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
- #
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
- # @raise [Google::Apis::AuthorizationError] Authorization is required
- def add_zone_view_resources(project, zone, resource_view, add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/addResources', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta2::AddResourcesRequest::Representation
- command.request_object = add_resources_request_object
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceView'] = resource_view unless resource_view.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
-
- # Delete a resource view.
- # @param [String] project
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view
- # The name of the resource view.
- # @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::ResourceviewsV1beta2::Operation] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
- #
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
- # @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, '{project}/zones/{zone}/resourceViews/{resourceView}', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceView'] = resource_view unless resource_view.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
-
- # Get the information of a zonal resource view.
- # @param [String] project
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view
- # The name of the resource view.
- # @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::ResourceviewsV1beta2::ResourceView] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::ResourceView]
- #
- # @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_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::ResourceView
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceView'] = resource_view unless resource_view.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
-
- # Get the service information of a resource view or a resource.
- # @param [String] project
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view
- # The name of the resource view.
- # @param [String] resource_name
- # The name of the resource if user wants to get the service information of the
- # resource.
- # @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::ResourceviewsV1beta2::GetServiceResponse] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::GetServiceResponse]
- #
- # @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_zone_view_service(project, zone, resource_view, resource_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/getService', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta2::GetServiceResponse::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::GetServiceResponse
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceView'] = resource_view unless resource_view.nil?
- command.query['resourceName'] = resource_name unless resource_name.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
-
- # Create a resource view.
- # @param [String] project
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta2::ResourceView] resource_view_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::ResourceviewsV1beta2::Operation] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
- #
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
- # @raise [Google::Apis::AuthorizationError] Authorization is required
- def insert_zone_view(project, zone, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
- command.request_object = resource_view_object
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.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
-
- # List resource views.
- # @param [String] project
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [Fixnum] max_results
- # Maximum count of results to be returned. Acceptable values are 0 to 5000,
- # inclusive. (Default: 5000)
- # @param [String] page_token
- # Specifies a nextPageToken returned by a previous list request. This token can
- # be used to request the next page of results from a previous list request.
- # @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::ResourceviewsV1beta2::ZoneViewsList] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::ZoneViewsList]
- #
- # @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_zone_views(project, zone, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta2::ZoneViewsList::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::ZoneViewsList
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.query['maxResults'] = max_results unless max_results.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?
- command.query['userIp'] = user_ip unless user_ip.nil?
- execute_or_queue_command(command, &block)
- end
-
- # List the resources of the resource view.
- # @param [String] project
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view
- # The name of the resource view.
- # @param [String] format
- # The requested format of the return value. It can be URL or URL_PORT. A JSON
- # object will be included in the response based on the format. The default
- # format is NONE, which results in no JSON in the response.
- # @param [String] list_state
- # The state of the instance to list. By default, it lists all instances.
- # @param [Fixnum] max_results
- # Maximum count of results to be returned. Acceptable values are 0 to 5000,
- # inclusive. (Default: 5000)
- # @param [String] page_token
- # Specifies a nextPageToken returned by a previous list request. This token can
- # be used to request the next page of results from a previous list request.
- # @param [String] service_name
- # The service name to return in the response. It is optional and if it is not
- # set, all the service end points will be returned.
- # @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::ResourceviewsV1beta2::ListResourcesResponse] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::ListResourcesResponse]
- #
- # @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_zone_view_resources(project, zone, resource_view, format: nil, list_state: nil, max_results: nil, page_token: nil, service_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}/resources', options)
- command.response_representation = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceView'] = resource_view unless resource_view.nil?
- command.query['format'] = format unless format.nil?
- command.query['listState'] = list_state unless list_state.nil?
- command.query['maxResults'] = max_results unless max_results.nil?
- command.query['pageToken'] = page_token unless page_token.nil?
- command.query['serviceName'] = service_name unless service_name.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
-
- # Remove resources from the view.
- # @param [String] project
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view
- # The name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta2::RemoveResourcesRequest] remove_resources_request_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::ResourceviewsV1beta2::Operation] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
- #
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
- # @raise [Google::Apis::AuthorizationError] Authorization is required
- def remove_zone_view_resources(project, zone, resource_view, remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta2::RemoveResourcesRequest::Representation
- command.request_object = remove_resources_request_object
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceView'] = resource_view unless resource_view.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
-
- # Update the service information of a resource view or a resource.
- # @param [String] project
- # The project name of the resource view.
- # @param [String] zone
- # The zone name of the resource view.
- # @param [String] resource_view
- # The name of the resource view.
- # @param [Google::Apis::ResourceviewsV1beta2::SetServiceRequest] set_service_request_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::ResourceviewsV1beta2::Operation] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
- #
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
- # @raise [Google::Apis::AuthorizationError] Authorization is required
- def set_zone_view_service(project, zone, resource_view, set_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/setService', options)
- command.request_representation = Google::Apis::ResourceviewsV1beta2::SetServiceRequest::Representation
- command.request_object = set_service_request_object
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
- command.params['project'] = project unless project.nil?
- command.params['zone'] = zone unless zone.nil?
- command.params['resourceView'] = resource_view unless resource_view.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
diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb
index 5b7b4763d..e67216455 100644
--- a/generated/google/apis/storage_v1.rb
+++ b/generated/google/apis/storage_v1.rb
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/storage/docs/json_api/
module StorageV1
VERSION = 'V1'
- REVISION = '20180430'
+ REVISION = '20180518'
# 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/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb
index 8f2f76f5d..217675bca 100644
--- a/generated/google/apis/storage_v1/classes.rb
+++ b/generated/google/apis/storage_v1/classes.rb
@@ -41,16 +41,18 @@ module Google
# @return [Array]
attr_accessor :cors_configurations
- # Defines the default value for Event-Based hold on newly created objects in
- # this bucket. Event-Based hold is a way to retain objects indefinitely until an
- # event occurs, signified by the hold's release. After being released, such
- # objects will be subject to bucket-level retention (if any). One sample use
- # case of this flag is for banks to hold loan documents for at least 3 years
- # after loan is paid in full. Here bucket-level retention is 3 years and the
- # event is loan being paid in full. In this example these objects will be held
- # intact for any number of years until the event has occurred (hold is released)
- # and then 3 more years after that. Objects under Event-Based hold cannot be
- # deleted, overwritten or archived until the hold is removed.
+ # The default value for event-based hold on newly created objects in this bucket.
+ # Event-based hold is a way to retain objects indefinitely until an event
+ # occurs, signified by the hold's release. After being released, such objects
+ # will be subject to bucket-level retention (if any). One sample use case of
+ # this flag is for banks to hold loan documents for at least 3 years after loan
+ # is paid in full. Here, bucket-level retention is 3 years and the event is loan
+ # being paid in full. In this example, these objects will be held intact for any
+ # number of years until the event has occurred (event-based hold on the object
+ # is released) and then 3 more years after that. That means retention duration
+ # of the objects begins from the moment event-based hold transitioned from true
+ # to false. Objects under event-based hold cannot be deleted, overwritten or
+ # archived until the hold is removed.
# Corresponds to the JSON property `defaultEventBasedHold`
# @return [Boolean]
attr_accessor :default_event_based_hold
@@ -125,12 +127,12 @@ module Google
# @return [Fixnum]
attr_accessor :project_number
- # Defines the retention policy for a bucket. The Retention policy enforces a
- # minimum retention time for all objects contained in the bucket, based on their
+ # The bucket's retention policy. The retention policy enforces a minimum
+ # retention time for all objects contained in the bucket, based on their
# creation time. Any attempt to overwrite or delete objects younger than the
# retention period will result in a PERMISSION_DENIED error. An unlocked
- # retention policy can be modified or removed from the bucket via the
- # UpdateBucketMetadata RPC. A locked retention policy cannot be removed or
+ # retention policy can be modified or removed from the bucket via a storage.
+ # buckets.update operation. A locked retention policy cannot be removed or
# shortened in duration for the lifetime of the bucket. Attempting to remove or
# decrease period of a locked retention policy will result in a
# PERMISSION_DENIED error.
@@ -463,19 +465,20 @@ module Google
end
end
- # Defines the retention policy for a bucket. The Retention policy enforces a
- # minimum retention time for all objects contained in the bucket, based on their
+ # The bucket's retention policy. The retention policy enforces a minimum
+ # retention time for all objects contained in the bucket, based on their
# creation time. Any attempt to overwrite or delete objects younger than the
# retention period will result in a PERMISSION_DENIED error. An unlocked
- # retention policy can be modified or removed from the bucket via the
- # UpdateBucketMetadata RPC. A locked retention policy cannot be removed or
+ # retention policy can be modified or removed from the bucket via a storage.
+ # buckets.update operation. A locked retention policy cannot be removed or
# shortened in duration for the lifetime of the bucket. Attempting to remove or
# decrease period of a locked retention policy will result in a
# PERMISSION_DENIED error.
class RetentionPolicy
include Google::Apis::Core::Hashable
- # The time from which policy was enforced and effective. RFC 3339 format.
+ # Server-determined value that indicates the time from which policy was enforced
+ # and effective. This value is in RFC 3339 format.
# Corresponds to the JSON property `effectiveTime`
# @return [DateTime]
attr_accessor :effective_time
@@ -486,7 +489,7 @@ module Google
attr_accessor :is_locked
alias_method :is_locked?, :is_locked
- # Specifies the duration that objects need to be retained. Retention duration
+ # The duration in seconds that objects need to be retained. Retention duration
# must be greater than zero and less than 100 years. Note that enforcement of
# retention periods less than a day is not guaranteed. Such periods should only
# be used for testing purposes.
@@ -1059,14 +1062,17 @@ module Google
# @return [String]
attr_accessor :etag
- # Defines the Event-Based hold for an object. Event-Based hold is a way to
- # retain objects indefinitely until an event occurs, signified by the hold's
- # release. After being released, such objects will be subject to bucket-level
- # retention (if any). One sample use case of this flag is for banks to hold loan
- # documents for at least 3 years after loan is paid in full. Here bucket-level
- # retention is 3 years and the event is loan being paid in full. In this example
- # these objects will be held intact for any number of years until the event has
- # occurred (hold is released) and then 3 more years after that.
+ # Whether an object is under event-based hold. Event-based hold is a way to
+ # retain objects until an event occurs, which is signified by the hold's release
+ # (i.e. this value is set to false). After being released (set to false), such
+ # objects will be subject to bucket-level retention (if any). One sample use
+ # case of this flag is for banks to hold loan documents for at least 3 years
+ # after loan is paid in full. Here, bucket-level retention is 3 years and the
+ # event is the loan being paid in full. In this example, these objects will be
+ # held intact for any number of years until the event has occurred (event-based
+ # hold on the object is released) and then 3 more years after that. That means
+ # retention duration of the objects begins from the moment event-based hold
+ # transitioned from true to false.
# Corresponds to the JSON property `eventBasedHold`
# @return [Boolean]
attr_accessor :event_based_hold
@@ -1128,12 +1134,12 @@ module Google
# @return [Google::Apis::StorageV1::Object::Owner]
attr_accessor :owner
- # Specifies the earliest time that the object's retention period expires. This
- # value is server-determined and is in RFC 3339 format. Note 1: This field is
- # not provided for objects with an active Event-Based hold, since retention
+ # A server-determined value that specifies the earliest time that the object's
+ # retention period expires. This value is in RFC 3339 format. Note 1: This field
+ # is not provided for objects with an active event-based hold, since retention
# expiration is unknown until the hold is removed. Note 2: This value can be
- # provided even when TemporaryHold is set (so that the user can reason about
- # policy without having to first unset the TemporaryHold).
+ # provided even when temporary hold is set (so that the user can reason about
+ # policy without having to first unset the temporary hold).
# Corresponds to the JSON property `retentionExpirationTime`
# @return [DateTime]
attr_accessor :retention_expiration_time
@@ -1153,11 +1159,11 @@ module Google
# @return [String]
attr_accessor :storage_class
- # Defines the temporary hold for an object. This flag is used to enforce a
- # temporary hold on an object. While it is set to true, the object is protected
- # against deletion and overwrites. A common use case of this flag is regulatory
- # investigations where objects need to be retained while the investigation is
- # ongoing.
+ # Whether an object is under temporary hold. While this flag is set to true, the
+ # object is protected against deletion and overwrites. A common use case of this
+ # flag is regulatory investigations where objects need to be retained while the
+ # investigation is ongoing. Note that unlike event-based hold, temporary hold
+ # does not impact retention expiration time of an object.
# Corresponds to the JSON property `temporaryHold`
# @return [Boolean]
attr_accessor :temporary_hold
diff --git a/generated/google/apis/storage_v1/service.rb b/generated/google/apis/storage_v1/service.rb
index aa7b2c053..a9687e19b 100644
--- a/generated/google/apis/storage_v1/service.rb
+++ b/generated/google/apis/storage_v1/service.rb
@@ -1907,6 +1907,9 @@ module Google
# names, aside from the prefix, contain delimiter will have their name,
# truncated after the delimiter, returned in prefixes. Duplicate prefixes are
# omitted.
+ # @param [Boolean] include_trailing_delimiter
+ # If true, objects that end in exactly one instance of delimiter will have their
+ # metadata included in items in addition to prefixes.
# @param [Fixnum] max_results
# Maximum number of items plus prefixes to return in a single page of responses.
# As duplicate prefixes are omitted, fewer total results may be returned than
@@ -1943,12 +1946,13 @@ 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 list_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ def list_objects(bucket, delimiter: nil, include_trailing_delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, versions: 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::StorageV1::Objects::Representation
command.response_class = Google::Apis::StorageV1::Objects
command.params['bucket'] = bucket unless bucket.nil?
command.query['delimiter'] = delimiter unless delimiter.nil?
+ command.query['includeTrailingDelimiter'] = include_trailing_delimiter unless include_trailing_delimiter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['prefix'] = prefix unless prefix.nil?
@@ -2330,6 +2334,9 @@ module Google
# names, aside from the prefix, contain delimiter will have their name,
# truncated after the delimiter, returned in prefixes. Duplicate prefixes are
# omitted.
+ # @param [Boolean] include_trailing_delimiter
+ # If true, objects that end in exactly one instance of delimiter will have their
+ # metadata included in items in addition to prefixes.
# @param [Fixnum] max_results
# Maximum number of items plus prefixes to return in a single page of responses.
# As duplicate prefixes are omitted, fewer total results may be returned than
@@ -2366,7 +2373,7 @@ 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 watch_all_objects(bucket, channel_object = nil, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ def watch_all_objects(bucket, channel_object = nil, delimiter: nil, include_trailing_delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'b/{bucket}/o/watch', options)
command.request_representation = Google::Apis::StorageV1::Channel::Representation
command.request_object = channel_object
@@ -2374,6 +2381,7 @@ module Google
command.response_class = Google::Apis::StorageV1::Channel
command.params['bucket'] = bucket unless bucket.nil?
command.query['delimiter'] = delimiter unless delimiter.nil?
+ command.query['includeTrailingDelimiter'] = include_trailing_delimiter unless include_trailing_delimiter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['prefix'] = prefix unless prefix.nil?
diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb
index 928ff1593..de2ef451a 100644
--- a/generated/google/apis/youtube_partner_v1.rb
+++ b/generated/google/apis/youtube_partner_v1.rb
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
- REVISION = '20180514'
+ REVISION = '20180518'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'