diff --git a/generated/google/apis/cloudfunctions_v1.rb b/generated/google/apis/cloudfunctions_v1.rb index 9b80f22c3..4e3001a67 100644 --- a/generated/google/apis/cloudfunctions_v1.rb +++ b/generated/google/apis/cloudfunctions_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1 VERSION = 'V1' - REVISION = '20190807' + REVISION = '20190917' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudfunctions_v1/classes.rb b/generated/google/apis/cloudfunctions_v1/classes.rb index 2894b25cf..827db529c 100644 --- a/generated/google/apis/cloudfunctions_v1/classes.rb +++ b/generated/google/apis/cloudfunctions_v1/classes.rb @@ -190,7 +190,7 @@ module Google class CallFunctionRequest include Google::Apis::Core::Hashable - # Input to be passed to the function. + # Required. Input to be passed to the function. # Corresponds to the JSON property `data` # @return [String] attr_accessor :data @@ -986,7 +986,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudfunctions_v1/service.rb b/generated/google/apis/cloudfunctions_v1/service.rb index 3af4b7574..21b0dd742 100644 --- a/generated/google/apis/cloudfunctions_v1/service.rb +++ b/generated/google/apis/cloudfunctions_v1/service.rb @@ -173,7 +173,7 @@ module Google # the actual limits, refer to # [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits). # @param [String] name - # The name of the function to be called. + # Required. The name of the function to be called. # @param [Google::Apis::CloudfunctionsV1::CallFunctionRequest] call_function_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -208,7 +208,8 @@ module Google # the specified project, the long running operation will return # `ALREADY_EXISTS` error. # @param [String] location - # The project and location in which the function should be created, specified + # Required. The project and location in which the function should be created, + # specified # in the format `projects/*/locations/*` # @param [Google::Apis::CloudfunctionsV1::CloudFunction] cloud_function_object # @param [String] fields @@ -244,7 +245,7 @@ module Google # given function is used by some trigger, the trigger will be updated to # remove this function. # @param [String] name - # The name of the function which should be deleted. + # Required. The name of the function which should be deleted. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -364,7 +365,7 @@ module Google # Returns a function with the given name from the requested project. # @param [String] name - # The name of the function which details should be obtained. + # Required. The name of the function which details should be obtained. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -400,9 +401,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/cloudfunctions_v1beta2.rb b/generated/google/apis/cloudfunctions_v1beta2.rb index 5ee0152a1..2258d37cc 100644 --- a/generated/google/apis/cloudfunctions_v1beta2.rb +++ b/generated/google/apis/cloudfunctions_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1beta2 VERSION = 'V1beta2' - REVISION = '20190807' + REVISION = '20190917' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudfunctions_v1beta2/classes.rb b/generated/google/apis/cloudfunctions_v1beta2/classes.rb index bfae28f65..1b6ee4b32 100644 --- a/generated/google/apis/cloudfunctions_v1beta2/classes.rb +++ b/generated/google/apis/cloudfunctions_v1beta2/classes.rb @@ -26,7 +26,7 @@ module Google class CallFunctionRequest include Google::Apis::Core::Hashable - # Input to be passed to the function. + # Required. Input to be passed to the function. # Corresponds to the JSON property `data` # @return [String] attr_accessor :data diff --git a/generated/google/apis/cloudfunctions_v1beta2/service.rb b/generated/google/apis/cloudfunctions_v1beta2/service.rb index f3d298dfc..bb3591ff4 100644 --- a/generated/google/apis/cloudfunctions_v1beta2/service.rb +++ b/generated/google/apis/cloudfunctions_v1beta2/service.rb @@ -173,7 +173,7 @@ module Google # the actual limits refer to [API Calls]( # https://cloud.google.com/functions/quotas#rate_limits). # @param [String] name - # The name of the function to be called. + # Required. The name of the function to be called. # @param [Google::Apis::CloudfunctionsV1beta2::CallFunctionRequest] call_function_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -208,7 +208,8 @@ module Google # the specified project, the long running operation will return # `ALREADY_EXISTS` error. # @param [String] location - # The project and location in which the function should be created, specified + # Required. The project and location in which the function should be created, + # specified # in the format `projects/*/locations/*` # @param [Google::Apis::CloudfunctionsV1beta2::CloudFunction] cloud_function_object # @param [String] fields @@ -244,7 +245,7 @@ module Google # given function is used by some trigger, the trigger will be updated to # remove this function. # @param [String] name - # The name of the function which should be deleted. + # Required. The name of the function which should be deleted. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -364,7 +365,7 @@ module Google # Returns a function with the given name from the requested project. # @param [String] name - # The name of the function which details should be obtained. + # Required. The name of the function which details should be obtained. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -394,7 +395,7 @@ module Google # Returns a list of functions that belong to the requested project. # @param [String] location - # The project and location from which the function should be listed, + # Required. The project and location from which the function should be listed, # specified in the format `projects/*/locations/*` # If you want to list functions in all locations, use "-" in place of a # location. @@ -436,7 +437,7 @@ module Google # Updates existing function. # @param [String] name - # The name of the function to be updated. + # Required. The name of the function to be updated. # @param [Google::Apis::CloudfunctionsV1beta2::CloudFunction] cloud_function_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/dataflow_v1b3.rb b/generated/google/apis/dataflow_v1b3.rb index 2b6f217de..8038d4704 100644 --- a/generated/google/apis/dataflow_v1b3.rb +++ b/generated/google/apis/dataflow_v1b3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataflow module DataflowV1b3 VERSION = 'V1b3' - REVISION = '20190827' + REVISION = '20190917' # 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/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index a46a568d1..b7c3f636d 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -1186,6 +1186,24 @@ module Google # @return [Array] attr_accessor :worker_pools + # The Compute Engine region + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1". Mutually exclusive + # with worker_zone. If neither worker_region nor worker_zone is specified, + # default to the control plane's region. + # Corresponds to the JSON property `workerRegion` + # @return [String] + attr_accessor :worker_region + + # The Compute Engine zone + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive + # with worker_region. If neither worker_region nor worker_zone is specified, + # a zone in the control plane's region is chosen based on available capacity. + # Corresponds to the JSON property `workerZone` + # @return [String] + attr_accessor :worker_zone + def initialize(**args) update!(**args) end @@ -1204,6 +1222,8 @@ module Google @user_agent = args[:user_agent] if args.key?(:user_agent) @version = args[:version] if args.key?(:version) @worker_pools = args[:worker_pools] if args.key?(:worker_pools) + @worker_region = args[:worker_region] if args.key?(:worker_region) + @worker_zone = args[:worker_zone] if args.key?(:worker_zone) end end @@ -3368,9 +3388,29 @@ module Google attr_accessor :use_private_ips alias_method :use_private_ips?, :use_private_ips + # The Compute Engine region + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1". Mutually exclusive + # with worker_zone. If neither worker_region nor worker_zone is specified, + # default to the control plane's region. + # Corresponds to the JSON property `workerRegion` + # @return [String] + attr_accessor :worker_region + + # The Compute Engine zone + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive + # with worker_region. If neither worker_region nor worker_zone is specified, + # a zone in the control plane's region is chosen based on available capacity. + # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. + # Corresponds to the JSON property `workerZone` + # @return [String] + attr_accessor :worker_zone + # The Compute Engine [availability # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) # for launching worker instances to run your pipeline. + # In the future, worker_zone will take precedence. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -3393,6 +3433,8 @@ module Google @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @temp_location = args[:temp_location] if args.key?(:temp_location) @use_private_ips = args[:use_private_ips] if args.key?(:use_private_ips) + @worker_region = args[:worker_region] if args.key?(:worker_region) + @worker_zone = args[:worker_zone] if args.key?(:worker_zone) @zone = args[:zone] if args.key?(:zone) end end diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index 03a35e5bd..27140e7b0 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -1156,6 +1156,8 @@ module Google hash :version, as: 'version' collection :worker_pools, as: 'workerPools', class: Google::Apis::DataflowV1b3::WorkerPool, decorator: Google::Apis::DataflowV1b3::WorkerPool::Representation + property :worker_region, as: 'workerRegion' + property :worker_zone, as: 'workerZone' end end @@ -1743,6 +1745,8 @@ module Google property :subnetwork, as: 'subnetwork' property :temp_location, as: 'tempLocation' property :use_private_ips, as: 'usePrivateIps' + property :worker_region, as: 'workerRegion' + property :worker_zone, as: 'workerZone' property :zone, as: 'zone' end end diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 3c0f24501..37d38a5b3 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20190902' + REVISION = '20190920' # 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/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index a15e4768f..f9ebbd8a8 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -2810,10 +2810,9 @@ module Google # When no InfoTypes or CustomInfoTypes are specified in a request, the # system may automatically choose what detectors to run. By default this may # be all types, but may change over time as detectors are updated. - # The special InfoType name "ALL_BASIC" can be used to trigger all detectors, - # but may change over time as new InfoTypes are added. If you need precise - # control and predictability as to what detectors are run you should specify - # specific InfoTypes listed in the reference. + # If you need precise control and predictability as to what detectors are + # run you should specify specific InfoTypes listed in the reference, + # otherwise a default list will be used, which may change over time. # Corresponds to the JSON property `infoTypes` # @return [Array] attr_accessor :info_types diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 5694e9d88..a44beebea 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20190822' + REVISION = '20190919' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index 5204ed25f..abf863ae5 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -1844,8 +1844,8 @@ module Google # @return [String] attr_accessor :full_file_extension - # Whether any users are granted file access directly on this file. This field is - # only populated for items in shared drives. + # Whether there are permissions directly on this file. This field is only + # populated for items in shared drives. # Corresponds to the JSON property `hasAugmentedPermissions` # @return [Boolean] attr_accessor :has_augmented_permissions diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index d34f9ab9a..bd34df569 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20190822' + REVISION = '20190919' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v3/classes.rb b/generated/google/apis/drive_v3/classes.rb index cc9117848..b9b4dacd8 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -1030,8 +1030,8 @@ module Google # @return [String] attr_accessor :full_file_extension - # Whether any users are granted file access directly on this file. This field is - # only populated for shared drive files. + # Whether there are permissions directly on this file. This field is only + # populated for items in shared drives. # Corresponds to the JSON property `hasAugmentedPermissions` # @return [Boolean] attr_accessor :has_augmented_permissions diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 090d064f0..d9ea5d8bd 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -30,7 +30,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20190915' + REVISION = '20190923' # 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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index 1c966c938..412183203 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -1723,6 +1723,14 @@ module Google # @return [String] attr_accessor :metric_kind + # Read-only. If present, then a time series, which is identified partially by a + # metric type and a MonitoredResourceDescriptor, that is associated with this + # metric type can only be associated with one of the monitored resource types + # listed here. + # Corresponds to the JSON property `monitoredResourceTypes` + # @return [Array] + attr_accessor :monitored_resource_types + # The resource name of the metric descriptor. # Corresponds to the JSON property `name` # @return [String] @@ -1809,6 +1817,7 @@ module Google @launch_stage = args[:launch_stage] if args.key?(:launch_stage) @metadata = args[:metadata] if args.key?(:metadata) @metric_kind = args[:metric_kind] if args.key?(:metric_kind) + @monitored_resource_types = args[:monitored_resource_types] if args.key?(:monitored_resource_types) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) @unit = args[:unit] if args.key?(:unit) @@ -1827,8 +1836,7 @@ module Google # @return [String] attr_accessor :ingest_delay - # Deprecated. Please use the MetricDescriptor.launch_stage instead. The launch - # stage of the metric definition. + # Deprecated. Must use the MetricDescriptor.launch_stage instead. # Corresponds to the JSON property `launchStage` # @return [String] attr_accessor :launch_stage @@ -1891,7 +1899,7 @@ module Google # A filter that identifies a time series that should be used as the denominator # of a ratio that will be compared with the threshold. If a denominator_filter # is specified, the time series specified by the filter field will be used as - # the numerator.The filter and must specify the metric type and optionally may + # the numerator.The filter must specify the metric type and optionally may # contain restrictions on resource type, resource labels, and metric labels. # This field may not exceed 2048 Unicode characters in length. # Corresponds to the JSON property `denominatorFilter` diff --git a/generated/google/apis/monitoring_v3/representations.rb b/generated/google/apis/monitoring_v3/representations.rb index 8abbeb0d3..81c0dd1d6 100644 --- a/generated/google/apis/monitoring_v3/representations.rb +++ b/generated/google/apis/monitoring_v3/representations.rb @@ -837,6 +837,7 @@ module Google property :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::MetricDescriptorMetadata, decorator: Google::Apis::MonitoringV3::MetricDescriptorMetadata::Representation property :metric_kind, as: 'metricKind' + collection :monitored_resource_types, as: 'monitoredResourceTypes' property :name, as: 'name' property :type, as: 'type' property :unit, as: 'unit' diff --git a/generated/google/apis/run_v1.rb b/generated/google/apis/run_v1.rb index a9bb67013..ad6401549 100644 --- a/generated/google/apis/run_v1.rb +++ b/generated/google/apis/run_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1 VERSION = 'V1' - REVISION = '20190916' + REVISION = '20190920' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1/classes.rb b/generated/google/apis/run_v1/classes.rb index c80433b29..4f1a1ea58 100644 --- a/generated/google/apis/run_v1/classes.rb +++ b/generated/google/apis/run_v1/classes.rb @@ -202,7 +202,7 @@ module Google # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # persisted resources must have, which includes all objects users must create. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta] + # @return [Google::Apis::RunV1::ObjectMeta] attr_accessor :metadata # The desired state of the Auto Domain Mapping. @@ -530,7 +530,7 @@ module Google # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # persisted resources must have, which includes all objects users must create. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta] + # @return [Google::Apis::RunV1::ObjectMeta] attr_accessor :metadata # ConfigurationSpec holds the desired state of the Configuration (from the @@ -889,7 +889,7 @@ module Google # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # persisted resources must have, which includes all objects users must create. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta] + # @return [Google::Apis::RunV1::ObjectMeta] attr_accessor :metadata # The desired state of the Domain Mapping. @@ -1246,45 +1246,6 @@ module Google end end - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - class GoogleRpcStatus - include Google::Apis::Core::Hashable - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @details = args[:details] if args.key?(:details) - @message = args[:message] if args.key?(:message) - end - end - # Cloud Run fully managed: not supported # Cloud Run for Anthos: supported # HTTPGetAction describes an action based on HTTP Get requests. @@ -1442,10 +1403,241 @@ module Google end end + # Cloud Run fully managed: not supported + # Cloud Run for Anthos: supported + # Maps a string key to a path within a volume. + class KeyToPath + include Google::Apis::Core::Hashable + + # Cloud Run fully managed: not supported + # Cloud Run for Anthos: supported + # The key to project. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # (Optional) + # Cloud Run fully managed: not supported + # Cloud Run for Anthos: supported + # Mode bits to use on this file, must be a value between 0 and 0777. If not + # specified, the volume defaultMode will be used. This might be in conflict + # with other options that affect the file mode, like fsGroup, and the result + # can be other mode bits set. + # Corresponds to the JSON property `mode` + # @return [Fixnum] + attr_accessor :mode + + # Cloud Run fully managed: not supported + # Cloud Run for Anthos: supported + # The relative path of the file to map the key to. + # May not be an absolute path. + # May not contain the path element '..'. + # May not start with the string '..'. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @mode = args[:mode] if args.key?(:mode) + @path = args[:path] if args.key?(:path) + end + end + + # A list of Authorized Domains. + class ListAuthorizedDomainsResponse + include Google::Apis::Core::Hashable + + # The authorized domains belonging to the user. + # Corresponds to the JSON property `domains` + # @return [Array] + attr_accessor :domains + + # Continuation token for fetching the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domains = args[:domains] if args.key?(:domains) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # ListAutoDomainMappingsResponse is a list of AutoDomainMapping resources. + class ListAutoDomainMappingsResponse + include Google::Apis::Core::Hashable + + # The API version for this call such as "serving.knative.dev/v1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # List of AutoDomainMappings. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "AutoDomainMappingList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1::ListMeta] + attr_accessor :metadata + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListConfigurationsResponse is a list of Configuration resources. + class ListConfigurationsResponse + include Google::Apis::Core::Hashable + + # The API version for this call such as "serving.knative.dev/v1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # List of Configurations. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "ConfigurationList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1::ListMeta] + attr_accessor :metadata + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListDomainMappingsResponse is a list of DomainMapping resources. + class ListDomainMappingsResponse + include Google::Apis::Core::Hashable + + # The API version for this call such as "domains.cloudrun.com/v1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # List of DomainMappings. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "DomainMappingList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1::ListMeta] + attr_accessor :metadata + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # The response message for Locations.ListLocations. + class ListLocationsResponse + include Google::Apis::Core::Hashable + + # A list of locations that matches the specified filter in the request. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # ListMeta describes metadata that synthetic resources must have, including # lists and various status objects. A resource may have only one of # `ObjectMeta, ListMeta`. - class K8sIoApimachineryPkgApisMetaV1ListMeta + class ListMeta include Google::Apis::Core::Hashable # continue may be set if the user set a limit on the number of items @@ -1493,9 +1685,218 @@ module Google end end + # ListRevisionsResponse is a list of Revision resources. + class ListRevisionsResponse + include Google::Apis::Core::Hashable + + # The API version for this call such as "serving.knative.dev/v1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # List of Revisions. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "RevisionList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1::ListMeta] + attr_accessor :metadata + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListRoutesResponse is a list of Route resources. + class ListRoutesResponse + include Google::Apis::Core::Hashable + + # The API version for this call such as "serving.knative.dev/v1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # List of Routes. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case always "RouteList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1::ListMeta] + attr_accessor :metadata + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # A list of Service resources. + class ListServicesResponse + include Google::Apis::Core::Hashable + + # The API version for this call such as "serving.knative.dev/v1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # List of Services. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "ServiceList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1::ListMeta] + attr_accessor :metadata + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # Cloud Run fully managed: not supported + # Cloud Run for Anthos: supported + # LocalObjectReference contains enough information to let you locate the + # referenced object inside the same namespace. + class LocalObjectReference + include Google::Apis::Core::Hashable + + # (Optional) + # Cloud Run fully managed: not supported + # Cloud Run for Anthos: supported + # Name of the referent. + # More info: + # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + end + end + + # A resource that represents Google Cloud Platform location. + class Location + include Google::Apis::Core::Hashable + + # The friendly name for this location, typically a nearby city name. + # For example, "Tokyo". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Cross-service attributes for the location. For example + # `"cloud.googleapis.com/region": "us-east1"` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The canonical id for this location. For example: `"us-east1"`. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Resource name for the location, which may vary between implementations. + # For example: `"projects/example-project/locations/us-east1"` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @location_id = args[:location_id] if args.key?(:location_id) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + end + end + # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # persisted resources must have, which includes all objects users must create. - class K8sIoApimachineryPkgApisMetaV1ObjectMeta + class ObjectMeta include Google::Apis::Core::Hashable # (Optional) @@ -1645,7 +2046,7 @@ module Google # List of objects that own this object. If ALL objects in the list have # been deleted, this object will be garbage collected. # Corresponds to the JSON property `ownerReferences` - # @return [Array] + # @return [Array] attr_accessor :owner_references # (Optional) @@ -1712,7 +2113,7 @@ module Google # OwnerReference contains enough information to let you identify an owning # object. Currently, an owning object must be in the same namespace, so there # is no namespace field. - class K8sIoApimachineryPkgApisMetaV1OwnerReference + class OwnerReference include Google::Apis::Core::Hashable # API version of the referent. @@ -1773,689 +2174,36 @@ module Google end end - # Status is a return value for calls that don't return other objects - class K8sIoApimachineryPkgApisMetaV1Status - include Google::Apis::Core::Hashable - - # Suggested HTTP return code for this status, 0 if not set. - # +optional - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - # StatusDetails is a set of additional properties that MAY be set by the - # server to provide additional information about a response. The Reason - # field of a Status object defines what attributes will be set. Clients - # must ignore fields that do not match the defined type of each attribute, - # and should assume that any attribute may be empty, invalid, or under - # defined. - # Corresponds to the JSON property `details` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1StatusDetails] - attr_accessor :details - - # A human-readable description of the status of this operation. - # +optional - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta] - attr_accessor :metadata - - # A machine-readable description of why this operation is in the - # "Failure" status. If this value is empty there - # is no information available. A Reason clarifies an HTTP status - # code but does not override it. - # +optional - # Corresponds to the JSON property `reason` - # @return [String] - attr_accessor :reason - - # Status of the operation. - # One of: "Success" or "Failure". - # More info: - # https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and- - # status - # +optional - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @details = args[:details] if args.key?(:details) - @message = args[:message] if args.key?(:message) - @metadata = args[:metadata] if args.key?(:metadata) - @reason = args[:reason] if args.key?(:reason) - @status = args[:status] if args.key?(:status) - end - end - - # StatusCause provides more information about an api.Status failure, including - # cases when multiple errors are encountered. - class K8sIoApimachineryPkgApisMetaV1StatusCause - include Google::Apis::Core::Hashable - - # The field of the resource that has caused this error, as named by its JSON - # serialization. May include dot and postfix notation for nested attributes. - # Arrays are zero-indexed. Fields may appear more than once in an array of - # causes due to fields having multiple errors. - # Optional. - # Examples: - # "name" - the field "name" on the current resource - # "items[0].name" - the field "name" on the first array entry in "items" - # +optional - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - # A human-readable description of the cause of the error. This field may be - # presented as-is to a reader. - # +optional - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - # A machine-readable description of the cause of the error. If this value is - # empty there is no information available. - # +optional - # Corresponds to the JSON property `reason` - # @return [String] - attr_accessor :reason - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @field = args[:field] if args.key?(:field) - @message = args[:message] if args.key?(:message) - @reason = args[:reason] if args.key?(:reason) - end - end - - # StatusDetails is a set of additional properties that MAY be set by the - # server to provide additional information about a response. The Reason - # field of a Status object defines what attributes will be set. Clients - # must ignore fields that do not match the defined type of each attribute, - # and should assume that any attribute may be empty, invalid, or under - # defined. - class K8sIoApimachineryPkgApisMetaV1StatusDetails - include Google::Apis::Core::Hashable - - # The Causes array includes more details associated with the StatusReason - # failure. Not all StatusReasons may provide detailed causes. - # +optional - # Corresponds to the JSON property `causes` - # @return [Array] - attr_accessor :causes - - # The group attribute of the resource associated with the status - # StatusReason. +optional - # Corresponds to the JSON property `group` - # @return [String] - attr_accessor :group - - # The kind attribute of the resource associated with the status StatusReason. - # On some operations may differ from the requested resource Kind. - # More info: - # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - # +optional - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The name attribute of the resource associated with the status StatusReason - # (when there is a single name which can be described). - # +optional - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # If specified, the time in seconds before the operation should be retried. - # Some errors may indicate the client must take an alternate action - for - # those errors this field may indicate how long to wait before taking the - # alternate action. +optional - # Corresponds to the JSON property `retryAfterSeconds` - # @return [Fixnum] - attr_accessor :retry_after_seconds - - # UID of the resource. - # (when there is a single resource which can be described). - # More info: http://kubernetes.io/docs/user-guide/identifiers#uids - # +optional - # Corresponds to the JSON property `uid` - # @return [String] - attr_accessor :uid - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @causes = args[:causes] if args.key?(:causes) - @group = args[:group] if args.key?(:group) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @retry_after_seconds = args[:retry_after_seconds] if args.key?(:retry_after_seconds) - @uid = args[:uid] if args.key?(:uid) - end - end - - # Cloud Run fully managed: not supported - # Cloud Run for Anthos: supported - # Maps a string key to a path within a volume. - class KeyToPath - include Google::Apis::Core::Hashable - - # Cloud Run fully managed: not supported - # Cloud Run for Anthos: supported - # The key to project. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # (Optional) - # Cloud Run fully managed: not supported - # Cloud Run for Anthos: supported - # Mode bits to use on this file, must be a value between 0 and 0777. If not - # specified, the volume defaultMode will be used. This might be in conflict - # with other options that affect the file mode, like fsGroup, and the result - # can be other mode bits set. - # Corresponds to the JSON property `mode` - # @return [Fixnum] - attr_accessor :mode - - # Cloud Run fully managed: not supported - # Cloud Run for Anthos: supported - # The relative path of the file to map the key to. - # May not be an absolute path. - # May not contain the path element '..'. - # May not start with the string '..'. - # Corresponds to the JSON property `path` - # @return [String] - attr_accessor :path - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @mode = args[:mode] if args.key?(:mode) - @path = args[:path] if args.key?(:path) - end - end - - # A list of Authorized Domains. - class ListAuthorizedDomainsResponse - include Google::Apis::Core::Hashable - - # The authorized domains belonging to the user. - # Corresponds to the JSON property `domains` - # @return [Array] - attr_accessor :domains - - # Continuation token for fetching the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @domains = args[:domains] if args.key?(:domains) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # ListAutoDomainMappingsResponse is a list of AutoDomainMapping resources. - class ListAutoDomainMappingsResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "serving.knative.dev/v1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of AutoDomainMappings. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case "AutoDomainMappingList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta] - attr_accessor :metadata - - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - - # ListConfigurationsResponse is a list of Configuration resources. - class ListConfigurationsResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "serving.knative.dev/v1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of Configurations. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case "ConfigurationList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta] - attr_accessor :metadata - - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - - # ListDomainMappingsResponse is a list of DomainMapping resources. - class ListDomainMappingsResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "domains.cloudrun.com/v1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of DomainMappings. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case "DomainMappingList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta] - attr_accessor :metadata - - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - - # The response message for Locations.ListLocations. - class ListLocationsResponse - include Google::Apis::Core::Hashable - - # A list of locations that matches the specified filter in the request. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # The standard List next-page token. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @locations = args[:locations] if args.key?(:locations) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # ListRevisionsResponse is a list of Revision resources. - class ListRevisionsResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "serving.knative.dev/v1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of Revisions. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case "RevisionList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta] - attr_accessor :metadata - - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - - # ListRoutesResponse is a list of Route resources. - class ListRoutesResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "serving.knative.dev/v1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of Routes. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case always "RouteList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta] - attr_accessor :metadata - - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - - # A list of Service resources. - class ListServicesResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "serving.knative.dev/v1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of Services. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case "ServiceList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta] - attr_accessor :metadata - - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - - # Cloud Run fully managed: not supported - # Cloud Run for Anthos: supported - # LocalObjectReference contains enough information to let you locate the - # referenced object inside the same namespace. - class LocalObjectReference - include Google::Apis::Core::Hashable - - # (Optional) - # Cloud Run fully managed: not supported - # Cloud Run for Anthos: supported - # Name of the referent. - # More info: - # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - end - end - - # A resource that represents Google Cloud Platform location. - class Location - include Google::Apis::Core::Hashable - - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # The canonical id for this location. For example: `"us-east1"`. - # Corresponds to the JSON property `locationId` - # @return [String] - attr_accessor :location_id - - # Service-specific metadata. For example the available capacity at the given - # location. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @display_name = args[:display_name] if args.key?(:display_name) - @labels = args[:labels] if args.key?(:labels) - @location_id = args[:location_id] if args.key?(:location_id) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - end - end - # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -2465,11 +2213,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy @@ -2480,7 +2232,8 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. + # Associates a list of `members` to a `role`. Optionally may specify a + # `condition` that determines when binding is in effect. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` # @return [Array] @@ -2494,7 +2247,9 @@ module Google # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. + # policy is overwritten. Due to blind-set semantics of an etag-less policy, + # 'setIamPolicy' will not fail even if either of incoming or stored policy + # does not meet the version requirements. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2503,9 +2258,13 @@ module Google # Specifies the format of the policy. # Valid values are 0, 1, and 3. Requests specifying an invalid value will be # rejected. - # Policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. + # Operations affecting conditional bindings must specify version 3. This can + # be either setting a conditional policy, modifying a conditional binding, + # or removing a conditional binding from the stored conditional policy. + # Operations on non-conditional policies may specify any valid value or + # leave the field unset. + # If no etag is provided in the call to `setIamPolicy`, any version + # compliance checks on the incoming and/or stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2603,30 +2362,6 @@ module Google end end - # Information for a regional call used for a global API. - class RegionDetails - include Google::Apis::Core::Hashable - - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::RunV1::GoogleRpcStatus] - attr_accessor :error - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @error = args[:error] if args.key?(:error) - end - end - # A DNS resource record. class ResourceRecord include Google::Apis::Core::Hashable @@ -2720,7 +2455,7 @@ module Google # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # persisted resources must have, which includes all objects users must create. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta] + # @return [Google::Apis::RunV1::ObjectMeta] attr_accessor :metadata # RevisionSpec holds the desired state of the Revision (from the client). @@ -2877,7 +2612,7 @@ module Google # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # persisted resources must have, which includes all objects users must create. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta] + # @return [Google::Apis::RunV1::ObjectMeta] attr_accessor :metadata # RevisionSpec holds the desired state of the Revision (from the client). @@ -2921,7 +2656,7 @@ module Google # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # persisted resources must have, which includes all objects users must create. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta] + # @return [Google::Apis::RunV1::ObjectMeta] attr_accessor :metadata # RouteSpec holds the desired state of the Route (from the client). @@ -3242,7 +2977,7 @@ module Google # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # persisted resources must have, which includes all objects users must create. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta] + # @return [Google::Apis::RunV1::ObjectMeta] attr_accessor :metadata # ServiceSpec holds the desired state of the Route (from the client), which @@ -3384,25 +3119,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -3412,11 +3156,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` @@ -3443,6 +3191,186 @@ module Google end end + # Status is a return value for calls that don't return other objects + class Status + include Google::Apis::Core::Hashable + + # Suggested HTTP return code for this status, 0 if not set. + # +optional + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # StatusDetails is a set of additional properties that MAY be set by the + # server to provide additional information about a response. The Reason + # field of a Status object defines what attributes will be set. Clients + # must ignore fields that do not match the defined type of each attribute, + # and should assume that any attribute may be empty, invalid, or under + # defined. + # Corresponds to the JSON property `details` + # @return [Google::Apis::RunV1::StatusDetails] + attr_accessor :details + + # A human-readable description of the status of this operation. + # +optional + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1::ListMeta] + attr_accessor :metadata + + # A machine-readable description of why this operation is in the + # "Failure" status. If this value is empty there + # is no information available. A Reason clarifies an HTTP status + # code but does not override it. + # +optional + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # Status of the operation. + # One of: "Success" or "Failure". + # More info: + # https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and- + # status + # +optional + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + @metadata = args[:metadata] if args.key?(:metadata) + @reason = args[:reason] if args.key?(:reason) + @status = args[:status] if args.key?(:status) + end + end + + # StatusCause provides more information about an api.Status failure, including + # cases when multiple errors are encountered. + class StatusCause + include Google::Apis::Core::Hashable + + # The field of the resource that has caused this error, as named by its JSON + # serialization. May include dot and postfix notation for nested attributes. + # Arrays are zero-indexed. Fields may appear more than once in an array of + # causes due to fields having multiple errors. + # Optional. + # Examples: + # "name" - the field "name" on the current resource + # "items[0].name" - the field "name" on the first array entry in "items" + # +optional + # Corresponds to the JSON property `field` + # @return [String] + attr_accessor :field + + # A human-readable description of the cause of the error. This field may be + # presented as-is to a reader. + # +optional + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # A machine-readable description of the cause of the error. If this value is + # empty there is no information available. + # +optional + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @field = args[:field] if args.key?(:field) + @message = args[:message] if args.key?(:message) + @reason = args[:reason] if args.key?(:reason) + end + end + + # StatusDetails is a set of additional properties that MAY be set by the + # server to provide additional information about a response. The Reason + # field of a Status object defines what attributes will be set. Clients + # must ignore fields that do not match the defined type of each attribute, + # and should assume that any attribute may be empty, invalid, or under + # defined. + class StatusDetails + include Google::Apis::Core::Hashable + + # The Causes array includes more details associated with the StatusReason + # failure. Not all StatusReasons may provide detailed causes. + # +optional + # Corresponds to the JSON property `causes` + # @return [Array] + attr_accessor :causes + + # The group attribute of the resource associated with the status + # StatusReason. +optional + # Corresponds to the JSON property `group` + # @return [String] + attr_accessor :group + + # The kind attribute of the resource associated with the status StatusReason. + # On some operations may differ from the requested resource Kind. + # More info: + # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + # +optional + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name attribute of the resource associated with the status StatusReason + # (when there is a single name which can be described). + # +optional + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # If specified, the time in seconds before the operation should be retried. + # Some errors may indicate the client must take an alternate action - for + # those errors this field may indicate how long to wait before taking the + # alternate action. +optional + # Corresponds to the JSON property `retryAfterSeconds` + # @return [Fixnum] + attr_accessor :retry_after_seconds + + # UID of the resource. + # (when there is a single resource which can be described). + # More info: http://kubernetes.io/docs/user-guide/identifiers#uids + # +optional + # Corresponds to the JSON property `uid` + # @return [String] + attr_accessor :uid + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @causes = args[:causes] if args.key?(:causes) + @group = args[:group] if args.key?(:group) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @retry_after_seconds = args[:retry_after_seconds] if args.key?(:retry_after_seconds) + @uid = args[:uid] if args.key?(:uid) + end + end + # Cloud Run fully managed: not supported # Cloud Run for Anthos: supported # TCPSocketAction describes an action based on opening a socket diff --git a/generated/google/apis/run_v1/representations.rb b/generated/google/apis/run_v1/representations.rb index c71aad53f..296cc361b 100644 --- a/generated/google/apis/run_v1/representations.rb +++ b/generated/google/apis/run_v1/representations.rb @@ -172,12 +172,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleRpcStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class HttpGetAction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -202,42 +196,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class K8sIoApimachineryPkgApisMetaV1ListMeta - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class K8sIoApimachineryPkgApisMetaV1ObjectMeta - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class K8sIoApimachineryPkgApisMetaV1OwnerReference - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class K8sIoApimachineryPkgApisMetaV1Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class K8sIoApimachineryPkgApisMetaV1StatusCause - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class K8sIoApimachineryPkgApisMetaV1StatusDetails - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class KeyToPath class Representation < Google::Apis::Core::JsonRepresentation; end @@ -274,6 +232,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListMeta + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListRevisionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -304,6 +268,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ObjectMeta + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OwnerReference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -316,12 +292,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RegionDetails - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ResourceRecord class Representation < Google::Apis::Core::JsonRepresentation; end @@ -424,6 +394,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StatusCause + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StatusDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TcpSocketAction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -497,7 +485,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :api_version, as: 'apiVersion' property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation property :spec, as: 'spec', class: Google::Apis::RunV1::AutoDomainMappingSpec, decorator: Google::Apis::RunV1::AutoDomainMappingSpec::Representation @@ -573,7 +561,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :api_version, as: 'apiVersion' property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation property :spec, as: 'spec', class: Google::Apis::RunV1::ConfigurationSpec, decorator: Google::Apis::RunV1::ConfigurationSpec::Representation @@ -645,7 +633,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :api_version, as: 'apiVersion' property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation property :spec, as: 'spec', class: Google::Apis::RunV1::DomainMappingSpec, decorator: Google::Apis::RunV1::DomainMappingSpec::Representation @@ -735,15 +723,6 @@ module Google end end - class GoogleRpcStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - end - end - class HttpGetAction # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -784,85 +763,6 @@ module Google end end - class K8sIoApimachineryPkgApisMetaV1ListMeta - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :continue, as: 'continue' - property :resource_version, as: 'resourceVersion' - property :self_link, as: 'selfLink' - end - end - - class K8sIoApimachineryPkgApisMetaV1ObjectMeta - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :annotations, as: 'annotations' - property :cluster_name, as: 'clusterName' - property :creation_timestamp, as: 'creationTimestamp' - property :deletion_grace_period_seconds, as: 'deletionGracePeriodSeconds' - property :deletion_timestamp, as: 'deletionTimestamp' - collection :finalizers, as: 'finalizers' - property :generate_name, as: 'generateName' - property :generation, as: 'generation' - hash :labels, as: 'labels' - property :name, as: 'name' - property :namespace, as: 'namespace' - collection :owner_references, as: 'ownerReferences', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1OwnerReference, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1OwnerReference::Representation - - property :resource_version, as: 'resourceVersion' - property :self_link, as: 'selfLink' - property :uid, as: 'uid' - end - end - - class K8sIoApimachineryPkgApisMetaV1OwnerReference - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - property :block_owner_deletion, as: 'blockOwnerDeletion' - property :controller, as: 'controller' - property :kind, as: 'kind' - property :name, as: 'name' - property :uid, as: 'uid' - end - end - - class K8sIoApimachineryPkgApisMetaV1Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :details, as: 'details', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1StatusDetails, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1StatusDetails::Representation - - property :message, as: 'message' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta::Representation - - property :reason, as: 'reason' - property :status, as: 'status' - end - end - - class K8sIoApimachineryPkgApisMetaV1StatusCause - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :field, as: 'field' - property :message, as: 'message' - property :reason, as: 'reason' - end - end - - class K8sIoApimachineryPkgApisMetaV1StatusDetails - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :causes, as: 'causes', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1StatusCause, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1StatusCause::Representation - - property :group, as: 'group' - property :kind, as: 'kind' - property :name, as: 'name' - property :retry_after_seconds, as: 'retryAfterSeconds' - property :uid, as: 'uid' - end - end - class KeyToPath # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -888,9 +788,7 @@ module Google collection :items, as: 'items', class: Google::Apis::RunV1::AutoDomainMapping, decorator: Google::Apis::RunV1::AutoDomainMapping::Representation property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta::Representation - - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1::RegionDetails, decorator: Google::Apis::RunV1::RegionDetails::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation collection :unreachable, as: 'unreachable' end @@ -903,9 +801,7 @@ module Google collection :items, as: 'items', class: Google::Apis::RunV1::Configuration, decorator: Google::Apis::RunV1::Configuration::Representation property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta::Representation - - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1::RegionDetails, decorator: Google::Apis::RunV1::RegionDetails::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation collection :unreachable, as: 'unreachable' end @@ -918,9 +814,7 @@ module Google collection :items, as: 'items', class: Google::Apis::RunV1::DomainMapping, decorator: Google::Apis::RunV1::DomainMapping::Representation property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta::Representation - - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1::RegionDetails, decorator: Google::Apis::RunV1::RegionDetails::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation collection :unreachable, as: 'unreachable' end @@ -935,6 +829,15 @@ module Google end end + class ListMeta + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :continue, as: 'continue' + property :resource_version, as: 'resourceVersion' + property :self_link, as: 'selfLink' + end + end + class ListRevisionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -942,9 +845,7 @@ module Google collection :items, as: 'items', class: Google::Apis::RunV1::Revision, decorator: Google::Apis::RunV1::Revision::Representation property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta::Representation - - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1::RegionDetails, decorator: Google::Apis::RunV1::RegionDetails::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation collection :unreachable, as: 'unreachable' end @@ -957,9 +858,7 @@ module Google collection :items, as: 'items', class: Google::Apis::RunV1::Route, decorator: Google::Apis::RunV1::Route::Representation property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta::Representation - - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1::RegionDetails, decorator: Google::Apis::RunV1::RegionDetails::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation collection :unreachable, as: 'unreachable' end @@ -972,9 +871,7 @@ module Google collection :items, as: 'items', class: Google::Apis::RunV1::Service, decorator: Google::Apis::RunV1::Service::Representation property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ListMeta::Representation - - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1::RegionDetails, decorator: Google::Apis::RunV1::RegionDetails::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation collection :unreachable, as: 'unreachable' end @@ -998,6 +895,40 @@ module Google end end + class ObjectMeta + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :annotations, as: 'annotations' + property :cluster_name, as: 'clusterName' + property :creation_timestamp, as: 'creationTimestamp' + property :deletion_grace_period_seconds, as: 'deletionGracePeriodSeconds' + property :deletion_timestamp, as: 'deletionTimestamp' + collection :finalizers, as: 'finalizers' + property :generate_name, as: 'generateName' + property :generation, as: 'generation' + hash :labels, as: 'labels' + property :name, as: 'name' + property :namespace, as: 'namespace' + collection :owner_references, as: 'ownerReferences', class: Google::Apis::RunV1::OwnerReference, decorator: Google::Apis::RunV1::OwnerReference::Representation + + property :resource_version, as: 'resourceVersion' + property :self_link, as: 'selfLink' + property :uid, as: 'uid' + end + end + + class OwnerReference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + property :block_owner_deletion, as: 'blockOwnerDeletion' + property :controller, as: 'controller' + property :kind, as: 'kind' + property :name, as: 'name' + property :uid, as: 'uid' + end + end + class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1023,14 +954,6 @@ module Google end end - class RegionDetails - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::RunV1::GoogleRpcStatus, decorator: Google::Apis::RunV1::GoogleRpcStatus::Representation - - end - end - class ResourceRecord # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1053,7 +976,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :api_version, as: 'apiVersion' property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation property :spec, as: 'spec', class: Google::Apis::RunV1::RevisionSpec, decorator: Google::Apis::RunV1::RevisionSpec::Representation @@ -1090,7 +1013,7 @@ module Google class RevisionTemplate # @private class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation property :spec, as: 'spec', class: Google::Apis::RunV1::RevisionSpec, decorator: Google::Apis::RunV1::RevisionSpec::Representation @@ -1102,7 +1025,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :api_version, as: 'apiVersion' property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation property :spec, as: 'spec', class: Google::Apis::RunV1::RouteSpec, decorator: Google::Apis::RunV1::RouteSpec::Representation @@ -1177,7 +1100,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :api_version, as: 'apiVersion' property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta, decorator: Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1ObjectMeta::Representation + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation property :spec, as: 'spec', class: Google::Apis::RunV1::ServiceSpec, decorator: Google::Apis::RunV1::ServiceSpec::Representation @@ -1221,6 +1144,42 @@ module Google end end + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :details, as: 'details', class: Google::Apis::RunV1::StatusDetails, decorator: Google::Apis::RunV1::StatusDetails::Representation + + property :message, as: 'message' + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation + + property :reason, as: 'reason' + property :status, as: 'status' + end + end + + class StatusCause + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :field, as: 'field' + property :message, as: 'message' + property :reason, as: 'reason' + end + end + + class StatusDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :causes, as: 'causes', class: Google::Apis::RunV1::StatusCause, decorator: Google::Apis::RunV1::StatusCause::Representation + + property :group, as: 'group' + property :kind, as: 'kind' + property :name, as: 'name' + property :retry_after_seconds, as: 'retryAfterSeconds' + property :uid, as: 'uid' + end + end + class TcpSocketAction # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/run_v1/service.rb b/generated/google/apis/run_v1/service.rb index ad02b1df7..972150951 100644 --- a/generated/google/apis/run_v1/service.rb +++ b/generated/google/apis/run_v1/service.rb @@ -140,18 +140,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_namespace_autodomainmapping(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'apis/domains.cloudrun.com/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -347,18 +347,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_namespace_configuration(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'apis/serving.knative.dev/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -551,18 +551,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_namespace_domainmapping(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'apis/domains.cloudrun.com/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -721,18 +721,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_namespace_revision(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'apis/serving.knative.dev/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -885,18 +885,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_namespace_route(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'apis/serving.knative.dev/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -1089,18 +1089,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_namespace_service(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'apis/serving.knative.dev/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -1397,18 +1397,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_project_location_autodomainmapping(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -1604,18 +1604,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_project_location_configuration(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -1808,18 +1808,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_project_location_domainmapping(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -1978,18 +1978,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_project_location_revision(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -2142,18 +2142,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_project_location_route(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? @@ -2346,18 +2346,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] parsed result object + # @yieldparam result [Google::Apis::RunV1::Status] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status] + # @return [Google::Apis::RunV1::Status] # # @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_project_location_service(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status::Representation - command.response_class = Google::Apis::RunV1::K8sIoApimachineryPkgApisMetaV1Status + command.response_representation = Google::Apis::RunV1::Status::Representation + command.response_class = Google::Apis::RunV1::Status command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index 8dd6bdd26..3e5b098d3 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1alpha1 VERSION = 'V1alpha1' - REVISION = '20190916' + REVISION = '20190920' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1alpha1/classes.rb b/generated/google/apis/run_v1alpha1/classes.rb index 2df204fbe..fd542030d 100644 --- a/generated/google/apis/run_v1alpha1/classes.rb +++ b/generated/google/apis/run_v1alpha1/classes.rb @@ -1410,45 +1410,6 @@ module Google end end - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - class GoogleRpcStatus - include Google::Apis::Core::Hashable - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @details = args[:details] if args.key?(:details) - @message = args[:message] if args.key?(:message) - end - end - # HTTPGetAction describes an action based on HTTP Get requests. class HttpGetAction include Google::Apis::Core::Hashable @@ -1751,12 +1712,6 @@ module Google # @return [Google::Apis::RunV1alpha1::ListMeta] attr_accessor :metadata - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - # Locations that could not be reached. # Corresponds to the JSON property `unreachable` # @return [Array] @@ -1772,7 +1727,6 @@ module Google @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) @unreachable = args[:unreachable] if args.key?(:unreachable) end end @@ -1803,12 +1757,6 @@ module Google # @return [Google::Apis::RunV1alpha1::ListMeta] attr_accessor :metadata - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - # Locations that could not be reached. # Corresponds to the JSON property `unreachable` # @return [Array] @@ -1824,7 +1772,6 @@ module Google @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) @unreachable = args[:unreachable] if args.key?(:unreachable) end end @@ -1855,12 +1802,6 @@ module Google # @return [Google::Apis::RunV1alpha1::ListMeta] attr_accessor :metadata - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - # Locations that could not be reached. # Corresponds to the JSON property `unreachable` # @return [Array] @@ -1876,7 +1817,6 @@ module Google @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) @unreachable = args[:unreachable] if args.key?(:unreachable) end end @@ -1983,12 +1923,6 @@ module Google # @return [Google::Apis::RunV1alpha1::ListMeta] attr_accessor :metadata - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - # Locations that could not be reached. # Corresponds to the JSON property `unreachable` # @return [Array] @@ -2004,7 +1938,6 @@ module Google @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) @unreachable = args[:unreachable] if args.key?(:unreachable) end end @@ -2035,12 +1968,6 @@ module Google # @return [Google::Apis::RunV1alpha1::ListMeta] attr_accessor :metadata - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - # Locations that could not be reached. # Corresponds to the JSON property `unreachable` # @return [Array] @@ -2056,7 +1983,6 @@ module Google @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) @unreachable = args[:unreachable] if args.key?(:unreachable) end end @@ -2087,12 +2013,6 @@ module Google # @return [Google::Apis::RunV1alpha1::ListMeta] attr_accessor :metadata - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - # Locations that could not be reached. # Corresponds to the JSON property `unreachable` # @return [Array] @@ -2108,7 +2028,6 @@ module Google @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) @unreachable = args[:unreachable] if args.key?(:unreachable) end end @@ -2139,12 +2058,6 @@ module Google # @return [Google::Apis::RunV1alpha1::ListMeta] attr_accessor :metadata - # Details for the regions used during a global call including any failures. - # This is not populated when targeting a specific region. - # Corresponds to the JSON property `regionDetails` - # @return [Hash] - attr_accessor :region_details - # Locations that could not be reached. # Corresponds to the JSON property `unreachable` # @return [Array] @@ -2160,7 +2073,6 @@ module Google @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) - @region_details = args[:region_details] if args.key?(:region_details) @unreachable = args[:unreachable] if args.key?(:unreachable) end end @@ -2592,25 +2504,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -2620,11 +2541,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy @@ -2635,7 +2560,8 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. + # Associates a list of `members` to a `role`. Optionally may specify a + # `condition` that determines when binding is in effect. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` # @return [Array] @@ -2649,7 +2575,9 @@ module Google # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. + # policy is overwritten. Due to blind-set semantics of an etag-less policy, + # 'setIamPolicy' will not fail even if either of incoming or stored policy + # does not meet the version requirements. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2658,9 +2586,13 @@ module Google # Specifies the format of the policy. # Valid values are 0, 1, and 3. Requests specifying an invalid value will be # rejected. - # Policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. + # Operations affecting conditional bindings must specify version 3. This can + # be either setting a conditional policy, modifying a conditional binding, + # or removing a conditional binding from the stored conditional policy. + # Operations on non-conditional policies may specify any valid value or + # leave the field unset. + # If no etag is provided in the call to `setIamPolicy`, any version + # compliance checks on the incoming and/or stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2763,30 +2695,6 @@ module Google end end - # Information for a regional call used for a global API. - class RegionDetails - include Google::Apis::Core::Hashable - - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::RunV1alpha1::GoogleRpcStatus] - attr_accessor :error - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @error = args[:error] if args.key?(:error) - end - end - # A DNS resource record. class ResourceRecord include Google::Apis::Core::Hashable @@ -4029,25 +3937,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -4057,11 +3974,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` diff --git a/generated/google/apis/run_v1alpha1/representations.rb b/generated/google/apis/run_v1alpha1/representations.rb index 3349ddd06..4b52a603f 100644 --- a/generated/google/apis/run_v1alpha1/representations.rb +++ b/generated/google/apis/run_v1alpha1/representations.rb @@ -196,12 +196,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleRpcStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class HttpGetAction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -358,12 +352,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RegionDetails - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ResourceRecord class Representation < Google::Apis::Core::JsonRepresentation; end @@ -927,15 +915,6 @@ module Google end end - class GoogleRpcStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - end - end - class HttpGetAction # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1030,8 +1009,6 @@ module Google property :kind, as: 'kind' property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1alpha1::RegionDetails, decorator: Google::Apis::RunV1alpha1::RegionDetails::Representation - collection :unreachable, as: 'unreachable' end end @@ -1045,8 +1022,6 @@ module Google property :kind, as: 'kind' property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1alpha1::RegionDetails, decorator: Google::Apis::RunV1alpha1::RegionDetails::Representation - collection :unreachable, as: 'unreachable' end end @@ -1060,8 +1035,6 @@ module Google property :kind, as: 'kind' property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1alpha1::RegionDetails, decorator: Google::Apis::RunV1alpha1::RegionDetails::Representation - collection :unreachable, as: 'unreachable' end end @@ -1093,8 +1066,6 @@ module Google property :kind, as: 'kind' property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1alpha1::RegionDetails, decorator: Google::Apis::RunV1alpha1::RegionDetails::Representation - collection :unreachable, as: 'unreachable' end end @@ -1108,8 +1079,6 @@ module Google property :kind, as: 'kind' property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1alpha1::RegionDetails, decorator: Google::Apis::RunV1alpha1::RegionDetails::Representation - collection :unreachable, as: 'unreachable' end end @@ -1123,8 +1092,6 @@ module Google property :kind, as: 'kind' property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1alpha1::RegionDetails, decorator: Google::Apis::RunV1alpha1::RegionDetails::Representation - collection :unreachable, as: 'unreachable' end end @@ -1138,8 +1105,6 @@ module Google property :kind, as: 'kind' property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - hash :region_details, as: 'regionDetails', class: Google::Apis::RunV1alpha1::RegionDetails, decorator: Google::Apis::RunV1alpha1::RegionDetails::Representation - collection :unreachable, as: 'unreachable' end end @@ -1243,14 +1208,6 @@ module Google end end - class RegionDetails - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::RunV1alpha1::GoogleRpcStatus, decorator: Google::Apis::RunV1alpha1::GoogleRpcStatus::Representation - - end - end - class ResourceRecord # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index fcc1bbd94..2e80ee9a7 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20190826' + REVISION = '20190923' # 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/runtimeconfig_v1beta1/classes.rb b/generated/google/apis/runtimeconfig_v1beta1/classes.rb index 561302eff..3ae98d9d8 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb @@ -360,25 +360,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -388,17 +397,22 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. + # Associates a list of `members` to a `role`. Optionally may specify a + # `condition` that determines when binding is in effect. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` # @return [Array] @@ -412,7 +426,9 @@ module Google # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. + # policy is overwritten. Due to blind-set semantics of an etag-less policy, + # 'setIamPolicy' will not fail even if either of incoming or stored policy + # does not meet the version requirements. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -421,9 +437,13 @@ module Google # Specifies the format of the policy. # Valid values are 0, 1, and 3. Requests specifying an invalid value will be # rejected. - # Policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. + # Operations affecting conditional bindings must specify version 3. This can + # be either setting a conditional policy, modifying a conditional binding, + # or removing a conditional binding from the stored conditional policy. + # Operations on non-conditional policies may specify any valid value or + # leave the field unset. + # If no etag is provided in the call to `setIamPolicy`, any version + # compliance checks on the incoming and/or stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -481,25 +501,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -509,11 +538,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` diff --git a/generated/google/apis/translate_v3beta1.rb b/generated/google/apis/translate_v3beta1.rb index ed5efb58a..22420ec59 100644 --- a/generated/google/apis/translate_v3beta1.rb +++ b/generated/google/apis/translate_v3beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/translate/docs/quickstarts module TranslateV3beta1 VERSION = 'V3beta1' - REVISION = '20190906' + REVISION = '20190920' # 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/translate_v3beta1/classes.rb b/generated/google/apis/translate_v3beta1/classes.rb index cd5298b50..a0697b0a4 100644 --- a/generated/google/apis/translate_v3beta1/classes.rb +++ b/generated/google/apis/translate_v3beta1/classes.rb @@ -45,7 +45,7 @@ module Google # (Unicode codepoints), can only contain lowercase letters, numeric # characters, underscores and dashes. International characters are allowed. # Label values are optional. Label keys must start with a letter. - # See https://goo.gl/xmQnxf for more information on and examples of labels. + # See https://cloud.google.com/translate/docs/labels for more information. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -123,7 +123,7 @@ module Google # (Unicode codepoints), can only contain lowercase letters, numeric # characters, underscores and dashes. International characters are allowed. # Label values are optional. Label keys must start with a letter. - # See https://goo.gl/xmQnxf for more information on and examples of labels. + # See https://cloud.google.com/translate/docs/labels for more information. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -776,7 +776,7 @@ module Google # (Unicode codepoints), can only contain lowercase letters, numeric # characters, underscores and dashes. International characters are allowed. # Label values are optional. Label keys must start with a letter. - # See https://goo.gl/xmQnxf for more information on and examples of labels. + # See https://cloud.google.com/translate/docs/labels for more information. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels