diff --git a/generated/google/apis/cloudshell_v1.rb b/generated/google/apis/cloudshell_v1.rb index cf55e2ab7..e1d9a610a 100644 --- a/generated/google/apis/cloudshell_v1.rb +++ b/generated/google/apis/cloudshell_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/shell/docs/ module CloudshellV1 VERSION = 'V1' - REVISION = '20191028' + REVISION = '20191102' # 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/cloudshell_v1/classes.rb b/generated/google/apis/cloudshell_v1/classes.rb index cfc23aceb..4252b7aa7 100644 --- a/generated/google/apis/cloudshell_v1/classes.rb +++ b/generated/google/apis/cloudshell_v1/classes.rb @@ -67,7 +67,8 @@ module Google # @return [String] attr_accessor :docker_image - # Output only. The environment's identifier, which is always "default". + # Output only. The environment's identifier, unique among the user's + # environments. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id diff --git a/generated/google/apis/cloudshell_v1alpha1.rb b/generated/google/apis/cloudshell_v1alpha1.rb index 9897a55a1..459b2de59 100644 --- a/generated/google/apis/cloudshell_v1alpha1.rb +++ b/generated/google/apis/cloudshell_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/shell/docs/ module CloudshellV1alpha1 VERSION = 'V1alpha1' - REVISION = '20191028' + REVISION = '20191102' # 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/cloudshell_v1alpha1/classes.rb b/generated/google/apis/cloudshell_v1alpha1/classes.rb index 40cb666f2..e123e6b0e 100644 --- a/generated/google/apis/cloudshell_v1alpha1/classes.rb +++ b/generated/google/apis/cloudshell_v1alpha1/classes.rb @@ -105,7 +105,8 @@ module Google # @return [String] attr_accessor :docker_image - # Output only. The environment's identifier, which is always "default". + # Output only. The environment's identifier, unique among the user's + # environments. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id diff --git a/generated/google/apis/docs_v1.rb b/generated/google/apis/docs_v1.rb index ff732777b..c9441c674 100644 --- a/generated/google/apis/docs_v1.rb +++ b/generated/google/apis/docs_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/docs/ module DocsV1 VERSION = 'V1' - REVISION = '20191017' + REVISION = '20191029' # View and manage your Google Docs documents AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents' diff --git a/generated/google/apis/docs_v1/classes.rb b/generated/google/apis/docs_v1/classes.rb index 3b8a6219e..c9db631e3 100644 --- a/generated/google/apis/docs_v1/classes.rb +++ b/generated/google/apis/docs_v1/classes.rb @@ -365,7 +365,8 @@ module Google end # Creates a Footer. The new footer will be - # applied to the DocumentStyle. + # applied to SectionStyle or the + # DocumentStyle. # If a footer of the specified type already exists then a 400 bad request error # will be returned. class CreateFooterRequest @@ -406,7 +407,8 @@ module Google end # Creates a Header. The new header will be - # applied to the DocumentStyle. + # applied to SectionStyle or the + # DocumentStyle. # If a header of the specified type already exists then a 400 bad request error # will be returned. class CreateHeaderRequest @@ -3840,7 +3842,8 @@ module Google include Google::Apis::Core::Hashable # Creates a Footer. The new footer will be - # applied to the DocumentStyle. + # applied to SectionStyle or the + # DocumentStyle. # If a footer of the specified type already exists then a 400 bad request error # will be returned. # Corresponds to the JSON property `createFooter` @@ -3848,7 +3851,8 @@ module Google attr_accessor :create_footer # Creates a Header. The new header will be - # applied to the DocumentStyle. + # applied to SectionStyle or the + # DocumentStyle. # If a header of the specified type already exists then a 400 bad request error # will be returned. # Corresponds to the JSON property `createHeader` diff --git a/generated/google/apis/genomics_v2alpha1.rb b/generated/google/apis/genomics_v2alpha1.rb index d964a8910..60072a51a 100644 --- a/generated/google/apis/genomics_v2alpha1.rb +++ b/generated/google/apis/genomics_v2alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV2alpha1 VERSION = 'V2alpha1' - REVISION = '20190822' + REVISION = '20191102' # 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/redis_v1beta1.rb b/generated/google/apis/redis_v1beta1.rb index 905a874e2..69bb2e832 100644 --- a/generated/google/apis/redis_v1beta1.rb +++ b/generated/google/apis/redis_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1beta1 VERSION = 'V1beta1' - REVISION = '20190620' + REVISION = '20191104' # 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/redis_v1beta1/classes.rb b/generated/google/apis/redis_v1beta1/classes.rb index 81a326d8a..16eae579b 100644 --- a/generated/google/apis/redis_v1beta1/classes.rb +++ b/generated/google/apis/redis_v1beta1/classes.rb @@ -261,7 +261,7 @@ module Google # Optional. Only applicable to STANDARD_HA tier which protects the instance # against zonal failures by provisioning it across two zones. If provided, it - # must be a different zone from the one provided in [location_id]. + # must be a different zone from the one provided in location_id. # Corresponds to the JSON property `alternativeLocationId` # @return [String] attr_accessor :alternative_location_id @@ -280,9 +280,9 @@ module Google attr_accessor :create_time # Output only. The current zone where the Redis endpoint is placed. For Basic - # Tier instances, this will always be the same as the [location_id] + # Tier instances, this will always be the same as the location_id # provided by the user at creation time. For Standard Tier instances, - # this can be either [location_id] or [alternative_location_id] and can + # this can be either location_id or alternative_location_id and can # change after a failover event. # Corresponds to the JSON property `currentLocationId` # @return [String] @@ -307,8 +307,8 @@ module Google # Optional. The zone where the instance will be provisioned. If not provided, # the service will choose a zone for the instance. For STANDARD_HA tier, # instances will be created across two zones for protection against zonal - # failures. If [alternative_location_id] is also provided, it must be - # different from [location_id]. + # failures. If alternative_location_id is also provided, it must be + # different from location_id. # Corresponds to the JSON property `locationId` # @return [String] attr_accessor :location_id @@ -324,8 +324,8 @@ module Google # Note: Redis instances are managed and addressed at regional level so # location_id here refers to a GCP region; however, users may choose which # specific zone (or collection of zones for cross-zone instances) an instance - # should be provisioned in. Refer to [location_id] and - # [alternative_location_id] fields for more details. + # should be provisioned in. Refer to location_id and + # alternative_location_id fields for more details. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -428,10 +428,10 @@ module Google # If the `location_id` in the parent field of the request is "-", all regions # available to the project are queried, and the results aggregated. # If in such an aggregated query a location is unavailable, a dummy Redis - # entry is included in the response with the "name" field set to a value of - # the form projects/`project_id`/locations/`location_id`/instances/- and the - # "status" field set to ERROR and "status_message" field set to "location not - # available for ListInstances". + # entry is included in the response with the `name` field set to a value of + # the form `projects/`project_id`/locations/`location_id`/instances/`- and + # the `status` field set to ERROR and `status_message` field set to "location + # not available for ListInstances". # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances diff --git a/generated/google/apis/redis_v1beta1/service.rb b/generated/google/apis/redis_v1beta1/service.rb index be0c6291f..2c93f61fa 100644 --- a/generated/google/apis/redis_v1beta1/service.rb +++ b/generated/google/apis/redis_v1beta1/service.rb @@ -362,11 +362,11 @@ module Google # If not specified, a default value of 1000 will be used by the service. # Regardless of the page_size value, the response may include a partial list # and a caller should only rely on response's - # next_page_token + # `next_page_token` # to determine if there are more instances left to be queried. # @param [String] page_token - # The next_page_token value returned from a previous List request, - # if any. + # The `next_page_token` value returned from a previous + # ListInstances request, if any. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -407,8 +407,8 @@ module Google # Note: Redis instances are managed and addressed at regional level so # location_id here refers to a GCP region; however, users may choose which # specific zone (or collection of zones for cross-zone instances) an instance - # should be provisioned in. Refer to [location_id] and - # [alternative_location_id] fields for more details. + # should be provisioned in. Refer to location_id and + # alternative_location_id fields for more details. # @param [Google::Apis::RedisV1beta1::Instance] instance_object # @param [String] update_mask # Required. Mask of fields to update. At least one path must be supplied in diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index ea10a150e..6cab75822 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20191004' + REVISION = '20191101' # 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/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index 5e7a55e3a..4143203c7 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -45,7 +45,7 @@ module Google # The relative resource name of this asset. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/assets/456". + # "organizations/`organization_id`/assets/`asset_id`". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -348,10 +348,11 @@ module Google end # Cloud Security Command Center (Cloud SCC) finding. - # A finding is a record of assessment data (security, risk, health or privacy) - # ingested into Cloud SCC for presentation, notification, analysis, - # policy testing, and enforcement. For example, an XSS vulnerability in an - # App Engine application is a finding. + # A finding is a record of assessment data like security, risk, health, or + # privacy, that is ingested into Cloud SCC for presentation, notification, + # analysis, policy testing, and enforcement. For example, a + # cross-site scripting (XSS) vulnerability in an App Engine application is a + # finding. class Finding include Google::Apis::Core::Hashable @@ -384,7 +385,7 @@ module Google # The relative resource name of this finding. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456/findings/789" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -393,7 +394,7 @@ module Google # https://cloud.google.com/apis/design/resource_names#relative_resource_name # This field is immutable after creation time. # For example: - # "organizations/123/sources/456" + # "organizations/`organization_id`/sources/`source_id`" # Corresponds to the JSON property `parent` # @return [String] attr_accessor :parent @@ -1019,10 +1020,11 @@ module Google include Google::Apis::Core::Hashable # Cloud Security Command Center (Cloud SCC) finding. - # A finding is a record of assessment data (security, risk, health or privacy) - # ingested into Cloud SCC for presentation, notification, analysis, - # policy testing, and enforcement. For example, an XSS vulnerability in an - # App Engine application is a finding. + # A finding is a record of assessment data like security, risk, health, or + # privacy, that is ingested into Cloud SCC for presentation, notification, + # analysis, policy testing, and enforcement. For example, a + # cross-site scripting (XSS) vulnerability in an App Engine application is a + # finding. # Corresponds to the JSON property `finding` # @return [Google::Apis::SecuritycenterV1::Finding] attr_accessor :finding @@ -1180,7 +1182,7 @@ module Google # The relative resource name of the settings. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/organizationSettings". + # "organizations/`organization_id`/organizationSettings". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1390,8 +1392,9 @@ module Google # The relative resource name of the SecurityMarks. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Examples: - # "organizations/123/assets/456/securityMarks" - # "organizations/123/sources/456/findings/789/securityMarks". + # "organizations/`organization_id`/assets/`asset_id`/securityMarks" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/ + # securityMarks". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1512,17 +1515,18 @@ module Google # Cloud Security Command Center's (Cloud SCC) finding source. A finding source # is an entity or a mechanism that can produce a finding. A source is like a - # container of findings that come from the same scanner, logger, monitor, etc. + # container of findings that come from the same scanner, logger, monitor, and + # other tools. class Source include Google::Apis::Core::Hashable # The description of the source (max of 1024 characters). # Example: - # "Cloud Security Scanner is a web security scanner for common + # "Web Security Scanner is a web security scanner for common # vulnerabilities in App Engine applications. It can automatically # scan and detect four common vulnerabilities, including cross-site-scripting # (XSS), Flash injection, mixed content (HTTP in HTTPS), and - # outdated/insecure libraries." + # outdated or insecure libraries." # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -1539,7 +1543,7 @@ module Google # The relative resource name of this source. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456" + # "organizations/`organization_id`/sources/`source_id`" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/securitycenter_v1/service.rb b/generated/google/apis/securitycenter_v1/service.rb index 6e49d1e2a..177928dff 100644 --- a/generated/google/apis/securitycenter_v1/service.rb +++ b/generated/google/apis/securitycenter_v1/service.rb @@ -85,7 +85,7 @@ module Google # The relative resource name of the settings. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/organizationSettings". + # "organizations/`organization_id`/organizationSettings". # @param [Google::Apis::SecuritycenterV1::OrganizationSettings] organization_settings_object # @param [String] update_mask # The FieldMask to use when updating the settings resource. @@ -333,8 +333,9 @@ module Google # The relative resource name of the SecurityMarks. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Examples: - # "organizations/123/assets/456/securityMarks" - # "organizations/123/sources/456/findings/789/securityMarks". + # "organizations/`organization_id`/assets/`asset_id`/securityMarks" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/ + # securityMarks". # @param [Google::Apis::SecuritycenterV1::SecurityMarks] security_marks_object # @param [String] start_time # The time at which the updated SecurityMarks take effect. @@ -671,7 +672,7 @@ module Google # The relative resource name of this source. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456" + # "organizations/`organization_id`/sources/`source_id`" # @param [Google::Apis::SecuritycenterV1::Source] source_object # @param [String] update_mask # The FieldMask to use when updating the source resource. @@ -817,12 +818,12 @@ module Google # Filters an organization or source's findings and groups them by their # specified properties. # To group across all sources provide a `-` as the source id. - # Example: /v1/organizations/123/sources/-/findings + # Example: /v1/organizations/`organization_id`/sources/-/findings # @param [String] parent # Required. Name of the source to groupBy. Its format is # "organizations/[organization_id]/sources/[source_id]". To groupBy across # all sources provide a source_id of `-`. For example: - # organizations/123/sources/- + # organizations/`organization_id`/sources/- # @param [Google::Apis::SecuritycenterV1::GroupFindingsRequest] group_findings_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -855,12 +856,12 @@ module Google # Lists an organization or source's findings. # To list across all sources provide a `-` as the source id. - # Example: /v1/organizations/123/sources/-/findings + # Example: /v1/organizations/`organization_id`/sources/-/findings # @param [String] parent # Required. Name of the source the findings belong to. Its format is # "organizations/[organization_id]/sources/[source_id]". To list across all # sources provide a source_id of `-`. For example: - # organizations/123/sources/- + # organizations/`organization_id`/sources/- # @param [String] compare_duration # When compare_duration is set, the ListFindingsResult's "state_change" # attribute is updated to indicate whether the finding had its state changed, @@ -989,7 +990,7 @@ module Google # The relative resource name of this finding. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456/findings/789" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`" # @param [Google::Apis::SecuritycenterV1::Finding] finding_object # @param [String] update_mask # The FieldMask to use when updating the finding resource. This field should @@ -1033,7 +1034,7 @@ module Google # Required. The relative resource name of the finding. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456/finding/789". + # "organizations/`organization_id`/sources/`source_id`/finding/`finding_id`". # @param [Google::Apis::SecuritycenterV1::SetFindingStateRequest] set_finding_state_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1069,8 +1070,9 @@ module Google # The relative resource name of the SecurityMarks. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Examples: - # "organizations/123/assets/456/securityMarks" - # "organizations/123/sources/456/findings/789/securityMarks". + # "organizations/`organization_id`/assets/`asset_id`/securityMarks" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/ + # securityMarks". # @param [Google::Apis::SecuritycenterV1::SecurityMarks] security_marks_object # @param [String] start_time # The time at which the updated SecurityMarks take effect. diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index f3706cb50..5bf14c55a 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20191004' + REVISION = '20191101' # 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/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index 19cceddaf..d08791826 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -38,7 +38,7 @@ module Google # The relative resource name of this asset. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/assets/456". + # "organizations/`organization_id`/assets/`asset_id`". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -389,7 +389,7 @@ module Google # The relative resource name of this finding. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456/findings/789" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -399,7 +399,7 @@ module Google # https://cloud.google.com/apis/design/resource_names#relative_resource_name # This field is immutable after creation time. # For example: - # "organizations/123/sources/456" + # "organizations/`organization_id`/sources/`source_id`" # Corresponds to the JSON property `parent` # @return [String] attr_accessor :parent @@ -1056,7 +1056,7 @@ module Google # The relative resource name of the settings. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/organizationSettings". + # "organizations/`organization_id`/organizationSettings". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1266,8 +1266,9 @@ module Google # The relative resource name of the SecurityMarks. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Examples: - # "organizations/123/assets/456/securityMarks" - # "organizations/123/sources/456/findings/789/securityMarks". + # "organizations/`organization_id`/assets/`asset_id`/securityMarks" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/ + # securityMarks". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1415,7 +1416,7 @@ module Google # The relative resource name of this source. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456" + # "organizations/`organization_id`/sources/`source_id`" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/securitycenter_v1beta1/service.rb b/generated/google/apis/securitycenter_v1beta1/service.rb index 53a52958f..71797db8e 100644 --- a/generated/google/apis/securitycenter_v1beta1/service.rb +++ b/generated/google/apis/securitycenter_v1beta1/service.rb @@ -85,7 +85,7 @@ module Google # The relative resource name of the settings. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/organizationSettings". + # "organizations/`organization_id`/organizationSettings". # @param [Google::Apis::SecuritycenterV1beta1::OrganizationSettings] organization_settings_object # @param [String] update_mask # The FieldMask to use when updating the settings resource. @@ -302,8 +302,9 @@ module Google # The relative resource name of the SecurityMarks. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Examples: - # "organizations/123/assets/456/securityMarks" - # "organizations/123/sources/456/findings/789/securityMarks". + # "organizations/`organization_id`/assets/`asset_id`/securityMarks" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/ + # securityMarks". # @param [Google::Apis::SecuritycenterV1beta1::SecurityMarks] security_marks_object # @param [String] start_time # The time at which the updated SecurityMarks take effect. @@ -638,7 +639,7 @@ module Google # The relative resource name of this source. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456" + # "organizations/`organization_id`/sources/`source_id`" # @param [Google::Apis::SecuritycenterV1beta1::Source] source_object # @param [String] update_mask # The FieldMask to use when updating the source resource. @@ -783,12 +784,12 @@ module Google # Filters an organization or source's findings and groups them by their # specified properties. # To group across all sources provide a `-` as the source id. - # Example: /v1beta1/organizations/123/sources/-/findings + # Example: /v1beta1/organizations/`organization_id`/sources/-/findings # @param [String] parent # Required. Name of the source to groupBy. Its format is # "organizations/[organization_id]/sources/[source_id]". To groupBy across # all sources provide a source_id of `-`. For example: - # organizations/123/sources/- + # organizations/`organization_id`/sources/- # @param [Google::Apis::SecuritycenterV1beta1::GroupFindingsRequest] group_findings_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -821,12 +822,12 @@ module Google # Lists an organization or source's findings. # To list across all sources provide a `-` as the source id. - # Example: /v1beta1/organizations/123/sources/-/findings + # Example: /v1beta1/organizations/`organization_id`/sources/-/findings # @param [String] parent # Required. Name of the source the findings belong to. Its format is # "organizations/[organization_id]/sources/[source_id]". To list across all # sources provide a source_id of `-`. For example: - # organizations/123/sources/- + # organizations/`organization_id`/sources/- # @param [String] field_mask # Optional. A field mask to specify the Finding fields to be listed in the # response. @@ -910,7 +911,7 @@ module Google # The relative resource name of this finding. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456/findings/789" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`" # @param [Google::Apis::SecuritycenterV1beta1::Finding] finding_object # @param [String] update_mask # The FieldMask to use when updating the finding resource. This field should @@ -950,7 +951,7 @@ module Google # Required. The relative resource name of the finding. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Example: - # "organizations/123/sources/456/finding/789". + # "organizations/`organization_id`/sources/`source_id`/finding/`finding_id`". # @param [Google::Apis::SecuritycenterV1beta1::SetFindingStateRequest] set_finding_state_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -986,8 +987,9 @@ module Google # The relative resource name of the SecurityMarks. See: # https://cloud.google.com/apis/design/resource_names#relative_resource_name # Examples: - # "organizations/123/assets/456/securityMarks" - # "organizations/123/sources/456/findings/789/securityMarks". + # "organizations/`organization_id`/assets/`asset_id`/securityMarks" + # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/ + # securityMarks". # @param [Google::Apis::SecuritycenterV1beta1::SecurityMarks] security_marks_object # @param [String] start_time # The time at which the updated SecurityMarks take effect. diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index a832bb36d..ad2159d98 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20191001' + REVISION = '20191031' # 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/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb index 0cd4a6b33..795f149cc 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -337,6 +337,44 @@ module Google end end + # Adds a slicer to a sheet in the spreadsheet. + class AddSlicerRequest + include Google::Apis::Core::Hashable + + # A slicer in a sheet. + # Corresponds to the JSON property `slicer` + # @return [Google::Apis::SheetsV4::Slicer] + attr_accessor :slicer + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @slicer = args[:slicer] if args.key?(:slicer) + end + end + + # The result of adding a slicer to a spreadsheet. + class AddSlicerResponse + include Google::Apis::Core::Hashable + + # A slicer in a sheet. + # Corresponds to the JSON property `slicer` + # @return [Google::Apis::SheetsV4::Slicer] + attr_accessor :slicer + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @slicer = args[:slicer] if args.key?(:slicer) + end + end + # Adds new cells after the last row with data in a sheet, # inserting new rows into the sheet if necessary. class AppendCellsRequest @@ -4985,6 +5023,220 @@ module Google # @return [Array] attr_accessor :hidden_values + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. + # Note: this proto does not carry information about the absolute color space + # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, + # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color + # space. + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `visibleBackgroundColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :visible_background_color + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. + # Note: this proto does not carry information about the absolute color space + # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, + # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color + # space. + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `visibleForegroundColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :visible_foreground_color + def initialize(**args) update!(**args) end @@ -4993,6 +5245,8 @@ module Google def update!(**args) @condition = args[:condition] if args.key?(:condition) @hidden_values = args[:hidden_values] if args.key?(:hidden_values) + @visible_background_color = args[:visible_background_color] if args.key?(:visible_background_color) + @visible_foreground_color = args[:visible_foreground_color] if args.key?(:visible_foreground_color) end end @@ -7461,6 +7715,11 @@ module Google # @return [Google::Apis::SheetsV4::AddSheetRequest] attr_accessor :add_sheet + # Adds a slicer to a sheet in the spreadsheet. + # Corresponds to the JSON property `addSlicer` + # @return [Google::Apis::SheetsV4::AddSlicerRequest] + attr_accessor :add_slicer + # Adds new cells after the last row with data in a sheet, # inserting new rows into the sheet if necessary. # Corresponds to the JSON property `appendCells` @@ -7758,6 +8017,13 @@ module Google # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest] attr_accessor :update_sheet_properties + # Updates a slicer’s specifications. + # (This does not move or resize a slicer. To move or resize a slicer use + # UpdateEmbeddedObjectPositionRequest. + # Corresponds to the JSON property `updateSlicerSpec` + # @return [Google::Apis::SheetsV4::UpdateSlicerSpecRequest] + attr_accessor :update_slicer_spec + # Updates properties of a spreadsheet. # Corresponds to the JSON property `updateSpreadsheetProperties` # @return [Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest] @@ -7777,6 +8043,7 @@ module Google @add_named_range = args[:add_named_range] if args.key?(:add_named_range) @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range) @add_sheet = args[:add_sheet] if args.key?(:add_sheet) + @add_slicer = args[:add_slicer] if args.key?(:add_slicer) @append_cells = args[:append_cells] if args.key?(:append_cells) @append_dimension = args[:append_dimension] if args.key?(:append_dimension) @auto_fill = args[:auto_fill] if args.key?(:auto_fill) @@ -7826,6 +8093,7 @@ module Google @update_named_range = args[:update_named_range] if args.key?(:update_named_range) @update_protected_range = args[:update_protected_range] if args.key?(:update_protected_range) @update_sheet_properties = args[:update_sheet_properties] if args.key?(:update_sheet_properties) + @update_slicer_spec = args[:update_slicer_spec] if args.key?(:update_slicer_spec) @update_spreadsheet_properties = args[:update_spreadsheet_properties] if args.key?(:update_spreadsheet_properties) end end @@ -7869,6 +8137,11 @@ module Google # @return [Google::Apis::SheetsV4::AddSheetResponse] attr_accessor :add_sheet + # The result of adding a slicer to a spreadsheet. + # Corresponds to the JSON property `addSlicer` + # @return [Google::Apis::SheetsV4::AddSlicerResponse] + attr_accessor :add_slicer + # The response from creating developer metadata. # Corresponds to the JSON property `createDeveloperMetadata` # @return [Google::Apis::SheetsV4::CreateDeveloperMetadataResponse] @@ -7942,6 +8215,7 @@ module Google @add_named_range = args[:add_named_range] if args.key?(:add_named_range) @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range) @add_sheet = args[:add_sheet] if args.key?(:add_sheet) + @add_slicer = args[:add_slicer] if args.key?(:add_slicer) @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata) @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule) @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata) @@ -8226,6 +8500,11 @@ module Google # @return [Array] attr_accessor :row_groups + # The slicers on this sheet. + # Corresponds to the JSON property `slicers` + # @return [Array] + attr_accessor :slicers + def initialize(**args) update!(**args) end @@ -8244,6 +8523,7 @@ module Google @properties = args[:properties] if args.key?(:properties) @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges) @row_groups = args[:row_groups] if args.key?(:row_groups) + @slicers = args[:slicers] if args.key?(:slicers) end end @@ -8423,6 +8703,225 @@ module Google end end + # A slicer in a sheet. + class Slicer + include Google::Apis::Core::Hashable + + # The position of an embedded object such as a chart. + # Corresponds to the JSON property `position` + # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition] + attr_accessor :position + + # The ID of the slicer. + # Corresponds to the JSON property `slicerId` + # @return [Fixnum] + attr_accessor :slicer_id + + # The specifications of a slicer. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::SheetsV4::SlicerSpec] + attr_accessor :spec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @position = args[:position] if args.key?(:position) + @slicer_id = args[:slicer_id] if args.key?(:slicer_id) + @spec = args[:spec] if args.key?(:spec) + end + end + + # The specifications of a slicer. + class SlicerSpec + include Google::Apis::Core::Hashable + + # True if the filter should apply to pivot tables. + # If not set, default to `True`. + # Corresponds to the JSON property `applyToPivotTables` + # @return [Boolean] + attr_accessor :apply_to_pivot_tables + alias_method :apply_to_pivot_tables?, :apply_to_pivot_tables + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. + # Note: this proto does not carry information about the absolute color space + # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, + # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color + # space. + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `backgroundColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :background_color + + # The column index in the data table on which the filter is applied to. + # Corresponds to the JSON property `columnIndex` + # @return [Fixnum] + attr_accessor :column_index + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `dataRange` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :data_range + + # Criteria for showing/hiding rows in a filter or filter view. + # Corresponds to the JSON property `filterCriteria` + # @return [Google::Apis::SheetsV4::FilterCriteria] + attr_accessor :filter_criteria + + # The horizontal alignment of title in the slicer. + # If unspecified, defaults to `LEFT` + # Corresponds to the JSON property `horizontalAlignment` + # @return [String] + attr_accessor :horizontal_alignment + + # The format of a run of text in a cell. + # Absent values indicate that the field isn't specified. + # Corresponds to the JSON property `textFormat` + # @return [Google::Apis::SheetsV4::TextFormat] + attr_accessor :text_format + + # The title of the slicer. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @apply_to_pivot_tables = args[:apply_to_pivot_tables] if args.key?(:apply_to_pivot_tables) + @background_color = args[:background_color] if args.key?(:background_color) + @column_index = args[:column_index] if args.key?(:column_index) + @data_range = args[:data_range] if args.key?(:data_range) + @filter_criteria = args[:filter_criteria] if args.key?(:filter_criteria) + @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment) + @text_format = args[:text_format] if args.key?(:text_format) + @title = args[:title] if args.key?(:title) + end + end + # Sorts data in rows based on a sort order per column. class SortRangeRequest include Google::Apis::Core::Hashable @@ -8474,11 +8973,225 @@ module Google class SortSpec include Google::Apis::Core::Hashable + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. + # Note: this proto does not carry information about the absolute color space + # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, + # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color + # space. + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `backgroundColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :background_color + # The dimension the sort should be applied to. # Corresponds to the JSON property `dimensionIndex` # @return [Fixnum] attr_accessor :dimension_index + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. + # Note: this proto does not carry information about the absolute color space + # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, + # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color + # space. + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [[Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `foregroundColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :foreground_color + # The order data should be sorted. # Corresponds to the JSON property `sortOrder` # @return [String] @@ -8490,7 +9203,9 @@ module Google # Update properties of this object def update!(**args) + @background_color = args[:background_color] if args.key?(:background_color) @dimension_index = args[:dimension_index] if args.key?(:dimension_index) + @foreground_color = args[:foreground_color] if args.key?(:foreground_color) @sort_order = args[:sort_order] if args.key?(:sort_order) end end @@ -10284,6 +10999,41 @@ module Google end end + # Updates a slicer’s specifications. + # (This does not move or resize a slicer. To move or resize a slicer use + # UpdateEmbeddedObjectPositionRequest. + class UpdateSlicerSpecRequest + include Google::Apis::Core::Hashable + + # The fields that should be updated. At least one field must be specified. + # The root `SlicerSpec` is implied and should not be specified. A single "*"` + # can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + # The id of the slicer to update. + # Corresponds to the JSON property `slicerId` + # @return [Fixnum] + attr_accessor :slicer_id + + # The specifications of a slicer. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::SheetsV4::SlicerSpec] + attr_accessor :spec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fields = args[:fields] if args.key?(:fields) + @slicer_id = args[:slicer_id] if args.key?(:slicer_id) + @spec = args[:spec] if args.key?(:spec) + end + end + # Updates properties of a spreadsheet. class UpdateSpreadsheetPropertiesRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/sheets_v4/representations.rb b/generated/google/apis/sheets_v4/representations.rb index e64854291..a84dc7324 100644 --- a/generated/google/apis/sheets_v4/representations.rb +++ b/generated/google/apis/sheets_v4/representations.rb @@ -112,6 +112,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AddSlicerRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddSlicerResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AppendCellsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -952,6 +964,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Slicer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SlicerSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SortRangeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1138,6 +1162,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpdateSlicerSpecRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpdateSpreadsheetPropertiesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1313,6 +1343,22 @@ module Google end end + class AddSlicerRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :slicer, as: 'slicer', class: Google::Apis::SheetsV4::Slicer, decorator: Google::Apis::SheetsV4::Slicer::Representation + + end + end + + class AddSlicerResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :slicer, as: 'slicer', class: Google::Apis::SheetsV4::Slicer, decorator: Google::Apis::SheetsV4::Slicer::Representation + + end + end + class AppendCellsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2253,6 +2299,10 @@ module Google property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation collection :hidden_values, as: 'hiddenValues' + property :visible_background_color, as: 'visibleBackgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + property :visible_foreground_color, as: 'visibleForegroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + end end @@ -2726,6 +2776,8 @@ module Google property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetRequest, decorator: Google::Apis::SheetsV4::AddSheetRequest::Representation + property :add_slicer, as: 'addSlicer', class: Google::Apis::SheetsV4::AddSlicerRequest, decorator: Google::Apis::SheetsV4::AddSlicerRequest::Representation + property :append_cells, as: 'appendCells', class: Google::Apis::SheetsV4::AppendCellsRequest, decorator: Google::Apis::SheetsV4::AppendCellsRequest::Representation property :append_dimension, as: 'appendDimension', class: Google::Apis::SheetsV4::AppendDimensionRequest, decorator: Google::Apis::SheetsV4::AppendDimensionRequest::Representation @@ -2824,6 +2876,8 @@ module Google property :update_sheet_properties, as: 'updateSheetProperties', class: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest::Representation + property :update_slicer_spec, as: 'updateSlicerSpec', class: Google::Apis::SheetsV4::UpdateSlicerSpecRequest, decorator: Google::Apis::SheetsV4::UpdateSlicerSpecRequest::Representation + property :update_spreadsheet_properties, as: 'updateSpreadsheetProperties', class: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest::Representation end @@ -2846,6 +2900,8 @@ module Google property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetResponse, decorator: Google::Apis::SheetsV4::AddSheetResponse::Representation + property :add_slicer, as: 'addSlicer', class: Google::Apis::SheetsV4::AddSlicerResponse, decorator: Google::Apis::SheetsV4::AddSlicerResponse::Representation + property :create_developer_metadata, as: 'createDeveloperMetadata', class: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse, decorator: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse::Representation property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation @@ -2961,6 +3017,8 @@ module Google collection :row_groups, as: 'rowGroups', class: Google::Apis::SheetsV4::DimensionGroup, decorator: Google::Apis::SheetsV4::DimensionGroup::Representation + collection :slicers, as: 'slicers', class: Google::Apis::SheetsV4::Slicer, decorator: Google::Apis::SheetsV4::Slicer::Representation + end end @@ -2980,6 +3038,35 @@ module Google end end + class Slicer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation + + property :slicer_id, as: 'slicerId' + property :spec, as: 'spec', class: Google::Apis::SheetsV4::SlicerSpec, decorator: Google::Apis::SheetsV4::SlicerSpec::Representation + + end + end + + class SlicerSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :apply_to_pivot_tables, as: 'applyToPivotTables' + property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + property :column_index, as: 'columnIndex' + property :data_range, as: 'dataRange', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :filter_criteria, as: 'filterCriteria', class: Google::Apis::SheetsV4::FilterCriteria, decorator: Google::Apis::SheetsV4::FilterCriteria::Representation + + property :horizontal_alignment, as: 'horizontalAlignment' + property :text_format, as: 'textFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation + + property :title, as: 'title' + end + end + class SortRangeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2993,7 +3080,11 @@ module Google class SortSpec # @private class Representation < Google::Apis::Core::JsonRepresentation + property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :dimension_index, as: 'dimensionIndex' + property :foreground_color, as: 'foregroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :sort_order, as: 'sortOrder' end end @@ -3315,6 +3406,16 @@ module Google end end + class UpdateSlicerSpecRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fields, as: 'fields' + property :slicer_id, as: 'slicerId' + property :spec, as: 'spec', class: Google::Apis::SheetsV4::SlicerSpec, decorator: Google::Apis::SheetsV4::SlicerSpec::Representation + + end + end + class UpdateSpreadsheetPropertiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation