diff --git a/generated/google/apis/appsmarket_v2.rb b/generated/google/apis/appsmarket_v2.rb index d6a029c17..efe4c2fcf 100644 --- a/generated/google/apis/appsmarket_v2.rb +++ b/generated/google/apis/appsmarket_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/apps-marketplace module AppsmarketV2 VERSION = 'V2' - REVISION = '20200609' + REVISION = '20200615' # View your installed application's licensing information AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' diff --git a/generated/google/apis/bigtableadmin_v1.rb b/generated/google/apis/bigtableadmin_v1.rb index 3ade813da..817797cd9 100644 --- a/generated/google/apis/bigtableadmin_v1.rb +++ b/generated/google/apis/bigtableadmin_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigtable/ module BigtableadminV1 VERSION = 'V1' - REVISION = '20200424' + REVISION = '20200512' end end end diff --git a/generated/google/apis/bigtableadmin_v1/classes.rb b/generated/google/apis/bigtableadmin_v1/classes.rb index c6b7ff615..b12a2b9a9 100644 --- a/generated/google/apis/bigtableadmin_v1/classes.rb +++ b/generated/google/apis/bigtableadmin_v1/classes.rb @@ -28,15 +28,14 @@ module Google class Cluster include Google::Apis::Core::Hashable - # (`CreationOnly`) - # The type of storage used by this cluster to serve its + # Immutable. The type of storage used by this cluster to serve its # parent instance's tables, unless explicitly overridden. # Corresponds to the JSON property `defaultStorageType` # @return [String] attr_accessor :default_storage_type - # (`CreationOnly`) - # The location where this cluster's nodes and storage reside. For best + # Immutable. The location where this cluster's nodes and storage reside. For + # best # performance, clients should be located as close as possible to this # cluster. Currently only zones are supported, so values should be of the # form `projects/`project`/locations/`zone``. @@ -44,7 +43,6 @@ module Google # @return [String] attr_accessor :location - # Required. (`OutputOnly`) # The unique name of the cluster. Values are of the form # `projects/`project`/instances/`instance`/clusters/a-z*`. # Corresponds to the JSON property `name` @@ -58,8 +56,7 @@ module Google # @return [Fixnum] attr_accessor :serve_nodes - # (`OutputOnly`) - # The current state of the cluster. + # Output only. The current state of the cluster. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -266,15 +263,13 @@ module Google # @return [Hash] attr_accessor :labels - # Required. (`OutputOnly`) # The unique name of the instance. Values are of the form # `projects/`project`/instances/a-z+[a-z0-9]`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # (`OutputOnly`) - # The current state of the instance. + # Output only. The current state of the instance. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state diff --git a/generated/google/apis/bigtableadmin_v2.rb b/generated/google/apis/bigtableadmin_v2.rb index d530cee50..39fe5d059 100644 --- a/generated/google/apis/bigtableadmin_v2.rb +++ b/generated/google/apis/bigtableadmin_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigtable/ module BigtableadminV2 VERSION = 'V2' - REVISION = '20200424' + REVISION = '20200512' # Administer your Cloud Bigtable tables and clusters AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin' diff --git a/generated/google/apis/bigtableadmin_v2/classes.rb b/generated/google/apis/bigtableadmin_v2/classes.rb index 223ae8de4..795d2d290 100644 --- a/generated/google/apis/bigtableadmin_v2/classes.rb +++ b/generated/google/apis/bigtableadmin_v2/classes.rb @@ -27,7 +27,7 @@ module Google class AppProfile include Google::Apis::Core::Hashable - # Optional long form description of the use case for this AppProfile. + # Long form description of the use case for this AppProfile. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -53,9 +53,8 @@ module Google # @return [Google::Apis::BigtableadminV2::MultiClusterRoutingUseAny] attr_accessor :multi_cluster_routing_use_any - # (`OutputOnly`) # The unique name of the app profile. Values are of the form - # `projects//instances//appProfiles/_a-zA-Z0-9*`. + # `projects/`project`/instances/`instance`/appProfiles/_a-zA-Z0-9*`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -328,15 +327,14 @@ module Google class Cluster include Google::Apis::Core::Hashable - # (`CreationOnly`) - # The type of storage used by this cluster to serve its + # Immutable. The type of storage used by this cluster to serve its # parent instance's tables, unless explicitly overridden. # Corresponds to the JSON property `defaultStorageType` # @return [String] attr_accessor :default_storage_type - # (`CreationOnly`) - # The location where this cluster's nodes and storage reside. For best + # Immutable. The location where this cluster's nodes and storage reside. For + # best # performance, clients should be located as close as possible to this # cluster. Currently only zones are supported, so values should be of the # form `projects/`project`/locations/`zone``. @@ -344,7 +342,6 @@ module Google # @return [String] attr_accessor :location - # Required. (`OutputOnly`) # The unique name of the cluster. Values are of the form # `projects/`project`/instances/`instance`/clusters/a-z*`. # Corresponds to the JSON property `name` @@ -358,8 +355,7 @@ module Google # @return [Fixnum] attr_accessor :serve_nodes - # (`OutputOnly`) - # The current state of the cluster. + # Output only. The current state of the cluster. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -838,6 +834,9 @@ module Google # 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. + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -880,15 +879,13 @@ module Google # @return [Hash] attr_accessor :labels - # Required. (`OutputOnly`) # The unique name of the instance. Values are of the form # `projects/`project`/instances/a-z+[a-z0-9]`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # (`OutputOnly`) - # The current state of the instance. + # Output only. The current state of the instance. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -1343,10 +1340,13 @@ module Google # Google groups, and domains (such as G Suite). A `role` is a named list of # permissions; each `role` can be an IAM predefined role or a user-created # custom role. - # Optionally, a `binding` can specify a `condition`, which is a logical - # expression that allows access to a resource only if the expression evaluates - # to `true`. A condition can add constraints based on attributes of the - # request, the resource, or both. + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). # **JSON example:** # ` # "bindings": [ @@ -1361,7 +1361,9 @@ module Google # `, # ` # "role": "roles/resourcemanager.organizationViewer", - # "members": ["user:eve@example.com"], + # "members": [ + # "user:eve@example.com" + # ], # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", @@ -1439,6 +1441,9 @@ module Google # the conditions in the version `3` policy are lost. # If a policy does not include any conditions, operations on that policy may # specify any valid version or leave the field unset. + # To learn which resources support conditions in their IAM policies, see the + # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1467,10 +1472,13 @@ module Google # Google groups, and domains (such as G Suite). A `role` is a named list of # permissions; each `role` can be an IAM predefined role or a user-created # custom role. - # Optionally, a `binding` can specify a `condition`, which is a logical - # expression that allows access to a resource only if the expression evaluates - # to `true`. A condition can add constraints based on attributes of the - # request, the resource, or both. + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). # **JSON example:** # ` # "bindings": [ @@ -1485,7 +1493,9 @@ module Google # `, # ` # "role": "roles/resourcemanager.organizationViewer", - # "members": ["user:eve@example.com"], + # "members": [ + # "user:eve@example.com" + # ], # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", @@ -1523,8 +1533,7 @@ module Google # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only # the fields in the mask will be modified. If no mask is provided, the # following default mask is used: - # paths: "bindings, etag" - # This field is only used by Cloud IAM. + # `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -1643,24 +1652,23 @@ module Google # @return [Hash] attr_accessor :cluster_states - # (`CreationOnly`) # The column families configured for this table, mapped by column family ID. # Views: `SCHEMA_VIEW`, `FULL` # Corresponds to the JSON property `columnFamilies` # @return [Hash] attr_accessor :column_families - # (`CreationOnly`) - # The granularity (i.e. `MILLIS`) at which timestamps are stored in - # this table. Timestamps not matching the granularity will be rejected. + # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in + # this + # table. Timestamps not matching the granularity will be rejected. # If unspecified at creation time, the value will be set to `MILLIS`. # Views: `SCHEMA_VIEW`, `FULL`. # Corresponds to the JSON property `granularity` # @return [String] attr_accessor :granularity - # Output only. The unique name of the table. Values are of the form - # `projects//instances//tables/_a-zA-Z0-9*`. + # The unique name of the table. Values are of the form + # `projects/`project`/instances/`instance`/tables/_a-zA-Z0-9*`. # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` # Corresponds to the JSON property `name` # @return [String] diff --git a/generated/google/apis/bigtableadmin_v2/service.rb b/generated/google/apis/bigtableadmin_v2/service.rb index 1f02da02d..090d0a503 100644 --- a/generated/google/apis/bigtableadmin_v2/service.rb +++ b/generated/google/apis/bigtableadmin_v2/service.rb @@ -367,7 +367,6 @@ module Google # Partially updates an instance within a project. This method can modify all # fields of an Instance and is the preferred way to update an Instance. # @param [String] name - # Required. (`OutputOnly`) # The unique name of the instance. Values are of the form # `projects/`project`/instances/a-z+[a-z0-9]`. # @param [Google::Apis::BigtableadminV2::Instance] instance_object @@ -477,7 +476,6 @@ module Google # name and type for an Instance. To update other Instance properties, such as # labels, use PartialUpdateInstance. # @param [String] name - # Required. (`OutputOnly`) # The unique name of the instance. Values are of the form # `projects/`project`/instances/a-z+[a-z0-9]`. # @param [Google::Apis::BigtableadminV2::Instance] instance_object @@ -668,9 +666,8 @@ module Google # Updates an app profile within an instance. # @param [String] name - # (`OutputOnly`) # The unique name of the app profile. Values are of the form - # `projects//instances//appProfiles/_a-zA-Z0-9*`. + # `projects/`project`/instances/`instance`/appProfiles/_a-zA-Z0-9*`. # @param [Google::Apis::BigtableadminV2::AppProfile] app_profile_object # @param [Boolean] ignore_warnings # If true, ignore safety checks when updating the app profile. @@ -850,7 +847,6 @@ module Google # Updates a cluster within an instance. # @param [String] name - # Required. (`OutputOnly`) # The unique name of the cluster. Values are of the form # `projects/`project`/instances/`instance`/clusters/a-z*`. # @param [Google::Apis::BigtableadminV2::Cluster] cluster_object diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index 0dc30f2ca..2bc767c9a 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20200608' + REVISION = '20200617' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb index bd993d075..d488b7e60 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -349,12 +349,12 @@ module Google # restricted. For example, it controls which cloud services can be activated # across an organization, or whether a Compute Engine instance can have # serial port connections established. `Constraints` can be configured by the - # organization's policy adminstrator to fit the needs of the organzation by + # organization's policy administrator to fit the needs of the organzation by # setting Policies for `Constraints` at different locations in the # organization's resource hierarchy. Policies are inherited down the resource # hierarchy from higher levels, but can also be overridden. For details about # the inheritance rules please read about - # Policies. + # [Policies](/resource-manager/reference/rest/v1/Policy). # `Constraints` have a default behavior determined by the `constraint_default` # field, which is the enforcement behavior that is used in the absence of a # `Policy` being defined or inherited for the resource in question. @@ -369,7 +369,7 @@ module Google # @return [Google::Apis::CloudresourcemanagerV1::BooleanConstraint] attr_accessor :boolean_constraint - # The evaluation behavior of this constraint in the absense of 'Policy'. + # The evaluation behavior of this constraint in the absence of 'Policy'. # Corresponds to the JSON property `constraintDefault` # @return [String] attr_accessor :constraint_default @@ -575,7 +575,9 @@ module Google end end - # Response from the GetAncestry method. + # Response from the + # projects.getAncestry + # method. class GetAncestryResponse include Google::Apis::Core::Hashable @@ -742,8 +744,8 @@ module Google end end - # The request sent to the [ListAvailableOrgPolicyConstraints] - # google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method. + # The request sent to the `ListAvailableOrgPolicyConstraints` method on the + # project, folder, or organization. class ListAvailableOrgPolicyConstraintsRequest include Google::Apis::Core::Hashable @@ -771,7 +773,7 @@ module Google end end - # The response returned from the ListAvailableOrgPolicyConstraints method. + # The response returned from the `ListAvailableOrgPolicyConstraints` method. # Returns all `Constraints` that could be set at this level of the hierarchy # (contrast with the response from `ListPolicies`, which returns all policies # which are set). @@ -884,7 +886,7 @@ module Google end end - # The response returned from the ListOrgPolicies method. It will be empty + # The response returned from the `ListOrgPolicies` method. It will be empty # if no `Policies` are set on the resource. class ListOrgPoliciesResponse include Google::Apis::Core::Hashable @@ -953,7 +955,7 @@ module Google attr_accessor :denied_values # Determines the inheritance behavior for this `Policy`. - # By default, a `ListPolicy` set at a resource supercedes any `Policy` set + # By default, a `ListPolicy` set at a resource supersedes any `Policy` set # anywhere up the resource hierarchy. However, if `inherit_from_parent` is # set to `true`, then the values from the effective `Policy` of the parent # resource are inherited, meaning the values set in this `Policy` are @@ -1179,6 +1181,9 @@ module Google # The name of the `Constraint` the `Policy` is configuring, for example, # `constraints/serviceuser.services`. + # A [list of available + # constraints](/resource-manager/docs/organization-policy/org-policy-constraints) + # is available. # Immutable after creation. # Corresponds to the JSON property `constraint` # @return [String] diff --git a/generated/google/apis/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb index 692b29052..ce3fcf5c2 100644 --- a/generated/google/apis/cloudresourcemanager_v1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1/service.rb @@ -1054,8 +1054,8 @@ module Google # Permission is denied if the policy or the resource does not exist. # Authorization requires the Google IAM permission # `resourcemanager.projects.getIamPolicy` on the project. - # For additional information about resource structure and identification, - # see [Resource Names](/apis/design/resource_names). + # For additional information about `resource` (e.g. my-project-id) structure + # and identification, see [Resource Names](/apis/design/resource_names). # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. @@ -1142,13 +1142,14 @@ module Google # difference. # @param [String] filter # An expression for filtering the results of the request. Filter rules are - # case insensitive. The fields eligible for filtering are: + # case insensitive. Some eligible fields for filtering are: # + `name` # + `id` # + `labels.` (where *key* is the name of a label) # + `parent.type` # + `parent.id` - # Some examples of using labels as filters: + # + `lifecycleState` + # Some examples of filter strings: # | Filter | Description | # |------------------|-----------------------------------------------------| # | name:how* | The project's name starts with "how". | @@ -1157,8 +1158,12 @@ module Google # | NAME:howl | Equivalent to above. | # | labels.color:* | The project has the label `color`. | # | labels.color:red | The project's label `color` has the value `red`. | - # | labels.color:red labels.size:big |The project's label `color` has - # the value `red` and its label `size` has the value `big`. | + # | labels.color:red labels.size:big | The project's label `color` | + # : : has the value `red` and its : + # : : label`size` has the value : + # : : `big`. : + # | lifecycleState:DELETE_REQUESTED | Only show projects that are | + # : : pending deletion. : # If no filter is specified, the call will return projects for which the user # has the `resourcemanager.projects.get` permission. # NOTE: To perform a by-parent query (eg., what projects are directly in a @@ -1278,6 +1283,8 @@ module Google # NOTE: Removing service accounts from policies or changing their roles can # render services completely inoperable. It is important to understand how # the service account is being used before removing or updating its roles. + # For additional information about `resource` (e.g. my-project-id) structure + # and identification, see [Resource Names](/apis/design/resource_names). # The following constraints apply when using `setIamPolicy()`: # + Project does not support `allUsers` and `allAuthenticatedUsers` as # `members` in a `Binding` of a `Policy`. @@ -1378,6 +1385,8 @@ module Google end # Returns permissions that a caller has on the specified Project. + # For additional information about `resource` (e.g. my-project-id) structure + # and identification, see [Resource Names](/apis/design/resource_names). # There are no permissions required for making this API call. # @param [String] resource # REQUIRED: The resource for which the policy detail is being requested. diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index 4d58a7afb..58595c635 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20200608' + REVISION = '20200617' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index 9803b08a2..3ada0c8a4 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -384,7 +384,7 @@ module Google end # The request sent to the - # GetAncestry + # [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetAncestry] # method. class GetAncestryRequest include Google::Apis::Core::Hashable @@ -398,7 +398,9 @@ module Google end end - # Response from the GetAncestry method. + # Response from the + # projects.getAncestry + # method. class GetAncestryResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudresourcemanager_v2.rb b/generated/google/apis/cloudresourcemanager_v2.rb index a0182d58d..0d9fd0a91 100644 --- a/generated/google/apis/cloudresourcemanager_v2.rb +++ b/generated/google/apis/cloudresourcemanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2 VERSION = 'V2' - REVISION = '20200608' + REVISION = '20200617' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v2beta1.rb b/generated/google/apis/cloudresourcemanager_v2beta1.rb index 771535c60..ccc58c0c3 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2beta1 VERSION = 'V2beta1' - REVISION = '20200608' + REVISION = '20200617' # 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/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index fcbab3241..189fc09f2 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20200515' + REVISION = '20200526' # 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/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index 59b48657c..d6c7f8872 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1129,7 +1129,7 @@ module Google end end - # Properties of the SKU instances being reserved. + # Properties of the SKU instances being reserved. Next ID: 9 class AllocationSpecificSkuAllocationReservedInstanceProperties include Google::Apis::Core::Hashable @@ -1175,6 +1175,13 @@ module Google # @return [Fixnum] attr_accessor :maintenance_freeze_duration_hours + # Specifies whether this VM may be a stable fleet VM. Setting this to "Periodic" + # designates this VM as a Stable Fleet VM. + # See go/stable-fleet-ug for more details. + # Corresponds to the JSON property `maintenanceInterval` + # @return [String] + attr_accessor :maintenance_interval + # Minimum cpu platform the reservation. # Corresponds to the JSON property `minCpuPlatform` # @return [String] @@ -1192,6 +1199,7 @@ module Google @long_term_release = args[:long_term_release] if args.key?(:long_term_release) @machine_type = args[:machine_type] if args.key?(:machine_type) @maintenance_freeze_duration_hours = args[:maintenance_freeze_duration_hours] if args.key?(:maintenance_freeze_duration_hours) + @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) end end @@ -1210,7 +1218,7 @@ module Google # @return [Fixnum] attr_accessor :in_use_count - # Properties of the SKU instances being reserved. + # Properties of the SKU instances being reserved. Next ID: 9 # Corresponds to the JSON property `instanceProperties` # @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties] attr_accessor :instance_properties @@ -2927,8 +2935,12 @@ module Google end # Represents a Backend Service resource. - # A backend service contains configuration values for Google Cloud Platform load - # balancing services. + # A backend service defines how Google Cloud load balancers distribute traffic. + # The backend service configuration contains a set of values, such as the + # protocol used to connect to backends, various distribution and session + # settings, health checks, and timeouts. These settings provide fine-grained + # control over how your load balancer behaves. Most of the settings have default + # values that allow for easy configuration if you need to get started quickly. # Backend services in Google Compute Engine can be either regionally or globally # scoped. # * [Global](/compute/docs/reference/rest/`$api_version`/backendServices) * [ @@ -7598,6 +7610,427 @@ module Google end end + # Represents a Firewall Policy resource. (== resource_for `$api_version`. + # firewallPolicies ==) + class FirewallPolicy + include Google::Apis::Core::Hashable + + # A list of associations that belong to this firewall policy. + # Corresponds to the JSON property `associations` + # @return [Array] + attr_accessor :associations + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # User-provided name of the Organization firewall plicy. The name should be + # unique in the organization in which the firewall policy is created. The name + # must be 1-63 characters long, and comply with RFC1035. Specifically, the name + # must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]* + # [a-z0-9])?` which means the first character must be a lowercase letter, and + # all following characters must be a dash, lowercase letter, or digit, except + # the last character, which cannot be a dash. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Specifies a fingerprint for this resource, which is essentially a hash of the + # metadata's contents and used for optimistic locking. The fingerprint is + # initially generated by Compute Engine and changes after every request to + # modify or update metadata. You must always provide an up-to-date fingerprint + # hash in order to update or change metadata, otherwise the request will fail + # with error 412 conditionNotMet. + # To see the latest fingerprint, make get() request to the firewall policy. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output only] Type of the resource. Always compute#firewallPolicyfor firewall + # policies + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] Name of the resource. It is a numeric ID allocated by GCP which + # uniquely identifies the Firewall Policy. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] The parent of the firewall policy. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # [Output Only] Total count of all firewall policy rule tuples. A firewall + # policy can not exceed a set number of tuples. + # Corresponds to the JSON property `ruleTupleCount` + # @return [Fixnum] + attr_accessor :rule_tuple_count + + # A list of rules that belong to this policy. There must always be a default + # rule (rule with priority 2147483647 and match "*"). If no rules are provided + # when creating a firewall policy, a default rule with action "allow" will be + # added. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @associations = args[:associations] if args.key?(:associations) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count) + @rules = args[:rules] if args.key?(:rules) + @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + end + end + + # + class FirewallPolicyAssociation + include Google::Apis::Core::Hashable + + # The target that the firewall policy is attached to. + # Corresponds to the JSON property `attachmentTarget` + # @return [String] + attr_accessor :attachment_target + + # [Output Only] The display name of the firewall policy of the association. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # [Output Only] The firewall policy ID of the association. + # Corresponds to the JSON property `firewallPolicyId` + # @return [String] + attr_accessor :firewall_policy_id + + # The name for an association. + # 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) + @attachment_target = args[:attachment_target] if args.key?(:attachment_target) + @display_name = args[:display_name] if args.key?(:display_name) + @firewall_policy_id = args[:firewall_policy_id] if args.key?(:firewall_policy_id) + @name = args[:name] if args.key?(:name) + end + end + + # + class FirewallPolicyList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of FirewallPolicy resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#firewallPolicyList for listsof + # FirewallPolicies + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::FirewallPolicyList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Represents a rule that describes one or more match conditions along with the + # action to be taken when traffic matches this condition (allow or deny). + class FirewallPolicyRule + include Google::Apis::Core::Hashable + + # The Action to perform when the client connection triggers the rule. Can + # currently be either "allow" or "deny()" where valid values for status are 403, + # 404, and 502. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The direction in which this rule applies. + # Corresponds to the JSON property `direction` + # @return [String] + attr_accessor :direction + + # Denotes whether to enable logging for a particular rule. If logging is enabled, + # logs will be exported to the configured export destination in Stackdriver. + # Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging + # on "goto_next" rules. + # Corresponds to the JSON property `enableLogging` + # @return [Boolean] + attr_accessor :enable_logging + alias_method :enable_logging?, :enable_logging + + # [Output only] Type of the resource. Always compute#firewallPolicyRule for + # firewall policy rules + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Represents a match condition that incoming traffic is evaluated against. + # Exactly one field must be specified. + # Corresponds to the JSON property `match` + # @return [Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcher] + attr_accessor :match + + # If set to true, the specified action is not enforced. + # Corresponds to the JSON property `preview` + # @return [Boolean] + attr_accessor :preview + alias_method :preview?, :preview + + # An integer indicating the priority of a rule in the list. The priority must be + # a positive value between 0 and 2147483647. Rules are evaluated from highest to + # lowest priority where 0 is the highest priority and 2147483647 is the lowest + # prority. + # Corresponds to the JSON property `priority` + # @return [Fixnum] + attr_accessor :priority + + # [Output Only] Calculation of the complexity of a single firewall policy rule. + # Corresponds to the JSON property `ruleTupleCount` + # @return [Fixnum] + attr_accessor :rule_tuple_count + + # A list of network resource URLs to which this rule applies. This field allows + # you to control which network?s VMs get this rule. If this field is left blank, + # all VMs within the organization will receive the rule. + # Corresponds to the JSON property `targetResources` + # @return [Array] + attr_accessor :target_resources + + # A list of service accounts indicating the sets of instances that are applied + # with this rule. + # Corresponds to the JSON property `targetServiceAccounts` + # @return [Array] + attr_accessor :target_service_accounts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @description = args[:description] if args.key?(:description) + @direction = args[:direction] if args.key?(:direction) + @enable_logging = args[:enable_logging] if args.key?(:enable_logging) + @kind = args[:kind] if args.key?(:kind) + @match = args[:match] if args.key?(:match) + @preview = args[:preview] if args.key?(:preview) + @priority = args[:priority] if args.key?(:priority) + @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count) + @target_resources = args[:target_resources] if args.key?(:target_resources) + @target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts) + end + end + + # Represents a match condition that incoming traffic is evaluated against. + # Exactly one field must be specified. + class FirewallPolicyRuleMatcher + include Google::Apis::Core::Hashable + + # CIDR IP address range. + # Corresponds to the JSON property `destIpRanges` + # @return [Array] + attr_accessor :dest_ip_ranges + + # Pairs of IP protocols and ports that the rule should match. + # Corresponds to the JSON property `layer4Configs` + # @return [Array] + attr_accessor :layer4_configs + + # CIDR IP address range. + # Corresponds to the JSON property `srcIpRanges` + # @return [Array] + attr_accessor :src_ip_ranges + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges) + @layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs) + @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges) + end + end + + # + class FirewallPolicyRuleMatcherLayer4Config + include Google::Apis::Core::Hashable + + # The IP protocol to which this rule applies. The protocol type is required when + # creating a firewall rule. This value can either be one of the following well + # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP + # protocol number. + # Corresponds to the JSON property `ipProtocol` + # @return [String] + attr_accessor :ip_protocol + + # An optional list of ports to which this rule applies. This field is only + # applicable for UDP or TCP protocol. Each entry must be either an integer or a + # range. If not specified, this rule applies to connections through any port. + # Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + # Corresponds to the JSON property `ports` + # @return [Array] + attr_accessor :ports + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) + @ports = args[:ports] if args.key?(:ports) + end + end + # Encapsulates numeric value that can be either absolute or relative. class FixedOrPercent include Google::Apis::Core::Hashable @@ -11957,7 +12390,7 @@ module Google # @return [Array] attr_accessor :resource_policies - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeAlpha::Scheduling] attr_accessor :scheduling @@ -13296,6 +13729,11 @@ module Google attr_accessor :is_stateful alias_method :is_stateful?, :is_stateful + # [Output Only] Status of per-instance configs on the instance. + # Corresponds to the JSON property `perInstanceConfigs` + # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerStatusStatefulPerInstanceConfigs] + attr_accessor :per_instance_configs + def initialize(**args) update!(**args) end @@ -13304,6 +13742,29 @@ module Google def update!(**args) @has_stateful_config = args[:has_stateful_config] if args.key?(:has_stateful_config) @is_stateful = args[:is_stateful] if args.key?(:is_stateful) + @per_instance_configs = args[:per_instance_configs] if args.key?(:per_instance_configs) + end + end + + # + class InstanceGroupManagerStatusStatefulPerInstanceConfigs + include Google::Apis::Core::Hashable + + # A bit indicating if all of the group's per-instance configs (listed in the + # output of a listPerInstanceConfigs API call) have status EFFECTIVE or there + # are no per-instance-configs. + # Corresponds to the JSON property `allEffective` + # @return [Boolean] + attr_accessor :all_effective + alias_method :all_effective?, :all_effective + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @all_effective = args[:all_effective] if args.key?(:all_effective) end end @@ -14766,7 +15227,7 @@ module Google # @return [Array] attr_accessor :resource_policies - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeAlpha::Scheduling] attr_accessor :scheduling @@ -18139,7 +18600,8 @@ module Google # @return [String] attr_accessor :status - # GCS bucket storage location of the machine image (regional or multi-regional). + # The regional or multi-regional Cloud Storage bucket location where the machine + # image is stored. # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -19253,6 +19715,11 @@ module Google # @return [String] attr_accessor :description + # [Output Only] URL of the firewall policy the network is associated with. + # Corresponds to the JSON property `firewallPolicy` + # @return [String] + attr_accessor :firewall_policy + # [Output Only] The gateway address for default routing out of the network, # selected by GCP. # Corresponds to the JSON property `gatewayIPv4` @@ -19324,6 +19791,7 @@ module Google @auto_create_subnetworks = args[:auto_create_subnetworks] if args.key?(:auto_create_subnetworks) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @firewall_policy = args[:firewall_policy] if args.key?(:firewall_policy) @gateway_i_pv4 = args[:gateway_i_pv4] if args.key?(:gateway_i_pv4) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @@ -24411,6 +24879,12 @@ module Google # @return [Google::Apis::ComputeAlpha::PreservedState] attr_accessor :preserved_state + # The status of applying this per-instance config on the corresponding managed + # instance. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + def initialize(**args) update!(**args) end @@ -24420,6 +24894,7 @@ module Google @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @name = args[:name] if args.key?(:name) @preserved_state = args[:preserved_state] if args.key?(:preserved_state) + @status = args[:status] if args.key?(:status) end end @@ -30747,7 +31222,7 @@ module Google end end - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 class Scheduling include Google::Apis::Core::Hashable @@ -31621,14 +32096,7 @@ module Google class SecuritySettings include Google::Apis::Core::Hashable - # A URL referring to a networksecurity.Authentication resource that describes - # how clients should authenticate with this service's backends. If left blank, - # communications between services are not encrypted (i.e., the TLS policy is set - # to OPEN). When sending traffic to this service's backends, the OriginationTls - # setting of Authentication.TransportAuthentication is applied. Refer to the - # Authentication and Authentication.TransportAuthentication.OriginationTls - # resources for additional details. authentication only applies to a global - # BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # [Deprecated] Use clientTlsPolicy instead. # Corresponds to the JSON property `authentication` # @return [String] attr_accessor :authentication @@ -31645,18 +32113,33 @@ module Google # @return [Google::Apis::ComputeAlpha::AuthorizationConfig] attr_accessor :authorization_config + # Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that + # describes how clients should authenticate with this service's backends. + # clientTlsPolicy only applies to a global BackendService with the + # loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # If left blank, communications are not encrypted. + # Corresponds to the JSON property `clientTlsPolicy` + # @return [String] + attr_accessor :client_tls_policy + # [Deprecated] The client side authentication settings for connection # originating from the backend service. the backend service. # Corresponds to the JSON property `clientTlsSettings` # @return [Google::Apis::ComputeAlpha::ClientTlsSettings] attr_accessor :client_tls_settings - # Optional. A list of subject alternate names to verify the subject identity ( - # SAN) in the certificate presented by the server, to authorize the SAN list as - # identities to run the service represented by this BackendService. If specified, - # the client will verify that the server certificate's subject alt name matches - # one of the specified values. Only applies to a global BackendService with the - # loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # Optional. A list of Subject Alternative Names (SANs) that the client verifies + # during a mutual TLS handshake with an server/endpoint for this BackendService. + # When the server presents its X.509 certificate to the client, the client + # inspects the certificate's subjectAltName field. If the field contains one of + # the specified values, the communication continues. Otherwise, it fails. This + # additional check enables the client to verify that the server is authorized to + # run the requested service. + # Note that the contents of the server certificate's subjectAltName field are + # configured by the Public Key Infrastructure which provisions server identities. + # Only applies to a global BackendService with loadBalancingScheme set to + # INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached + # clientTlsPolicy with clientCertificate (mTLS mode). # Corresponds to the JSON property `subjectAltNames` # @return [Array] attr_accessor :subject_alt_names @@ -31670,6 +32153,7 @@ module Google @authentication = args[:authentication] if args.key?(:authentication) @authentication_policy = args[:authentication_policy] if args.key?(:authentication_policy) @authorization_config = args[:authorization_config] if args.key?(:authorization_config) + @client_tls_policy = args[:client_tls_policy] if args.key?(:client_tls_policy) @client_tls_settings = args[:client_tls_settings] if args.key?(:client_tls_settings) @subject_alt_names = args[:subject_alt_names] if args.key?(:subject_alt_names) end @@ -32732,7 +33216,7 @@ module Google # @return [Array] attr_accessor :network_interfaces - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeAlpha::Scheduling] attr_accessor :scheduling @@ -32784,9 +33268,9 @@ module Google # to five PEM-encoded certificates. The API call creates an object ( # sslCertificate) that holds this data. You can use SSL keys and certificates to # secure connections to a load balancer. For more information, read Creating - # and using SSL certificates and SSL certificates quotas and limits. (== - # resource_for `$api_version`.sslCertificates ==) (== resource_for `$api_version` - # .regionSslCertificates ==) + # and using SSL certificates, SSL certificates quotas and limits, and + # Troubleshooting SSL certificates. (== resource_for `$api_version`. + # sslCertificates ==) (== resource_for `$api_version`.regionSslCertificates ==) class SslCertificate include Google::Apis::Core::Hashable @@ -35351,31 +35835,27 @@ module Google class TargetHttpsProxy include Google::Apis::Core::Hashable - # A URL referring to a networksecurity.Authentication resource that describes - # how the proxy should authenticate inbound traffic. If left blank, - # communications between services are not encrypted (i.e., the TLS policy is set - # to OPEN). When terminating inbound traffic to this proxy, the TerminationTls - # setting of Authentication.TransportAuthentication is applied. - # Refer to the Authentication and Authentication.TransportAuthentication. - # TerminationTls resources for additional details. - # authentication only applies to a global TargetHttpsProxy attached to - # globalForwardingRules with the loadBalancingScheme set to - # INTERNAL_SELF_MANAGED. + # [Deprecated] Use serverTlsPolicy instead. # Corresponds to the JSON property `authentication` # @return [String] attr_accessor :authentication - # A URL referring to a networksecurity.Authorization resource that describes how - # the proxy should authorize inbound traffic. If left blank, access will not be - # restricted by an authorization policy. - # Refer to the Authorization resource for additional details. - # authorization only applies to a global TargetHttpsProxy attached to - # globalForwardingRules with the loadBalancingScheme set to - # INTERNAL_SELF_MANAGED. + # [Deprecated] Use authorizationPolicy instead. # Corresponds to the JSON property `authorization` # @return [String] attr_accessor :authorization + # Optional. A URL referring to a networksecurity.AuthorizationPolicy resource + # that describes how the proxy should authorize inbound traffic. If left blank, + # access will not be restricted by an authorization policy. + # Refer to the AuthorizationPolicy resource for additional details. + # authorizationPolicy only applies to a global TargetHttpsProxy attached to + # globalForwardingRules with the loadBalancingScheme set to + # INTERNAL_SELF_MANAGED. + # Corresponds to the JSON property `authorizationPolicy` + # @return [String] + attr_accessor :authorization_policy + # URL of a certificate map that identifies a certificate map associated with the # given target proxy. This field can only be set for global target proxies. If # set, sslCertificates will be ignored. @@ -35453,6 +35933,16 @@ module Google # @return [String] attr_accessor :self_link_with_id + # Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that + # describes how the proxy should authenticate inbound traffic. + # serverTlsPolicy only applies to a global TargetHttpsProxy attached to + # globalForwardingRules with the loadBalancingScheme set to + # INTERNAL_SELF_MANAGED. + # If left blank, communications are not encrypted. + # Corresponds to the JSON property `serverTlsPolicy` + # @return [String] + attr_accessor :server_tls_policy + # URLs to SslCertificate resources that are used to authenticate connections # between users and the load balancer. At least one SSL certificate must be # specified. Currently, you may specify up to 15 SSL certificates. @@ -35485,6 +35975,7 @@ module Google def update!(**args) @authentication = args[:authentication] if args.key?(:authentication) @authorization = args[:authorization] if args.key?(:authorization) + @authorization_policy = args[:authorization_policy] if args.key?(:authorization_policy) @certificate_map = args[:certificate_map] if args.key?(:certificate_map) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @@ -35496,6 +35987,7 @@ module Google @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @server_tls_policy = args[:server_tls_policy] if args.key?(:server_tls_policy) @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) @ssl_policy = args[:ssl_policy] if args.key?(:ssl_policy) @url_map = args[:url_map] if args.key?(:url_map) diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 169b9b77b..09c766efc 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -922,6 +922,54 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FirewallPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FirewallPolicyAssociation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FirewallPolicyList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class FirewallPolicyRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FirewallPolicyRuleMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FirewallPolicyRuleMatcherLayer4Config + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FixedOrPercent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1522,6 +1570,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagerStatusStatefulPerInstanceConfigs + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagerStatusVersionTarget class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5713,6 +5767,7 @@ module Google property :long_term_release, as: 'longTermRelease' property :machine_type, as: 'machineType' property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours' + property :maintenance_interval, as: 'maintenanceInterval' property :min_cpu_platform, as: 'minCpuPlatform' end end @@ -7172,6 +7227,104 @@ module Google end end + class FirewallPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :associations, as: 'associations', class: Google::Apis::ComputeAlpha::FirewallPolicyAssociation, decorator: Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation + + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :fingerprint, :base64 => true, as: 'fingerprint' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :parent, as: 'parent' + property :rule_tuple_count, as: 'ruleTupleCount' + collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::FirewallPolicyRule, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation + + property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' + end + end + + class FirewallPolicyAssociation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attachment_target, as: 'attachmentTarget' + property :display_name, as: 'displayName' + property :firewall_policy_id, as: 'firewallPolicyId' + property :name, as: 'name' + end + end + + class FirewallPolicyList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::FirewallPolicy, decorator: Google::Apis::ComputeAlpha::FirewallPolicy::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::FirewallPolicyList::Warning, decorator: Google::Apis::ComputeAlpha::FirewallPolicyList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::FirewallPolicyList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::FirewallPolicyList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class FirewallPolicyRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action' + property :description, as: 'description' + property :direction, as: 'direction' + property :enable_logging, as: 'enableLogging' + property :kind, as: 'kind' + property :match, as: 'match', class: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcher, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcher::Representation + + property :preview, as: 'preview' + property :priority, as: 'priority' + property :rule_tuple_count, as: 'ruleTupleCount' + collection :target_resources, as: 'targetResources' + collection :target_service_accounts, as: 'targetServiceAccounts' + end + end + + class FirewallPolicyRuleMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dest_ip_ranges, as: 'destIpRanges' + collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcherLayer4Config::Representation + + collection :src_ip_ranges, as: 'srcIpRanges' + end + end + + class FirewallPolicyRuleMatcherLayer4Config + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_protocol, as: 'ipProtocol' + collection :ports, as: 'ports' + end + end + class FixedOrPercent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8453,6 +8606,15 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :has_stateful_config, as: 'hasStatefulConfig' property :is_stateful, as: 'isStateful' + property :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeAlpha::InstanceGroupManagerStatusStatefulPerInstanceConfigs, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerStatusStatefulPerInstanceConfigs::Representation + + end + end + + class InstanceGroupManagerStatusStatefulPerInstanceConfigs + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :all_effective, as: 'allEffective' end end @@ -10006,6 +10168,7 @@ module Google property :auto_create_subnetworks, as: 'autoCreateSubnetworks' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :firewall_policy, as: 'firewallPolicy' property :gateway_i_pv4, as: 'gatewayIPv4' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' @@ -11314,6 +11477,7 @@ module Google property :name, as: 'name' property :preserved_state, as: 'preservedState', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation + property :status, as: 'status' end end @@ -13159,6 +13323,7 @@ module Google property :authorization_config, as: 'authorizationConfig', class: Google::Apis::ComputeAlpha::AuthorizationConfig, decorator: Google::Apis::ComputeAlpha::AuthorizationConfig::Representation + property :client_tls_policy, as: 'clientTlsPolicy' property :client_tls_settings, as: 'clientTlsSettings', class: Google::Apis::ComputeAlpha::ClientTlsSettings, decorator: Google::Apis::ComputeAlpha::ClientTlsSettings::Representation collection :subject_alt_names, as: 'subjectAltNames' @@ -14081,6 +14246,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :authentication, as: 'authentication' property :authorization, as: 'authorization' + property :authorization_policy, as: 'authorizationPolicy' property :certificate_map, as: 'certificateMap' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' @@ -14092,6 +14258,7 @@ module Google property :region, as: 'region' property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' + property :server_tls_policy, as: 'serverTlsPolicy' collection :ssl_certificates, as: 'sslCertificates' property :ssl_policy, as: 'sslPolicy' property :url_map, as: 'urlMap' diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 02cec3903..d23d73d7e 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -8534,6 +8534,9 @@ module Google # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8553,7 +8556,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersListManagedInstancesResponse::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagersListManagedInstancesResponse @@ -8564,6 +8567,7 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -15592,6 +15596,740 @@ module Google execute_or_queue_command(command, &block) end + # Inserts an association for the specified firewall policy. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to update. + # @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object + # @param [Boolean] replace_existing_association + # Indicates whether or not to replace it if an association of the attachment + # already exists. This is false by default, in which case an error will be + # returned if an association already exists. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def add_network_firewall_policy_association(project, firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/addAssociation', options) + command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation + command.request_object = firewall_policy_association_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a rule into a firewall policy. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to update. + # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/addRule', options) + command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation + command.request_object = firewall_policy_rule_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Copies rules to the specified firewall policy. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to update. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] source_firewall_policy + # The firewall policy from which to copy rules. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def clone_network_firewall_policy_rules(project, firewall_policy, request_id: nil, source_firewall_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/cloneRules', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified policy. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_network_firewall_policy(project, firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/firewallPolicies/{firewallPolicy}', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified network firewall policy. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to get. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::FirewallPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_network_firewall_policy(project, firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/firewallPolicies/{firewallPolicy}', options) + command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation + command.response_class = Google::Apis::ComputeAlpha::FirewallPolicy + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets an association with the specified name. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to which the queried rule belongs. + # @param [String] name + # The name of the association to get from the firewall policy. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_network_firewall_policy_association(project, firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/firewallPolicies/{firewallPolicy}/getAssociation', options) + command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation + command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyAssociation + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_network_firewall_policy_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/firewallPolicies/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets a rule of the specified priority. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to which the queried rule belongs. + # @param [Fixnum] priority + # The priority of the rule to get from the firewall policy. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::FirewallPolicyRule] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_network_firewall_policy_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/firewallPolicies/{firewallPolicy}/getRule', options) + command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation + command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['priority'] = priority unless priority.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new policy in the specified project using the data included in the + # request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_network_firewall_policy(project, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewallPolicies', options) + command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation + command.request_object = firewall_policy_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all the policies that have been configured for the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. + # @param [String] page_token + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::FirewallPolicyList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_network_firewall_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/firewallPolicies', options) + command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation + command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches the specified policy with the data included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to update. + # @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_network_firewall_policy(project, firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/firewallPolicies/{firewallPolicy}', options) + command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation + command.request_object = firewall_policy_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches a rule of the specified priority. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to update. + # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object + # @param [Fixnum] priority + # The priority of the rule to patch. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/patchRule', options) + command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation + command.request_object = firewall_policy_rule_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['priority'] = priority unless priority.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Removes an association for the specified firewall policy. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to update. + # @param [String] name + # Name for the attachment that will be removed. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def remove_network_firewall_policy_association(project, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['name'] = name unless name.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a rule of the specified priority. + # @param [String] project + # Project ID for this request. + # @param [String] firewall_policy + # Name of the firewall policy to update. + # @param [Fixnum] priority + # The priority of the rule to remove from the firewall policy. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def remove_network_firewall_policy_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/removeRule', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil? + command.query['priority'] = priority unless priority.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_network_firewall_policy_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewallPolicies/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation + command.request_object = global_set_policy_request_object + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse] + # + # @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 test_network_firewall_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewallPolicies/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Adds a peering to the specified network. # @param [String] project # Project ID for this request. @@ -19156,6 +19894,9 @@ module Google # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19175,7 +19916,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_xpn_resources(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_project_xpn_resources(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/getXpnResources', options) command.response_representation = Google::Apis::ComputeAlpha::ProjectsGetXpnResources::Representation command.response_class = Google::Apis::ComputeAlpha::ProjectsGetXpnResources @@ -19184,6 +19925,7 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -19228,6 +19970,9 @@ module Google # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19247,7 +19992,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_project_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{project}/listXpnHosts', options) command.request_representation = Google::Apis::ComputeAlpha::ProjectsListXpnHostsRequest::Representation command.request_object = projects_list_xpn_hosts_request_object @@ -19258,6 +20003,7 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -23801,6 +24547,9 @@ module Google # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23820,7 +24569,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListInstancesResponse::Representation command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListInstancesResponse @@ -23831,6 +24580,7 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index adcdefd9b..7f5c06ced 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20200515' + REVISION = '20200526' # 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/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 499c0bf31..493276111 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -1091,7 +1091,7 @@ module Google end end - # Properties of the SKU instances being reserved. + # Properties of the SKU instances being reserved. Next ID: 9 class AllocationSpecificSkuAllocationReservedInstanceProperties include Google::Apis::Core::Hashable @@ -1113,6 +1113,13 @@ module Google # @return [String] attr_accessor :machine_type + # Specifies whether this VM may be a stable fleet VM. Setting this to "Periodic" + # designates this VM as a Stable Fleet VM. + # See go/stable-fleet-ug for more details. + # Corresponds to the JSON property `maintenanceInterval` + # @return [String] + attr_accessor :maintenance_interval + # Minimum cpu platform the reservation. # Corresponds to the JSON property `minCpuPlatform` # @return [String] @@ -1127,6 +1134,7 @@ module Google @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) @local_ssds = args[:local_ssds] if args.key?(:local_ssds) @machine_type = args[:machine_type] if args.key?(:machine_type) + @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) end end @@ -1145,7 +1153,7 @@ module Google # @return [Fixnum] attr_accessor :in_use_count - # Properties of the SKU instances being reserved. + # Properties of the SKU instances being reserved. Next ID: 9 # Corresponds to the JSON property `instanceProperties` # @return [Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties] attr_accessor :instance_properties @@ -2699,8 +2707,12 @@ module Google end # Represents a Backend Service resource. - # A backend service contains configuration values for Google Cloud Platform load - # balancing services. + # A backend service defines how Google Cloud load balancers distribute traffic. + # The backend service configuration contains a set of values, such as the + # protocol used to connect to backends, various distribution and session + # settings, health checks, and timeouts. These settings provide fine-grained + # control over how your load balancer behaves. Most of the settings have default + # values that allow for easy configuration if you need to get started quickly. # Backend services in Google Compute Engine can be either regionally or globally # scoped. # * [Global](/compute/docs/reference/rest/`$api_version`/backendServices) * [ @@ -10861,7 +10873,7 @@ module Google # @return [Array] attr_accessor :resource_policies - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeBeta::Scheduling] attr_accessor :scheduling @@ -12149,6 +12161,11 @@ module Google attr_accessor :is_stateful alias_method :is_stateful?, :is_stateful + # [Output Only] Status of per-instance configs on the instance. + # Corresponds to the JSON property `perInstanceConfigs` + # @return [Google::Apis::ComputeBeta::InstanceGroupManagerStatusStatefulPerInstanceConfigs] + attr_accessor :per_instance_configs + def initialize(**args) update!(**args) end @@ -12157,6 +12174,29 @@ module Google def update!(**args) @has_stateful_config = args[:has_stateful_config] if args.key?(:has_stateful_config) @is_stateful = args[:is_stateful] if args.key?(:is_stateful) + @per_instance_configs = args[:per_instance_configs] if args.key?(:per_instance_configs) + end + end + + # + class InstanceGroupManagerStatusStatefulPerInstanceConfigs + include Google::Apis::Core::Hashable + + # A bit indicating if all of the group's per-instance configs (listed in the + # output of a listPerInstanceConfigs API call) have status EFFECTIVE or there + # are no per-instance-configs. + # Corresponds to the JSON property `allEffective` + # @return [Boolean] + attr_accessor :all_effective + alias_method :all_effective?, :all_effective + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @all_effective = args[:all_effective] if args.key?(:all_effective) end end @@ -13592,7 +13632,7 @@ module Google # @return [Array] attr_accessor :resource_policies - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeBeta::Scheduling] attr_accessor :scheduling @@ -16421,7 +16461,8 @@ module Google # @return [String] attr_accessor :status - # GCS bucket storage location of the machine image (regional or multi-regional). + # The regional or multi-regional Cloud Storage bucket location where the machine + # image is stored. # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -22212,6 +22253,12 @@ module Google # @return [Google::Apis::ComputeBeta::PreservedState] attr_accessor :preserved_state + # The status of applying this per-instance config on the corresponding managed + # instance. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + def initialize(**args) update!(**args) end @@ -22221,6 +22268,7 @@ module Google @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @name = args[:name] if args.key?(:name) @preserved_state = args[:preserved_state] if args.key?(:preserved_state) + @status = args[:status] if args.key?(:status) end end @@ -27206,7 +27254,7 @@ module Google end end - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 class Scheduling include Google::Apis::Core::Hashable @@ -27900,24 +27948,32 @@ module Google class SecuritySettings include Google::Apis::Core::Hashable - # A URL referring to a networksecurity.Authentication resource that describes - # how clients should authenticate with this service's backends. If left blank, - # communications between services are not encrypted (i.e., the TLS policy is set - # to OPEN). When sending traffic to this service's backends, the OriginationTls - # setting of Authentication.TransportAuthentication is applied. Refer to the - # Authentication and Authentication.TransportAuthentication.OriginationTls - # resources for additional details. authentication only applies to a global - # BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # [Deprecated] Use clientTlsPolicy instead. # Corresponds to the JSON property `authentication` # @return [String] attr_accessor :authentication - # Optional. A list of subject alternate names to verify the subject identity ( - # SAN) in the certificate presented by the server, to authorize the SAN list as - # identities to run the service represented by this BackendService. If specified, - # the client will verify that the server certificate's subject alt name matches - # one of the specified values. Only applies to a global BackendService with the + # Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that + # describes how clients should authenticate with this service's backends. + # clientTlsPolicy only applies to a global BackendService with the # loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # If left blank, communications are not encrypted. + # Corresponds to the JSON property `clientTlsPolicy` + # @return [String] + attr_accessor :client_tls_policy + + # Optional. A list of Subject Alternative Names (SANs) that the client verifies + # during a mutual TLS handshake with an server/endpoint for this BackendService. + # When the server presents its X.509 certificate to the client, the client + # inspects the certificate's subjectAltName field. If the field contains one of + # the specified values, the communication continues. Otherwise, it fails. This + # additional check enables the client to verify that the server is authorized to + # run the requested service. + # Note that the contents of the server certificate's subjectAltName field are + # configured by the Public Key Infrastructure which provisions server identities. + # Only applies to a global BackendService with loadBalancingScheme set to + # INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached + # clientTlsPolicy with clientCertificate (mTLS mode). # Corresponds to the JSON property `subjectAltNames` # @return [Array] attr_accessor :subject_alt_names @@ -27929,6 +27985,7 @@ module Google # Update properties of this object def update!(**args) @authentication = args[:authentication] if args.key?(:authentication) + @client_tls_policy = args[:client_tls_policy] if args.key?(:client_tls_policy) @subject_alt_names = args[:subject_alt_names] if args.key?(:subject_alt_names) end end @@ -28698,7 +28755,7 @@ module Google # @return [Array] attr_accessor :network_interfaces - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeBeta::Scheduling] attr_accessor :scheduling @@ -28750,9 +28807,9 @@ module Google # to five PEM-encoded certificates. The API call creates an object ( # sslCertificate) that holds this data. You can use SSL keys and certificates to # secure connections to a load balancer. For more information, read Creating - # and using SSL certificates and SSL certificates quotas and limits. (== - # resource_for `$api_version`.sslCertificates ==) (== resource_for `$api_version` - # .regionSslCertificates ==) + # and using SSL certificates, SSL certificates quotas and limits, and + # Troubleshooting SSL certificates. (== resource_for `$api_version`. + # sslCertificates ==) (== resource_for `$api_version`.regionSslCertificates ==) class SslCertificate include Google::Apis::Core::Hashable @@ -30977,31 +31034,27 @@ module Google class TargetHttpsProxy include Google::Apis::Core::Hashable - # A URL referring to a networksecurity.Authentication resource that describes - # how the proxy should authenticate inbound traffic. If left blank, - # communications between services are not encrypted (i.e., the TLS policy is set - # to OPEN). When terminating inbound traffic to this proxy, the TerminationTls - # setting of Authentication.TransportAuthentication is applied. - # Refer to the Authentication and Authentication.TransportAuthentication. - # TerminationTls resources for additional details. - # authentication only applies to a global TargetHttpsProxy attached to - # globalForwardingRules with the loadBalancingScheme set to - # INTERNAL_SELF_MANAGED. + # [Deprecated] Use serverTlsPolicy instead. # Corresponds to the JSON property `authentication` # @return [String] attr_accessor :authentication - # A URL referring to a networksecurity.Authorization resource that describes how - # the proxy should authorize inbound traffic. If left blank, access will not be - # restricted by an authorization policy. - # Refer to the Authorization resource for additional details. - # authorization only applies to a global TargetHttpsProxy attached to - # globalForwardingRules with the loadBalancingScheme set to - # INTERNAL_SELF_MANAGED. + # [Deprecated] Use authorizationPolicy instead. # Corresponds to the JSON property `authorization` # @return [String] attr_accessor :authorization + # Optional. A URL referring to a networksecurity.AuthorizationPolicy resource + # that describes how the proxy should authorize inbound traffic. If left blank, + # access will not be restricted by an authorization policy. + # Refer to the AuthorizationPolicy resource for additional details. + # authorizationPolicy only applies to a global TargetHttpsProxy attached to + # globalForwardingRules with the loadBalancingScheme set to + # INTERNAL_SELF_MANAGED. + # Corresponds to the JSON property `authorizationPolicy` + # @return [String] + attr_accessor :authorization_policy + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -31067,6 +31120,16 @@ module Google # @return [String] attr_accessor :self_link + # Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that + # describes how the proxy should authenticate inbound traffic. + # serverTlsPolicy only applies to a global TargetHttpsProxy attached to + # globalForwardingRules with the loadBalancingScheme set to + # INTERNAL_SELF_MANAGED. + # If left blank, communications are not encrypted. + # Corresponds to the JSON property `serverTlsPolicy` + # @return [String] + attr_accessor :server_tls_policy + # URLs to SslCertificate resources that are used to authenticate connections # between users and the load balancer. At least one SSL certificate must be # specified. Currently, you may specify up to 15 SSL certificates. @@ -31099,6 +31162,7 @@ module Google def update!(**args) @authentication = args[:authentication] if args.key?(:authentication) @authorization = args[:authorization] if args.key?(:authorization) + @authorization_policy = args[:authorization_policy] if args.key?(:authorization_policy) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @@ -31108,6 +31172,7 @@ module Google @quic_override = args[:quic_override] if args.key?(:quic_override) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @server_tls_policy = args[:server_tls_policy] if args.key?(:server_tls_policy) @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) @ssl_policy = args[:ssl_policy] if args.key?(:ssl_policy) @url_map = args[:url_map] if args.key?(:url_map) diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index cc7ab69cc..9bd696f1b 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -1426,6 +1426,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagerStatusStatefulPerInstanceConfigs + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagerStatusVersionTarget class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5182,6 +5188,7 @@ module Google collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation property :machine_type, as: 'machineType' + property :maintenance_interval, as: 'maintenanceInterval' property :min_cpu_platform, as: 'minCpuPlatform' end end @@ -7685,6 +7692,15 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :has_stateful_config, as: 'hasStatefulConfig' property :is_stateful, as: 'isStateful' + property :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeBeta::InstanceGroupManagerStatusStatefulPerInstanceConfigs, decorator: Google::Apis::ComputeBeta::InstanceGroupManagerStatusStatefulPerInstanceConfigs::Representation + + end + end + + class InstanceGroupManagerStatusStatefulPerInstanceConfigs + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :all_effective, as: 'allEffective' end end @@ -10295,6 +10311,7 @@ module Google property :name, as: 'name' property :preserved_state, as: 'preservedState', class: Google::Apis::ComputeBeta::PreservedState, decorator: Google::Apis::ComputeBeta::PreservedState::Representation + property :status, as: 'status' end end @@ -11761,6 +11778,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :authentication, as: 'authentication' + property :client_tls_policy, as: 'clientTlsPolicy' collection :subject_alt_names, as: 'subjectAltNames' end end @@ -12541,6 +12559,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :authentication, as: 'authentication' property :authorization, as: 'authorization' + property :authorization_policy, as: 'authorizationPolicy' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :id, :numeric_string => true, as: 'id' @@ -12550,6 +12569,7 @@ module Google property :quic_override, as: 'quicOverride' property :region, as: 'region' property :self_link, as: 'selfLink' + property :server_tls_policy, as: 'serverTlsPolicy' collection :ssl_certificates, as: 'sslCertificates' property :ssl_policy, as: 'sslPolicy' property :url_map, as: 'urlMap' diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 6dbbce3cb..3cd07b8ee 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20200515' + REVISION = '20200526' # 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/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 087638c6b..7bd73044b 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -1070,7 +1070,7 @@ module Google end end - # Properties of the SKU instances being reserved. + # Properties of the SKU instances being reserved. Next ID: 9 class AllocationSpecificSkuAllocationReservedInstanceProperties include Google::Apis::Core::Hashable @@ -1092,6 +1092,13 @@ module Google # @return [String] attr_accessor :machine_type + # Specifies whether this VM may be a stable fleet VM. Setting this to "Periodic" + # designates this VM as a Stable Fleet VM. + # See go/stable-fleet-ug for more details. + # Corresponds to the JSON property `maintenanceInterval` + # @return [String] + attr_accessor :maintenance_interval + # Minimum cpu platform the reservation. # Corresponds to the JSON property `minCpuPlatform` # @return [String] @@ -1106,6 +1113,7 @@ module Google @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) @local_ssds = args[:local_ssds] if args.key?(:local_ssds) @machine_type = args[:machine_type] if args.key?(:machine_type) + @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) end end @@ -1124,7 +1132,7 @@ module Google # @return [Fixnum] attr_accessor :in_use_count - # Properties of the SKU instances being reserved. + # Properties of the SKU instances being reserved. Next ID: 9 # Corresponds to the JSON property `instanceProperties` # @return [Google::Apis::ComputeV1::AllocationSpecificSkuAllocationReservedInstanceProperties] attr_accessor :instance_properties @@ -2585,8 +2593,12 @@ module Google end # Represents a Backend Service resource. - # A backend service contains configuration values for Google Cloud Platform load - # balancing services. + # A backend service defines how Google Cloud load balancers distribute traffic. + # The backend service configuration contains a set of values, such as the + # protocol used to connect to backends, various distribution and session + # settings, health checks, and timeouts. These settings provide fine-grained + # control over how your load balancer behaves. Most of the settings have default + # values that allow for easy configuration if you need to get started quickly. # Backend services in Google Compute Engine can be either regionally or globally # scoped. # * [Global](/compute/docs/reference/rest/`$api_version`/backendServices) * [ @@ -10040,7 +10052,7 @@ module Google # @return [Array] attr_accessor :resource_policies - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeV1::Scheduling] attr_accessor :scheduling @@ -12383,7 +12395,7 @@ module Google # @return [Array] attr_accessor :resource_policies - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeV1::Scheduling] attr_accessor :scheduling @@ -24673,7 +24685,7 @@ module Google end end - # Sets the scheduling options for an Instance. NextID: 11 + # Sets the scheduling options for an Instance. NextID: 12 class Scheduling include Google::Apis::Core::Hashable @@ -25701,9 +25713,9 @@ module Google # to five PEM-encoded certificates. The API call creates an object ( # sslCertificate) that holds this data. You can use SSL keys and certificates to # secure connections to a load balancer. For more information, read Creating - # and using SSL certificates and SSL certificates quotas and limits. (== - # resource_for `$api_version`.sslCertificates ==) (== resource_for `$api_version` - # .regionSslCertificates ==) + # and using SSL certificates, SSL certificates quotas and limits, and + # Troubleshooting SSL certificates. (== resource_for `$api_version`. + # sslCertificates ==) (== resource_for `$api_version`.regionSslCertificates ==) class SslCertificate include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 2a47e74aa..2b615204e 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -4790,6 +4790,7 @@ module Google collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeV1::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeV1::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation property :machine_type, as: 'machineType' + property :maintenance_interval, as: 'maintenanceInterval' property :min_cpu_platform, as: 'minCpuPlatform' end end diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index cba401782..7f0493939 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20200529' + REVISION = '20200615' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index b424a241e..ba802f40c 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -9365,6 +9365,11 @@ module Google # @return [String] attr_accessor :brand + # Link to the canonical version of the landing page. + # Corresponds to the JSON property `canonicalLink` + # @return [String] + attr_accessor :canonical_link + # Required. The item's channel (online or local). # Acceptable values are: # - "`local`" @@ -9534,7 +9539,7 @@ module Google # @return [String] attr_accessor :image_link - # Number and amount of installments to pay for an item. Brazil only. + # Number and amount of installments to pay for an item. # Corresponds to the JSON property `installment` # @return [Google::Apis::ContentV2::Installment] attr_accessor :installment @@ -9810,6 +9815,7 @@ module Google @availability = args[:availability] if args.key?(:availability) @availability_date = args[:availability_date] if args.key?(:availability_date) @brand = args[:brand] if args.key?(:brand) + @canonical_link = args[:canonical_link] if args.key?(:canonical_link) @channel = args[:channel] if args.key?(:channel) @color = args[:color] if args.key?(:color) @condition = args[:condition] if args.key?(:condition) diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 6aba1231c..c4b2bb742 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -4041,6 +4041,7 @@ module Google property :availability, as: 'availability' property :availability_date, as: 'availabilityDate' property :brand, as: 'brand' + property :canonical_link, as: 'canonicalLink' property :channel, as: 'channel' property :color, as: 'color' property :condition, as: 'condition' diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index 5e30c11fc..d5534d318 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -364,7 +364,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates a Merchant Center account. + # Updates a Merchant Center account. Any fields that are not provided are + # deleted from the resource. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and `accountId` must be the @@ -643,7 +644,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates the tax settings of the account. + # Updates the tax settings of the account. Any fields that are not provided are + # deleted from the resource. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and `accountId` must be the @@ -924,7 +926,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates a datafeed configuration of your Merchant Center account. + # Updates a datafeed configuration of your Merchant Center account. Any fields + # that are not provided are deleted from the resource. # @param [Fixnum] merchant_id # The ID of the account that manages the datafeed. This account cannot be a # multi-client account. @@ -1543,7 +1546,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates the LIA settings of the account. + # Updates the LIA settings of the account. Any fields that are not provided are + # deleted from the resource. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and `accountId` must be the @@ -3602,7 +3606,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates the shipping settings of the account. + # Updates the shipping settings of the account. Any fields that are not provided + # are deleted from the resource. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and `accountId` must be the diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index 8913fa828..f6c22d440 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20200529' + REVISION = '20200615' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index fa8d45cae..ab056ed4b 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -6642,11 +6642,10 @@ module Google class OrdersCustomBatchRequestEntryRefundItemItem include Google::Apis::Core::Hashable - # The amount that is refunded. In case of multiple refunds, - # - If the quantity of refunded items changed, this should contain the total - # refund per item. - # - If the quantity of the refunded items remained the same, this should be the - # newly refunded amount. + # The total amount that is refunded. (e.g. refunding $5 each for 2 products + # should be done by setting quantity to 2 and amount to 10$) In case of multiple + # refunds, this should be the amount you currently want to refund to the + # customer. # Corresponds to the JSON property `amount` # @return [Google::Apis::ContentV2_1::MonetaryAmount] attr_accessor :amount @@ -8578,6 +8577,11 @@ module Google # @return [String] attr_accessor :brand + # Link to the canonical version of the landing page. + # Corresponds to the JSON property `canonicalLink` + # @return [String] + attr_accessor :canonical_link + # Required. The item's channel (online or local). # Acceptable values are: # - "`local`" @@ -8732,7 +8736,7 @@ module Google # @return [Array] attr_accessor :included_destinations - # Number and amount of installments to pay for an item. Brazil only. + # Number and amount of installments to pay for an item. # Corresponds to the JSON property `installment` # @return [Google::Apis::ContentV2_1::Installment] attr_accessor :installment @@ -8825,6 +8829,16 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :price + # Technical specification or additional product details + # Corresponds to the JSON property `productDetails` + # @return [Array] + attr_accessor :product_details + + # List of important bullet points describing the product + # Corresponds to the JSON property `productHighlights` + # @return [Array] + attr_accessor :product_highlights + # Categories of the item (formatted as in products data specification). # Corresponds to the JSON property `productTypes` # @return [Array] @@ -8908,6 +8922,12 @@ module Google # @return [String] attr_accessor :source + # Number of periods (months or years) and amount of payment per period for an + # item with an associated subscription contract. + # Corresponds to the JSON property `subscriptionCost` + # @return [Google::Apis::ContentV2_1::ProductSubscriptionCost] + attr_accessor :subscription_cost + # Required. The CLDR territory code for the item. # Corresponds to the JSON property `targetCountry` # @return [String] @@ -8960,6 +8980,7 @@ module Google @availability = args[:availability] if args.key?(:availability) @availability_date = args[:availability_date] if args.key?(:availability_date) @brand = args[:brand] if args.key?(:brand) + @canonical_link = args[:canonical_link] if args.key?(:canonical_link) @channel = args[:channel] if args.key?(:channel) @color = args[:color] if args.key?(:color) @condition = args[:condition] if args.key?(:condition) @@ -9004,6 +9025,8 @@ module Google @offer_id = args[:offer_id] if args.key?(:offer_id) @pattern = args[:pattern] if args.key?(:pattern) @price = args[:price] if args.key?(:price) + @product_details = args[:product_details] if args.key?(:product_details) + @product_highlights = args[:product_highlights] if args.key?(:product_highlights) @product_types = args[:product_types] if args.key?(:product_types) @promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids) @sale_price = args[:sale_price] if args.key?(:sale_price) @@ -9019,6 +9042,7 @@ module Google @size_type = args[:size_type] if args.key?(:size_type) @sizes = args[:sizes] if args.key?(:sizes) @source = args[:source] if args.key?(:source) + @subscription_cost = args[:subscription_cost] if args.key?(:subscription_cost) @target_country = args[:target_country] if args.key?(:target_country) @tax_category = args[:tax_category] if args.key?(:tax_category) @taxes = args[:taxes] if args.key?(:taxes) @@ -9060,6 +9084,37 @@ module Google end end + # + class ProductProductDetail + include Google::Apis::Core::Hashable + + # The name of the product detail. + # Corresponds to the JSON property `attributeName` + # @return [String] + attr_accessor :attribute_name + + # The value of the product detail. + # Corresponds to the JSON property `attributeValue` + # @return [String] + attr_accessor :attribute_value + + # The section header used to group a set of product details. + # Corresponds to the JSON property `sectionName` + # @return [String] + attr_accessor :section_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_name = args[:attribute_name] if args.key?(:attribute_name) + @attribute_value = args[:attribute_value] if args.key?(:attribute_value) + @section_name = args[:section_name] if args.key?(:section_name) + end + end + # class ProductShipping include Google::Apis::Core::Hashable @@ -9247,7 +9302,7 @@ module Google # @return [String] attr_accessor :destination - # Destination approval status in targetCountry of the offer. + # Destination approval status in `targetCountry` of the offer. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -9324,6 +9379,37 @@ module Google end end + # + class ProductSubscriptionCost + include Google::Apis::Core::Hashable + + # The amount the buyer has to pay per subscription period. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :amount + + # The type of subscription period. + # Corresponds to the JSON property `period` + # @return [String] + attr_accessor :period + + # The number of subscription periods the buyer has to pay. + # Corresponds to the JSON property `periodLength` + # @return [Fixnum] + attr_accessor :period_length + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @period = args[:period] if args.key?(:period) + @period_length = args[:period_length] if args.key?(:period_length) + end + end + # class ProductTax include Google::Apis::Core::Hashable diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index 680ca74df..a5a8d81af 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -1288,6 +1288,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ProductProductDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ProductShipping class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1324,6 +1330,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ProductSubscriptionCost + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ProductTax class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4018,6 +4030,7 @@ module Google property :availability, as: 'availability' property :availability_date, as: 'availabilityDate' property :brand, as: 'brand' + property :canonical_link, as: 'canonicalLink' property :channel, as: 'channel' property :color, as: 'color' property :condition, as: 'condition' @@ -4067,6 +4080,9 @@ module Google property :pattern, as: 'pattern' property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + collection :product_details, as: 'productDetails', class: Google::Apis::ContentV2_1::ProductProductDetail, decorator: Google::Apis::ContentV2_1::ProductProductDetail::Representation + + collection :product_highlights, as: 'productHighlights' collection :product_types, as: 'productTypes' collection :promotion_ids, as: 'promotionIds' property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation @@ -4088,6 +4104,8 @@ module Google property :size_type, as: 'sizeType' collection :sizes, as: 'sizes' property :source, as: 'source' + property :subscription_cost, as: 'subscriptionCost', class: Google::Apis::ContentV2_1::ProductSubscriptionCost, decorator: Google::Apis::ContentV2_1::ProductSubscriptionCost::Representation + property :target_country, as: 'targetCountry' property :tax_category, as: 'taxCategory' collection :taxes, as: 'taxes', class: Google::Apis::ContentV2_1::ProductTax, decorator: Google::Apis::ContentV2_1::ProductTax::Representation @@ -4113,6 +4131,15 @@ module Google end end + class ProductProductDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribute_name, as: 'attributeName' + property :attribute_value, as: 'attributeValue' + property :section_name, as: 'sectionName' + end + end + class ProductShipping # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4182,6 +4209,16 @@ module Google end end + class ProductSubscriptionCost + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :period, as: 'period' + property :period_length, :numeric_string => true, as: 'periodLength' + end + end + class ProductTax # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index a883c85a8..0b95afad2 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -396,7 +396,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates a Merchant Center account. + # Updates a Merchant Center account. Any fields that are not provided are + # deleted from the resource. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and `accountId` must be the @@ -667,7 +668,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates the tax settings of the account. + # Updates the tax settings of the account. Any fields that are not provided are + # deleted from the resource. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and `accountId` must be the @@ -928,7 +930,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates a datafeed configuration of your Merchant Center account. + # Updates a datafeed configuration of your Merchant Center account. Any fields + # that are not provided are deleted from the resource. # @param [Fixnum] merchant_id # The ID of the account that manages the datafeed. This account cannot be a # multi-client account. @@ -1453,7 +1456,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates the LIA settings of the account. + # Updates the LIA settings of the account. Any fields that are not provided are + # deleted from the resource. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and `accountId` must be the @@ -4250,7 +4254,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates the shipping settings of the account. + # Updates the shipping settings of the account. Any fields that are not provided + # are deleted from the resource. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and `accountId` must be the diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 17546b6cb..ebba2cfee 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 = '20200413' + REVISION = '20200609' # 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/service.rb b/generated/google/apis/drive_v2/service.rb index a4348ca80..52cb24253 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -181,9 +181,7 @@ module Google # @param [String] drive_id # The shared drive from which the change is returned. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] team_drive_id @@ -227,9 +225,7 @@ module Google # The ID of the shared drive for which the starting pageToken for listing future # changes from that shared drive is returned. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] team_drive_id @@ -281,9 +277,7 @@ module Google # Whether to include changes indicating that items have been removed from the # list of changes, for example by deletion or loss of access. # @param [Boolean] include_items_from_all_drives - # Deprecated - Whether both My Drive and shared drive items should be included - # in results. This parameter will only be effective until June 1, 2020. - # Afterwards shared drive items are included in the results. + # Whether both My Drive and shared drive items should be included in results. # @param [Boolean] include_subscribed # Whether to include changes outside the My Drive hierarchy in the result. When # set to false, changes to files such as those in the Application Data folder or @@ -302,9 +296,7 @@ module Google # @param [Fixnum] start_change_id # Deprecated - use pageToken instead. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] team_drive_id @@ -366,9 +358,7 @@ module Google # Whether to include changes indicating that items have been removed from the # list of changes, for example by deletion or loss of access. # @param [Boolean] include_items_from_all_drives - # Deprecated - Whether both My Drive and shared drive items should be included - # in results. This parameter will only be effective until June 1, 2020. - # Afterwards shared drive items are included in the results. + # Whether both My Drive and shared drive items should be included in results. # @param [Boolean] include_subscribed # Whether to include changes outside the My Drive hierarchy in the result. When # set to false, changes to files such as those in the Application Data folder or @@ -387,9 +377,7 @@ module Google # @param [Fixnum] start_change_id # Deprecated - use pageToken instead. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] team_drive_id @@ -557,9 +545,7 @@ module Google # increase the number of the child's parents fail, except when the # canAddMyDriveParent file capability is true and a single parent is being added. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -1163,9 +1149,7 @@ module Google # Whether to pin the head revision of the new copy. A file can have a maximum of # 200 pinned revisions. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] timed_text_language @@ -1222,9 +1206,7 @@ module Google # @param [String] file_id # The ID of the file to delete. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -1376,9 +1358,7 @@ module Google # Specifies the Revision ID that should be downloaded. Ignored unless alt=media # is specified. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] update_viewed_date @@ -1443,9 +1423,7 @@ module Google # Whether to pin the head revision of the uploaded file. A file can have a # maximum of 200 pinned revisions. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] timed_text_language @@ -1520,9 +1498,7 @@ module Google # @param [String] drive_id # ID of the shared drive to search. # @param [Boolean] include_items_from_all_drives - # Deprecated - Whether both My Drive and shared drive items should be included - # in results. This parameter will only be effective until June 1, 2020. - # Afterwards shared drive items will be included in the results. + # Whether both My Drive and shared drive items should be included in results. # @param [Boolean] include_team_drive_items # Deprecated use includeItemsFromAllDrives instead. # @param [Fixnum] max_results @@ -1546,9 +1522,7 @@ module Google # A comma-separated list of spaces to query. Supported values are 'drive', ' # appDataFolder' and 'photos'. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] team_drive_id @@ -1636,9 +1610,7 @@ module Google # and false is equivalent to modifiedDateBehavior=now. To prevent any changes # to the modified date set modifiedDateBehavior=noChange. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] timed_text_language @@ -1701,9 +1673,7 @@ module Google # @param [String] file_id # The ID of the file to update. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -1743,9 +1713,7 @@ module Google # @param [String] file_id # The ID of the file to trash. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -1784,9 +1752,7 @@ module Google # @param [String] file_id # The ID of the file to untrash. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -1861,9 +1827,7 @@ module Google # and false is equivalent to modifiedDateBehavior=now. To prevent any changes # to the modified date set modifiedDateBehavior=noChange. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] timed_text_language @@ -1945,9 +1909,7 @@ module Google # Specifies the Revision ID that should be downloaded. Ignored unless alt=media # is specified. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] update_viewed_date @@ -2086,9 +2048,7 @@ module Google # increase the number of the child's parents fail, except when the # canAddMyDriveParent file capability is true and a single parent is being added. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -2165,9 +2125,7 @@ module Google # @param [String] permission_id # The ID for the permission. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] use_domain_admin_access @@ -2213,9 +2171,7 @@ module Google # @param [String] permission_id # The ID for the permission. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] use_domain_admin_access @@ -2312,9 +2268,7 @@ module Google # Whether to send notification emails when sharing to users or groups. This # parameter is ignored and an email is sent if the role is owner. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] use_domain_admin_access @@ -2372,9 +2326,7 @@ module Google # The token for continuing a previous list request on the next page. This should # be set to the value of 'nextPageToken' from the previous response. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] use_domain_admin_access @@ -2426,9 +2378,7 @@ module Google # @param [Boolean] remove_expiration # Whether to remove the expiration date. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] transfer_ownership @@ -2486,9 +2436,7 @@ module Google # @param [Boolean] remove_expiration # Whether to remove the expiration date. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] transfer_ownership diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index a3cb2a47b..045f84481 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 = '20200413' + REVISION = '20200609' # 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/service.rb b/generated/google/apis/drive_v3/service.rb index 45920b2a7..d0501a22f 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -87,9 +87,7 @@ module Google # The ID of the shared drive for which the starting pageToken for listing future # changes from that shared drive is returned. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] team_drive_id @@ -142,9 +140,7 @@ module Google # removed from the list of changes and there will be no further change entries # for this file. # @param [Boolean] include_items_from_all_drives - # Deprecated - Whether both My Drive and shared drive items should be included - # in results. This parameter will only be effective until June 1, 2020. - # Afterwards shared drive items are included in the results. + # Whether both My Drive and shared drive items should be included in results. # @param [Boolean] include_removed # Whether to include changes indicating that items have been removed from the # list of changes, for example by deletion or loss of access. @@ -160,9 +156,7 @@ module Google # A comma-separated list of spaces to query within the user corpus. Supported # values are 'drive', 'appDataFolder' and 'photos'. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] team_drive_id @@ -224,9 +218,7 @@ module Google # removed from the list of changes and there will be no further change entries # for this file. # @param [Boolean] include_items_from_all_drives - # Deprecated - Whether both My Drive and shared drive items should be included - # in results. This parameter will only be effective until June 1, 2020. - # Afterwards shared drive items are included in the results. + # Whether both My Drive and shared drive items should be included in results. # @param [Boolean] include_removed # Whether to include changes indicating that items have been removed from the # list of changes, for example by deletion or loss of access. @@ -242,9 +234,7 @@ module Google # A comma-separated list of spaces to query within the user corpus. Supported # values are 'drive', 'appDataFolder' and 'photos'. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] team_drive_id @@ -802,9 +792,7 @@ module Google # @param [String] ocr_language # A language hint for OCR processing during image import (ISO 639-1 code). # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -864,9 +852,7 @@ module Google # @param [String] ocr_language # A language hint for OCR processing during image import (ISO 639-1 code). # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] use_content_as_indexable_text @@ -926,9 +912,7 @@ module Google # @param [String] file_id # The ID of the file. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -1075,9 +1059,7 @@ module Google # Whether the user is acknowledging the risk of downloading known malware or # other abusive files. This is only applicable when alt=media. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -1130,9 +1112,7 @@ module Google # @param [String] drive_id # ID of the shared drive to search. # @param [Boolean] include_items_from_all_drives - # Deprecated - Whether both My Drive and shared drive items should be included - # in results. This parameter will only be effective until June 1, 2020. - # Afterwards shared drive items are included in the results. + # Whether both My Drive and shared drive items should be included in results. # @param [Boolean] include_team_drive_items # Deprecated use includeItemsFromAllDrives instead. # @param [String] order_by @@ -1156,9 +1136,7 @@ module Google # A comma-separated list of spaces to query within the corpus. Supported values # are 'drive', 'appDataFolder' and 'photos'. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] team_drive_id @@ -1228,9 +1206,7 @@ module Google # @param [String] remove_parents # A comma-separated list of parent IDs to remove. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] use_content_as_indexable_text @@ -1293,9 +1269,7 @@ module Google # Whether the user is acknowledging the risk of downloading known malware or # other abusive files. This is only applicable when alt=media. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [String] fields @@ -1363,9 +1337,7 @@ module Google # defaults to true for users and groups, and is not allowed for other requests. # It must not be disabled for ownership transfers. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] transfer_ownership @@ -1423,9 +1395,7 @@ module Google # @param [String] permission_id # The ID of the permission. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] use_domain_admin_access @@ -1471,9 +1441,7 @@ module Google # @param [String] permission_id # The ID of the permission. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] use_domain_admin_access @@ -1526,9 +1494,7 @@ module Google # The token for continuing a previous list request on the next page. This should # be set to the value of 'nextPageToken' from the previous response. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] use_domain_admin_access @@ -1580,9 +1546,7 @@ module Google # @param [Boolean] remove_expiration # Whether to remove the expiration date. # @param [Boolean] supports_all_drives - # Deprecated - Whether the requesting application supports both My Drives and - # shared drives. This parameter will only be effective until June 1, 2020. - # Afterwards all applications are assumed to support shared drives. + # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives # Deprecated use supportsAllDrives instead. # @param [Boolean] transfer_ownership diff --git a/generated/google/apis/iamcredentials_v1.rb b/generated/google/apis/iamcredentials_v1.rb index 40db9bb68..b1223979f 100644 --- a/generated/google/apis/iamcredentials_v1.rb +++ b/generated/google/apis/iamcredentials_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # IAM Service Account Credentials API # - # Creates short-lived, limited-privilege credentials for IAM service accounts. + # Creates short-lived credentials for impersonating IAM service accounts. # # @see https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials module IamcredentialsV1 VERSION = 'V1' - REVISION = '20200605' + REVISION = '20200612' # 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/iamcredentials_v1/service.rb b/generated/google/apis/iamcredentials_v1/service.rb index b2fbcaeab..38e0036a7 100644 --- a/generated/google/apis/iamcredentials_v1/service.rb +++ b/generated/google/apis/iamcredentials_v1/service.rb @@ -22,7 +22,7 @@ module Google module IamcredentialsV1 # IAM Service Account Credentials API # - # Creates short-lived, limited-privilege credentials for IAM service accounts. + # Creates short-lived credentials for impersonating IAM service accounts. # # @example # require 'google/apis/iamcredentials_v1' diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 1e6266acf..3869d1234 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/ module YoutubeV3 VERSION = 'V3' - REVISION = '20200526' + REVISION = '20200618' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index 93fefacad..a3c2ec24f 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -7200,6 +7200,44 @@ module Google end end + # + class TestItem + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # + # Corresponds to the JSON property `snippet` + # @return [Google::Apis::YoutubeV3::TestItemTestItemSnippet] + attr_accessor :snippet + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @snippet = args[:snippet] if args.key?(:snippet) + end + end + + # + class TestItemTestItemSnippet + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # A thumbnail is an image representing a YouTube resource. class Thumbnail include Google::Apis::Core::Hashable diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index ed71f2ffc..dc2875b52 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -880,6 +880,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TestItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestItemTestItemSnippet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Thumbnail class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2918,6 +2930,21 @@ module Google end end + class TestItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::TestItemTestItemSnippet, decorator: Google::Apis::YoutubeV3::TestItemTestItemSnippet::Representation + + end + end + + class TestItemTestItemSnippet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Thumbnail # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index aeda1b0fe..19c32b16f 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -4058,6 +4058,38 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # POST method. + # @param [Google::Apis::YoutubeV3::TestItem] test_item_object + # @param [Array, String] part + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubeV3::TestItem] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubeV3::TestItem] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_youtube_v3_test(test_item_object = nil, part: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'youtube/v3/tests', options) + command.request_representation = Google::Apis::YoutubeV3::TestItem::Representation + command.request_object = test_item_object + command.response_representation = Google::Apis::YoutubeV3::TestItem::Representation + command.response_class = Google::Apis::YoutubeV3::TestItem + command.query['part'] = part unless part.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected