Autogenerated update (2020-07-22)

Update:
- apigee_v1
- books_v1
- chromeuxreport_v1
- cloudbuild_v1
- cloudbuild_v1alpha1
- cloudbuild_v1alpha2
- dialogflow_v2
- dialogflow_v2beta1
- fcm_v1
- firebase_v1beta1
- testing_v1
This commit is contained in:
Google APIs 2020-07-22 00:38:03 +00:00
parent 33bbd8c955
commit 07590a65ff
34 changed files with 3217 additions and 724 deletions

View File

@ -9808,6 +9808,7 @@
"/apigee:v1/GoogleCloudApigeeV1IngressConfig/environmentGroups": environment_groups
"/apigee:v1/GoogleCloudApigeeV1IngressConfig/environmentGroups/environment_group": environment_group
"/apigee:v1/GoogleCloudApigeeV1IngressConfig/name": name
"/apigee:v1/GoogleCloudApigeeV1IngressConfig/revisionCreateTime": revision_create_time
"/apigee:v1/GoogleCloudApigeeV1IngressConfig/revisionId": revision_id
"/apigee:v1/GoogleCloudApigeeV1IngressConfig/sequenceNumber": sequence_number
"/apigee:v1/GoogleCloudApigeeV1IngressConfig/uid": uid
@ -10454,6 +10455,7 @@
"/apigee:v1/apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport": generate_organization_environment_api_revision_deployment_undeploy_change_report
"/apigee:v1/apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport/name": name
"/apigee:v1/apigee.organizations.environments.apis.revisions.deployments/name": name
"/apigee:v1/apigee.organizations.environments.apis.revisions.deployments/sequencedRollout": sequenced_rollout
"/apigee:v1/apigee.organizations.environments.apis.revisions.getDeployments": get_organization_environment_api_revision_deployments
"/apigee:v1/apigee.organizations.environments.apis.revisions.getDeployments/name": name
"/apigee:v1/apigee.organizations.environments.caches.delete": delete_organization_environment_cach
@ -17705,6 +17707,7 @@
"/chromeuxreport:v1/Bin/end": end
"/chromeuxreport:v1/Bin/start": start
"/chromeuxreport:v1/Key": key
"/chromeuxreport:v1/Key/effectiveConnectionType": effective_connection_type
"/chromeuxreport:v1/Key/formFactor": form_factor
"/chromeuxreport:v1/Key/origin": origin
"/chromeuxreport:v1/Key/url": url
@ -17715,6 +17718,7 @@
"/chromeuxreport:v1/Percentiles": percentiles
"/chromeuxreport:v1/Percentiles/p75": p75
"/chromeuxreport:v1/QueryRequest": query_request
"/chromeuxreport:v1/QueryRequest/effectiveConnectionType": effective_connection_type
"/chromeuxreport:v1/QueryRequest/formFactor": form_factor
"/chromeuxreport:v1/QueryRequest/metrics": metrics
"/chromeuxreport:v1/QueryRequest/metrics/metric": metric
@ -19212,6 +19216,148 @@
"/cloudasset:v1p4beta1/fields": fields
"/cloudasset:v1p4beta1/key": key
"/cloudasset:v1p4beta1/quotaUser": quota_user
"/cloudasset:v1p5beta1/Asset": asset
"/cloudasset:v1p5beta1/Asset/accessLevel": access_level
"/cloudasset:v1p5beta1/Asset/accessPolicy": access_policy
"/cloudasset:v1p5beta1/Asset/ancestors": ancestors
"/cloudasset:v1p5beta1/Asset/ancestors/ancestor": ancestor
"/cloudasset:v1p5beta1/Asset/assetType": asset_type
"/cloudasset:v1p5beta1/Asset/iamPolicy": iam_policy
"/cloudasset:v1p5beta1/Asset/name": name
"/cloudasset:v1p5beta1/Asset/orgPolicy": org_policy
"/cloudasset:v1p5beta1/Asset/orgPolicy/org_policy": org_policy
"/cloudasset:v1p5beta1/Asset/resource": resource
"/cloudasset:v1p5beta1/Asset/servicePerimeter": service_perimeter
"/cloudasset:v1p5beta1/AuditConfig": audit_config
"/cloudasset:v1p5beta1/AuditConfig/auditLogConfigs": audit_log_configs
"/cloudasset:v1p5beta1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
"/cloudasset:v1p5beta1/AuditConfig/service": service
"/cloudasset:v1p5beta1/AuditLogConfig": audit_log_config
"/cloudasset:v1p5beta1/AuditLogConfig/exemptedMembers": exempted_members
"/cloudasset:v1p5beta1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member
"/cloudasset:v1p5beta1/AuditLogConfig/logType": log_type
"/cloudasset:v1p5beta1/Binding": binding
"/cloudasset:v1p5beta1/Binding/condition": condition
"/cloudasset:v1p5beta1/Binding/members": members
"/cloudasset:v1p5beta1/Binding/members/member": member
"/cloudasset:v1p5beta1/Binding/role": role
"/cloudasset:v1p5beta1/Expr": expr
"/cloudasset:v1p5beta1/Expr/description": description
"/cloudasset:v1p5beta1/Expr/expression": expression
"/cloudasset:v1p5beta1/Expr/location": location
"/cloudasset:v1p5beta1/Expr/title": title
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1BooleanPolicy": google_cloud_orgpolicy_v1_boolean_policy
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1BooleanPolicy/enforced": enforced
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1ListPolicy": google_cloud_orgpolicy_v1_list_policy
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1ListPolicy/allValues": all_values
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1ListPolicy/allowedValues": allowed_values
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1ListPolicy/allowedValues/allowed_value": allowed_value
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1ListPolicy/deniedValues": denied_values
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1ListPolicy/deniedValues/denied_value": denied_value
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1ListPolicy/inheritFromParent": inherit_from_parent
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1ListPolicy/suggestedValue": suggested_value
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1Policy": google_cloud_orgpolicy_v1_policy
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1Policy/booleanPolicy": boolean_policy
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1Policy/constraint": constraint
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1Policy/etag": etag
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1Policy/listPolicy": list_policy
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1Policy/restoreDefault": restore_default
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1Policy/updateTime": update_time
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1Policy/version": version
"/cloudasset:v1p5beta1/GoogleCloudOrgpolicyV1RestoreDefault": google_cloud_orgpolicy_v1_restore_default
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessLevel": google_identity_accesscontextmanager_v1_access_level
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessLevel/basic": basic
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessLevel/custom": custom
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessLevel/description": description
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessLevel/name": name
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessLevel/title": title
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessPolicy": google_identity_accesscontextmanager_v1_access_policy
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessPolicy/etag": etag
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessPolicy/name": name
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessPolicy/parent": parent
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1AccessPolicy/title": title
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1BasicLevel": google_identity_accesscontextmanager_v1_basic_level
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1BasicLevel/combiningFunction": combining_function
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1BasicLevel/conditions": conditions
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1BasicLevel/conditions/condition": condition
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition": google_identity_accesscontextmanager_v1_condition
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/devicePolicy": device_policy
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/ipSubnetworks": ip_subnetworks
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/ipSubnetworks/ip_subnetwork": ip_subnetwork
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/members": members
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/members/member": member
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/negate": negate
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/regions": regions
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/regions/region": region
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/requiredAccessLevels": required_access_levels
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1Condition/requiredAccessLevels/required_access_level": required_access_level
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1CustomLevel": google_identity_accesscontextmanager_v1_custom_level
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1CustomLevel/expr": expr
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy": google_identity_accesscontextmanager_v1_device_policy
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy/allowedDeviceManagementLevels": allowed_device_management_levels
? "/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy/allowedDeviceManagementLevels/allowed_device_management_level"
: allowed_device_management_level
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy/allowedEncryptionStatuses": allowed_encryption_statuses
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy/allowedEncryptionStatuses/allowed_encryption_status": allowed_encryption_status
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy/osConstraints": os_constraints
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy/osConstraints/os_constraint": os_constraint
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy/requireAdminApproval": require_admin_approval
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy/requireCorpOwned": require_corp_owned
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1DevicePolicy/requireScreenlock": require_screenlock
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1OsConstraint": google_identity_accesscontextmanager_v1_os_constraint
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1OsConstraint/minimumVersion": minimum_version
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1OsConstraint/osType": os_type
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1OsConstraint/requireVerifiedChromeOs": require_verified_chrome_os
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeter": google_identity_accesscontextmanager_v1_service_perimeter
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeter/description": description
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeter/name": name
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeter/perimeterType": perimeter_type
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeter/spec": spec
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeter/status": status
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeter/title": title
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeter/useExplicitDryRunSpec": use_explicit_dry_run_spec
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig": google_identity_accesscontextmanager_v1_service_perimeter_config
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig/accessLevels": access_levels
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig/accessLevels/access_level": access_level
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig/resources": resources
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig/resources/resource": resource
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig/restrictedServices": restricted_services
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig/restrictedServices/restricted_service": restricted_service
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig/vpcAccessibleServices": vpc_accessible_services
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices": google_identity_accesscontextmanager_v1_vpc_accessible_services
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices/allowedServices": allowed_services
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices/allowedServices/allowed_service": allowed_service
"/cloudasset:v1p5beta1/GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices/enableRestriction": enable_restriction
"/cloudasset:v1p5beta1/ListAssetsResponse": list_assets_response
"/cloudasset:v1p5beta1/ListAssetsResponse/assets": assets
"/cloudasset:v1p5beta1/ListAssetsResponse/assets/asset": asset
"/cloudasset:v1p5beta1/ListAssetsResponse/nextPageToken": next_page_token
"/cloudasset:v1p5beta1/ListAssetsResponse/readTime": read_time
"/cloudasset:v1p5beta1/Policy": policy
"/cloudasset:v1p5beta1/Policy/auditConfigs": audit_configs
"/cloudasset:v1p5beta1/Policy/auditConfigs/audit_config": audit_config
"/cloudasset:v1p5beta1/Policy/bindings": bindings
"/cloudasset:v1p5beta1/Policy/bindings/binding": binding
"/cloudasset:v1p5beta1/Policy/etag": etag
"/cloudasset:v1p5beta1/Policy/version": version
"/cloudasset:v1p5beta1/Resource": resource
"/cloudasset:v1p5beta1/Resource/data": data
"/cloudasset:v1p5beta1/Resource/data/datum": datum
"/cloudasset:v1p5beta1/Resource/discoveryDocumentUri": discovery_document_uri
"/cloudasset:v1p5beta1/Resource/discoveryName": discovery_name
"/cloudasset:v1p5beta1/Resource/parent": parent
"/cloudasset:v1p5beta1/Resource/resourceUrl": resource_url
"/cloudasset:v1p5beta1/Resource/version": version
"/cloudasset:v1p5beta1/cloudasset.assets.list": list_assets
"/cloudasset:v1p5beta1/cloudasset.assets.list/assetTypes": asset_types
"/cloudasset:v1p5beta1/cloudasset.assets.list/contentType": content_type
"/cloudasset:v1p5beta1/cloudasset.assets.list/pageSize": page_size
"/cloudasset:v1p5beta1/cloudasset.assets.list/pageToken": page_token
"/cloudasset:v1p5beta1/cloudasset.assets.list/parent": parent
"/cloudasset:v1p5beta1/cloudasset.assets.list/readTime": read_time
"/cloudasset:v1p5beta1/fields": fields
"/cloudasset:v1p5beta1/key": key
"/cloudasset:v1p5beta1/quotaUser": quota_user
"/cloudbilling:v1/AggregationInfo": aggregation_info
"/cloudbilling:v1/AggregationInfo/aggregationCount": aggregation_count
"/cloudbilling:v1/AggregationInfo/aggregationInterval": aggregation_interval
@ -80852,6 +80998,10 @@
"/dialogflow:v2/GoogleCloudDialogflowV2beta1AnnotatedConversationDataset/exampleCount": example_count
"/dialogflow:v2/GoogleCloudDialogflowV2beta1AnnotatedConversationDataset/name": name
"/dialogflow:v2/GoogleCloudDialogflowV2beta1AnnotatedConversationDataset/questionTypeName": question_type_name
"/dialogflow:v2/GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse": google_cloud_dialogflow_v2beta1_auto_approve_smart_messaging_entries_response
"/dialogflow:v2/GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse/disabledCount": disabled_count
"/dialogflow:v2/GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse/enabledCount": enabled_count
"/dialogflow:v2/GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse/unreviewedCount": unreviewed_count
"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse": google_cloud_dialogflow_v2beta1_batch_update_entity_types_response
"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse/entityTypes": entity_types
"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse/entityTypes/entity_type": entity_type
@ -81902,6 +82052,10 @@
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AnnotatedConversationDataset/questionTypeName": question_type_name
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ArticleSuggestionConfig": google_cloud_dialogflow_v2beta1_article_suggestion_config
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ArticleSuggestionConfig/knowledgeBaseName": knowledge_base_name
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse": google_cloud_dialogflow_v2beta1_auto_approve_smart_messaging_entries_response
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse/disabledCount": disabled_count
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse/enabledCount": enabled_count
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse/unreviewedCount": unreviewed_count
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentConfig": google_cloud_dialogflow_v2beta1_automated_agent_config
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentConfig/agent": agent
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentReply": google_cloud_dialogflow_v2beta1_automated_agent_reply
@ -133118,6 +133272,13 @@
"/testing:v1/DeviceFile": device_file
"/testing:v1/DeviceFile/obbFile": obb_file
"/testing:v1/DeviceFile/regularFile": regular_file
"/testing:v1/DeviceIpBlock": device_ip_block
"/testing:v1/DeviceIpBlock/addedDate": added_date
"/testing:v1/DeviceIpBlock/block": block
"/testing:v1/DeviceIpBlock/form": form
"/testing:v1/DeviceIpBlockCatalog": device_ip_block_catalog
"/testing:v1/DeviceIpBlockCatalog/ipBlocks": ip_blocks
"/testing:v1/DeviceIpBlockCatalog/ipBlocks/ip_block": ip_block
"/testing:v1/Distribution": distribution
"/testing:v1/Distribution/marketShare": market_share
"/testing:v1/Distribution/measurementTime": measurement_time
@ -133263,6 +133424,7 @@
"/testing:v1/TestDetails/videoRecordingDisabled": video_recording_disabled
"/testing:v1/TestEnvironmentCatalog": test_environment_catalog
"/testing:v1/TestEnvironmentCatalog/androidDeviceCatalog": android_device_catalog
"/testing:v1/TestEnvironmentCatalog/deviceIpBlockCatalog": device_ip_block_catalog
"/testing:v1/TestEnvironmentCatalog/iosDeviceCatalog": ios_device_catalog
"/testing:v1/TestEnvironmentCatalog/networkConfigurationCatalog": network_configuration_catalog
"/testing:v1/TestEnvironmentCatalog/softwareCatalog": software_catalog

View File

@ -31,7 +31,7 @@ module Google
# @see https://cloud.google.com/apigee-api-management/
module ApigeeV1
VERSION = 'V1'
REVISION = '20200710'
REVISION = '20200720'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2828,11 +2828,6 @@ module Google
class GoogleCloudApigeeV1IngressConfig
include Google::Apis::Core::Hashable
# Time at which the IngressConfig was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# List of environment groups in the organization.
# Corresponds to the JSON property `environmentGroups`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupConfig>]
@ -2844,6 +2839,11 @@ module Google
# @return [String]
attr_accessor :name
# Time at which the IngressConfig revision was created.
# Corresponds to the JSON property `revisionCreateTime`
# @return [String]
attr_accessor :revision_create_time
# Revision id that defines the ordering on IngressConfig resources.
# The higher the revision, the more recently the configuration
# was deployed.
@ -2851,11 +2851,6 @@ module Google
# @return [Fixnum]
attr_accessor :revision_id
# DEPRECATED: Use revision_id
# Corresponds to the JSON property `sequenceNumber`
# @return [Fixnum]
attr_accessor :sequence_number
# A unique id for the ingress config that will only change if the
# organization is deleted and recreated.
# Corresponds to the JSON property `uid`
@ -2868,11 +2863,10 @@ module Google
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@environment_groups = args[:environment_groups] if args.key?(:environment_groups)
@name = args[:name] if args.key?(:name)
@revision_create_time = args[:revision_create_time] if args.key?(:revision_create_time)
@revision_id = args[:revision_id] if args.key?(:revision_id)
@sequence_number = args[:sequence_number] if args.key?(:sequence_number)
@uid = args[:uid] if args.key?(:uid)
end
end

View File

@ -1524,12 +1524,11 @@ module Google
class GoogleCloudApigeeV1IngressConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
collection :environment_groups, as: 'environmentGroups', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupConfig::Representation
property :name, as: 'name'
property :revision_create_time, as: 'revisionCreateTime'
property :revision_id, :numeric_string => true, as: 'revisionId'
property :sequence_number, :numeric_string => true, as: 'sequenceNumber'
property :uid, as: 'uid'
end
end

View File

@ -161,7 +161,8 @@ module Google
# Gets the deployed ingress configuration for an organization.
# @param [String] name
# Name of the deployed configuration for the organization in the following
# Required. Name of the deployed configuration for the organization in the
# following
# format: 'organizations/`org`/deployedIngressConfig'.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3766,6 +3767,16 @@ module Google
# @param [String] name
# Required. Name of the API proxy revision deployment in the following format:
# `organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
# @param [Boolean] sequenced_rollout
# If true, a best-effort attempt will be made to remove the environment group
# routing rules corresponding to this deployment before removing the
# deployment from the runtime. This is likely to be a rare use case; it is
# only needed when the intended effect of undeploying this proxy is to cause
# the traffic it currently handles to be rerouted to some other existing
# proxy in the environment group. The GenerateUndeployChangeReport API may be
# used to examine routing changes before issuing the undeployment request,
# and its response will indicate if a sequenced rollout is recommended for
# the undeployment.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -3783,11 +3794,12 @@ 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 deployments_organization_environment_api_revision(name, fields: nil, quota_user: nil, options: nil, &block)
def deployments_organization_environment_api_revision(name, sequenced_rollout: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}/deployments', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleProtobufEmpty
command.params['name'] = name unless name.nil?
command.query['sequencedRollout'] = sequenced_rollout unless sequenced_rollout.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -5688,7 +5700,7 @@ module Google
# requests and the runtime data is deleted.
# **Note:** Not supported for Apigee hybrid.
# @param [String] name
# Name of the instance. Use the following structure in your request:
# Required. Name of the instance. Use the following structure in your request:
# `organizations/`org`/instance/`instance``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -5720,7 +5732,7 @@ module Google
# Gets the details for an Apigee runtime instance.
# **Note:** Not supported for Apigee hybrid.
# @param [String] name
# Name of the instance. Use the following structure in your request:
# Required. Name of the instance. Use the following structure in your request:
# `organizations/`org`/instances/`instance``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -5752,7 +5764,8 @@ module Google
# Lists all Apigee runtime instances for the organization.
# **Note:** Not supported for Apigee hybrid.
# @param [String] parent
# Name of the organization. Use the following structure in your request:
# Required. Name of the organization. Use the following structure in your
# request:
# `organizations/`org``.
# @param [Fixnum] page_size
# Maximum number of instances to return. Defaults to 25.

View File

@ -25,7 +25,7 @@ module Google
# @see https://code.google.com/apis/books/docs/v1/getting_started.html
module BooksV1
VERSION = 'V1'
REVISION = '20200617'
REVISION = '20200717'
# Manage your books
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'

View File

@ -26,14 +26,14 @@ module Google
class Annotation
include Google::Apis::Core::Hashable
# Anchor text after excerpt. For requests, if the user bookmarked a screen
# that has no flowing text on it, then this field should be empty.
# Anchor text after excerpt. For requests, if the user bookmarked a screen that
# has no flowing text on it, then this field should be empty.
# Corresponds to the JSON property `afterSelectedText`
# @return [String]
attr_accessor :after_selected_text
# Anchor text before excerpt. For requests, if the user bookmarked a screen
# that has no flowing text on it, then this field should be empty.
# Anchor text before excerpt. For requests, if the user bookmarked a screen that
# has no flowing text on it, then this field should be empty.
# Corresponds to the JSON property `beforeSelectedText`
# @return [String]
attr_accessor :before_selected_text
@ -229,8 +229,7 @@ module Google
class LayerSummary
include Google::Apis::Core::Hashable
# Maximum allowed characters on this layer, especially for the "copy"
# layer.
# Maximum allowed characters on this layer, especially for the "copy" layer.
# Corresponds to the JSON property `allowedCharacterCount`
# @return [Fixnum]
attr_accessor :allowed_character_count
@ -241,8 +240,7 @@ module Google
# @return [String]
attr_accessor :limit_type
# Remaining allowed characters on this layer, especially for the "copy"
# layer.
# Remaining allowed characters on this layer, especially for the "copy" layer.
# Corresponds to the JSON property `remainingCharacterCount`
# @return [Fixnum]
attr_accessor :remaining_character_count
@ -274,8 +272,8 @@ module Google
# @return [String]
attr_accessor :kind
# Token to pass in for pagination for the next page. This will not be present
# if this request does not have more results.
# Token to pass in for pagination for the next page. This will not be present if
# this request does not have more results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -381,8 +379,8 @@ module Google
# @return [String]
attr_accessor :kind
# Token to pass in for pagination for the next page. This will not be present
# if this request does not have more results.
# Token to pass in for pagination for the next page. This will not be present if
# this request does not have more results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -538,8 +536,8 @@ module Google
# @return [String]
attr_accessor :title
# Last modified time of this bookshelf (formatted UTC timestamp with
# millisecond resolution).
# Last modified time of this bookshelf (formatted UTC timestamp with millisecond
# resolution).
# Corresponds to the JSON property `updated`
# @return [String]
attr_accessor :updated
@ -701,8 +699,8 @@ module Google
# @return [String]
attr_accessor :signature
# Client app identifier for verification. Download access and
# client-validation only.
# Client app identifier for verification. Download access and client-validation
# only.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
@ -746,9 +744,8 @@ module Google
# @return [String]
attr_accessor :annotation_type
# JSON encoded data for this dictionary annotation data.
# Emitted with name 'data' in JSON output. Either this or geo_data will
# be populated.
# JSON encoded data for this dictionary annotation data. Emitted with name 'data'
# in JSON output. Either this or geo_data will be populated.
# Corresponds to the JSON property `data`
# @return [Google::Apis::BooksV1::DictLayerData]
attr_accessor :data
@ -842,8 +839,8 @@ module Google
class Common
include Google::Apis::Core::Hashable
# The display title and localized canonical name to use when searching for
# this entity on Google search.
# The display title and localized canonical name to use when searching for this
# entity on Google search.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
@ -926,8 +923,8 @@ module Google
# @return [Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense>]
attr_accessor :senses
# The words with different meanings but not related words, e.g. "go"
# (game) and "go" (verb).
# The words with different meanings but not related words, e.g. "go" (game) and "
# go" (verb).
# Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::DictLayerData::Dict::Word::Source]
attr_accessor :source
@ -1280,8 +1277,8 @@ module Google
end
end
# The words with different meanings but not related words, e.g. "go"
# (game) and "go" (verb).
# The words with different meanings but not related words, e.g. "go" (game) and "
# go" (verb).
class Source
include Google::Apis::Core::Hashable
@ -1448,8 +1445,8 @@ module Google
attr_accessor :device_allowed
alias_method :device_allowed?, :device_allowed
# If restricted, the number of content download licenses already acquired
# (including the requesting client, if licensed).
# If restricted, the number of content download licenses already acquired (
# including the requesting client, if licensed).
# Corresponds to the JSON property `downloadsAcquired`
# @return [Fixnum]
attr_accessor :downloads_acquired
@ -1465,8 +1462,7 @@ module Google
# @return [String]
attr_accessor :kind
# If restricted, the maximum number of content download licenses for this
# volume.
# If restricted, the maximum number of content download licenses for this volume.
# Corresponds to the JSON property `maxDownloadDevices`
# @return [Fixnum]
attr_accessor :max_download_devices
@ -1481,8 +1477,8 @@ module Google
# @return [String]
attr_accessor :nonce
# Error/warning reason code. Additional codes may be added in the future. 0
# OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200
# Error/warning reason code. Additional codes may be added in the future. 0 OK
# 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200
# WARNING_USED_LAST_ACCESS
# Corresponds to the JSON property `reasonCode`
# @return [String]
@ -1499,8 +1495,8 @@ module Google
# @return [String]
attr_accessor :signature
# Client app identifier for verification. Download access and
# client-validation only.
# Client app identifier for verification. Download access and client-validation
# only.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
@ -1556,13 +1552,11 @@ module Google
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
@ -1653,9 +1647,8 @@ module Google
# @return [String]
attr_accessor :annotation_type
# JSON encoded data for this geo annotation data.
# Emitted with name 'data' in JSON output. Either this or dict_data will
# be populated.
# JSON encoded data for this geo annotation data. Emitted with name 'data' in
# JSON output. Either this or dict_data will be populated.
# Corresponds to the JSON property `data`
# @return [Google::Apis::BooksV1::GeoLayerData]
attr_accessor :data
@ -1769,8 +1762,8 @@ module Google
# @return [String]
attr_accessor :snippet_url
# The display title and localized canonical name to use when searching for
# this entity on Google search.
# The display title and localized canonical name to use when searching for this
# entity on Google search.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
@ -1793,14 +1786,13 @@ module Google
class Geo
include Google::Apis::Core::Hashable
# The boundary of the location as a set of loops containing pairs of
# latitude, longitude coordinates.
# The boundary of the location as a set of loops containing pairs of latitude,
# longitude coordinates.
# Corresponds to the JSON property `boundary`
# @return [Array<String>]
attr_accessor :boundary
# The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED,
# NEVER
# The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER
# Corresponds to the JSON property `cachePolicy`
# @return [String]
attr_accessor :cache_policy
@ -1820,8 +1812,8 @@ module Google
# @return [Float]
attr_accessor :longitude
# The type of map that should be used for this location. EX: HYBRID,
# ROADMAP, SATELLITE, TERRAIN
# The type of map that should be used for this location. EX: HYBRID, ROADMAP,
# SATELLITE, TERRAIN
# Corresponds to the JSON property `mapType`
# @return [String]
attr_accessor :map_type
@ -1834,8 +1826,8 @@ module Google
# The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom
# level, in which the entire world can be seen on one map) to 21+ (down to
# individual buildings). See: https:
# //developers.google.com/maps/documentation/staticmaps/#Zoomlevels
# individual buildings). See: https: //developers.google.com/maps/documentation/
# staticmaps/#Zoomlevels
# Corresponds to the JSON property `zoom`
# @return [Fixnum]
attr_accessor :zoom
@ -2019,15 +2011,15 @@ module Google
# @return [String]
attr_accessor :self_link
# Timestamp for the last time an item in this layer was updated. (RFC 3339
# UTC date-time format).
# Timestamp for the last time an item in this layer was updated. (RFC 3339 UTC
# date-time format).
# Corresponds to the JSON property `updated`
# @return [String]
attr_accessor :updated
# The current version of this layer's volume annotations. Note that this
# version applies only to the data in the books.layers.volumeAnnotations.*
# responses. The actual annotation data is versioned separately.
# The current version of this layer's volume annotations. Note that this version
# applies only to the data in the books.layers.volumeAnnotations.* responses.
# The actual annotation data is versioned separately.
# Corresponds to the JSON property `volumeAnnotationsVersion`
# @return [String]
attr_accessor :volume_annotations_version
@ -2379,8 +2371,8 @@ module Google
# @return [String]
attr_accessor :pdf_position
# Timestamp when this reading position was last updated (formatted UTC
# timestamp with millisecond resolution).
# Timestamp when this reading position was last updated (formatted UTC timestamp
# with millisecond resolution).
# Corresponds to the JSON property `updated`
# @return [String]
attr_accessor :updated
@ -2466,14 +2458,14 @@ module Google
# @return [String]
attr_accessor :kind
# Star rating for this review. Possible values are ONE, TWO, THREE, FOUR,
# FIVE or NOT_RATED.
# Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE
# or NOT_RATED.
# Corresponds to the JSON property `rating`
# @return [String]
attr_accessor :rating
# Information regarding the source of this review, when the review is not
# from a Google Books user.
# Information regarding the source of this review, when the review is not from a
# Google Books user.
# Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::Review::Source]
attr_accessor :source
@ -2531,8 +2523,8 @@ module Google
end
end
# Information regarding the source of this review, when the review is not
# from a Google Books user.
# Information regarding the source of this review, when the review is not from a
# Google Books user.
class Source
include Google::Apis::Core::Hashable
@ -3039,9 +3031,8 @@ module Google
attr_accessor :recommended_info
# Any information about a volume related to the eBookstore and/or
# purchaseability. This information can depend on the country where the
# request originates from (i.e. books may not be for sale in certain
# countries).
# purchaseability. This information can depend on the country where the request
# originates from (i.e. books may not be for sale in certain countries).
# Corresponds to the JSON property `saleInfo`
# @return [Google::Apis::BooksV1::Volume::SaleInfo]
attr_accessor :sale_info
@ -3092,15 +3083,15 @@ module Google
class AccessInfo
include Google::Apis::Core::Hashable
# Combines the access and viewability of this volume into a single status
# field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN,
# SAMPLE or NONE. (In LITE projection.)
# Combines the access and viewability of this volume into a single status field
# for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or
# NONE. (In LITE projection.)
# Corresponds to the JSON property `accessViewStatus`
# @return [String]
attr_accessor :access_view_status
# The two-letter ISO_3166-1 country code for which this access information
# is valid. (In LITE projection.)
# The two-letter ISO_3166-1 country code for which this access information is
# valid. (In LITE projection.)
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
@ -3116,8 +3107,8 @@ module Google
# @return [String]
attr_accessor :drive_imported_content_link
# Whether this volume can be embedded in a viewport using the Embedded
# Viewer API.
# Whether this volume can be embedded in a viewport using the Embedded Viewer
# API.
# Corresponds to the JSON property `embeddable`
# @return [Boolean]
attr_accessor :embeddable
@ -3153,30 +3144,29 @@ module Google
attr_accessor :quote_sharing_allowed
alias_method :quote_sharing_allowed?, :quote_sharing_allowed
# Whether text-to-speech is permitted for this volume. Values can be
# ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
# Whether text-to-speech is permitted for this volume. Values can be ALLOWED,
# ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
# Corresponds to the JSON property `textToSpeechPermission`
# @return [String]
attr_accessor :text_to_speech_permission
# For ordered but not yet processed orders, we give a URL that can be used
# to go to the appropriate Google Wallet page.
# For ordered but not yet processed orders, we give a URL that can be used to go
# to the appropriate Google Wallet page.
# Corresponds to the JSON property `viewOrderUrl`
# @return [String]
attr_accessor :view_order_url
# The read access of a volume. Possible values are PARTIAL, ALL_PAGES,
# NO_PAGES or UNKNOWN. This value depends on the country listed above. A
# value of PARTIAL means that the publisher has allowed some portion of the
# volume to be viewed publicly, without purchase. This can apply to eBooks
# as well as non-eBooks. Public domain books will always have a value of
# ALL_PAGES.
# The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES
# or UNKNOWN. This value depends on the country listed above. A value of PARTIAL
# means that the publisher has allowed some portion of the volume to be viewed
# publicly, without purchase. This can apply to eBooks as well as non-eBooks.
# Public domain books will always have a value of ALL_PAGES.
# Corresponds to the JSON property `viewability`
# @return [String]
attr_accessor :viewability
# URL to read this volume on the Google Books site. Link will not allow
# users to read non-viewable volumes.
# URL to read this volume on the Google Books site. Link will not allow users to
# read non-viewable volumes.
# Corresponds to the JSON property `webReaderLink`
# @return [String]
attr_accessor :web_reader_link
@ -3217,8 +3207,8 @@ module Google
# @return [String]
attr_accessor :download_link
# Is a flowing text epub available either as public domain or for
# purchase. (In LITE projection.)
# Is a flowing text epub available either as public domain or for purchase. (In
# LITE projection.)
# Corresponds to the JSON property `isAvailable`
# @return [Boolean]
attr_accessor :is_available
@ -3250,8 +3240,8 @@ module Google
# @return [String]
attr_accessor :download_link
# Is a scanned image pdf available either as public domain or for
# purchase. (In LITE projection.)
# Is a scanned image pdf available either as public domain or for purchase. (In
# LITE projection.)
# Corresponds to the JSON property `isAvailable`
# @return [Boolean]
attr_accessor :is_available
@ -3297,10 +3287,9 @@ module Google
# @return [String]
attr_accessor :layer_id
# The current version of this layer's volume annotations. Note that this
# version applies only to the data in the
# books.layers.volumeAnnotations.* responses. The actual annotation data
# is versioned separately.
# The current version of this layer's volume annotations. Note that this version
# applies only to the data in the books.layers.volumeAnnotations.* responses.
# The actual annotation data is versioned separately.
# Corresponds to the JSON property `volumeAnnotationsVersion`
# @return [String]
attr_accessor :volume_annotations_version
@ -3337,14 +3326,12 @@ module Google
end
# Any information about a volume related to the eBookstore and/or
# purchaseability. This information can depend on the country where the
# request originates from (i.e. books may not be for sale in certain
# countries).
# purchaseability. This information can depend on the country where the request
# originates from (i.e. books may not be for sale in certain countries).
class SaleInfo
include Google::Apis::Core::Hashable
# URL to purchase this volume on the Google Books site. (In LITE
# projection)
# URL to purchase this volume on the Google Books site. (In LITE projection)
# Corresponds to the JSON property `buyLink`
# @return [String]
attr_accessor :buy_link
@ -3355,8 +3342,7 @@ module Google
# @return [String]
attr_accessor :country
# Whether or not this volume is an eBook (can be added to the My eBooks
# shelf).
# Whether or not this volume is an eBook (can be added to the My eBooks shelf).
# Corresponds to the JSON property `isEbook`
# @return [Boolean]
attr_accessor :is_ebook
@ -3377,17 +3363,16 @@ module Google
# @return [String]
attr_accessor :on_sale_date
# The actual selling price of the book. This is the same as the suggested
# retail or list price unless there are offers or discounts on this volume.
# (In LITE projection.)
# The actual selling price of the book. This is the same as the suggested retail
# or list price unless there are offers or discounts on this volume. (In LITE
# projection.)
# Corresponds to the JSON property `retailPrice`
# @return [Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice]
attr_accessor :retail_price
# Whether or not this book is available for sale or offered for free in the
# Google eBookstore for the country listed above. Possible values are
# FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or
# FOR_PREORDER.
# Google eBookstore for the country listed above. Possible values are FOR_SALE,
# FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
# Corresponds to the JSON property `saleability`
# @return [String]
attr_accessor :saleability
@ -3552,9 +3537,9 @@ module Google
end
end
# The actual selling price of the book. This is the same as the suggested
# retail or list price unless there are offers or discounts on this volume.
# (In LITE projection.)
# The actual selling price of the book. This is the same as the suggested retail
# or list price unless there are offers or discounts on this volume. (In LITE
# projection.)
class RetailPrice
include Google::Apis::Core::Hashable
@ -3604,9 +3589,9 @@ module Google
class UserInfo
include Google::Apis::Core::Hashable
# Timestamp when this volume was acquired by the user. (RFC 3339 UTC
# date-time format) Acquiring includes purchase, user upload, receiving
# family sharing, etc.
# Timestamp when this volume was acquired by the user. (RFC 3339 UTC date-time
# format) Acquiring includes purchase, user upload, receiving family sharing,
# etc.
# Corresponds to the JSON property `acquiredTime`
# @return [String]
attr_accessor :acquired_time
@ -3661,15 +3646,15 @@ module Google
attr_accessor :is_in_my_books
alias_method :is_in_my_books?, :is_in_my_books
# Whether or not this volume was pre-ordered by the authenticated user
# making the request. (In LITE projection.)
# Whether or not this volume was pre-ordered by the authenticated user making
# the request. (In LITE projection.)
# Corresponds to the JSON property `isPreordered`
# @return [Boolean]
attr_accessor :is_preordered
alias_method :is_preordered?, :is_preordered
# Whether or not this volume was purchased by the authenticated user making
# the request. (In LITE projection.)
# Whether or not this volume was purchased by the authenticated user making the
# request. (In LITE projection.)
# Corresponds to the JSON property `isPurchased`
# @return [Boolean]
attr_accessor :is_purchased
@ -3681,8 +3666,8 @@ module Google
attr_accessor :is_uploaded
alias_method :is_uploaded?, :is_uploaded
# The user's current reading position in the volume, if one is available.
# (In LITE projection.)
# The user's current reading position in the volume, if one is available. (In
# LITE projection.)
# Corresponds to the JSON property `readingPosition`
# @return [Google::Apis::BooksV1::ReadingPosition]
attr_accessor :reading_position
@ -3703,8 +3688,8 @@ module Google
attr_accessor :review
# Timestamp when this volume was last modified by a user action, such as a
# reading position update, volume purchase or writing a review. (RFC 3339
# UTC date-time format).
# reading position update, volume purchase or writing a review. (RFC 3339 UTC
# date-time format).
# Corresponds to the JSON property `updated`
# @return [String]
attr_accessor :updated
@ -3787,16 +3772,16 @@ module Google
# @return [String]
attr_accessor :family_role
# Whether or not this volume can be shared with the family by the user.
# This includes sharing eligibility of both the volume and the user. If
# the value is true, the user can initiate a family sharing action.
# Whether or not this volume can be shared with the family by the user. This
# includes sharing eligibility of both the volume and the user. If the value is
# true, the user can initiate a family sharing action.
# Corresponds to the JSON property `isSharingAllowed`
# @return [Boolean]
attr_accessor :is_sharing_allowed
alias_method :is_sharing_allowed?, :is_sharing_allowed
# Whether or not sharing this volume is temporarily disabled due to
# issues with the Family Wallet.
# Whether or not sharing this volume is temporarily disabled due to issues with
# the Family Wallet.
# Corresponds to the JSON property `isSharingDisabledByFop`
# @return [Boolean]
attr_accessor :is_sharing_disabled_by_fop
@ -3869,8 +3854,7 @@ module Google
attr_accessor :allow_anon_logging
alias_method :allow_anon_logging?, :allow_anon_logging
# The names of the authors and/or editors for this volume. (In LITE
# projection)
# The names of the authors and/or editors for this volume. (In LITE projection)
# Corresponds to the JSON property `authors`
# @return [Array<String>]
attr_accessor :authors
@ -3896,15 +3880,15 @@ module Google
attr_accessor :comics_content
alias_method :comics_content?, :comics_content
# An identifier for the version of the volume content (text & images). (In
# LITE projection)
# An identifier for the version of the volume content (text & images). (In LITE
# projection)
# Corresponds to the JSON property `contentVersion`
# @return [String]
attr_accessor :content_version
# A synopsis of the volume. The text of the description is formatted in
# HTML and includes simple formatting elements, such as b, i, and br tags.
# (In LITE projection.)
# A synopsis of the volume. The text of the description is formatted in HTML and
# includes simple formatting elements, such as b, i, and br tags. (In LITE
# projection.)
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
@ -3925,20 +3909,20 @@ module Google
# @return [Array<Google::Apis::BooksV1::Volume::VolumeInfo::IndustryIdentifier>]
attr_accessor :industry_identifiers
# URL to view information about this volume on the Google Books site. (In
# LITE projection)
# URL to view information about this volume on the Google Books site. (In LITE
# projection)
# Corresponds to the JSON property `infoLink`
# @return [String]
attr_accessor :info_link
# Best language for this volume (based on content). It is the two-letter
# ISO 639-1 code such as 'fr', 'en', etc.
# Best language for this volume (based on content). It is the two-letter ISO 639-
# 1 code such as 'fr', 'en', etc.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# The main category to which this volume belongs. It will be the category
# from the categories list returned below that has the highest weight.
# The main category to which this volume belongs. It will be the category from
# the categories list returned below that has the highest weight.
# Corresponds to the JSON property `mainCategory`
# @return [String]
attr_accessor :main_category
@ -4085,8 +4069,7 @@ module Google
class ImageLinks
include Google::Apis::Core::Hashable
# Image link for extra large size (width of ~1280 pixels). (In LITE
# projection)
# Image link for extra large size (width of ~1280 pixels). (In LITE projection)
# Corresponds to the JSON property `extraLarge`
# @return [String]
attr_accessor :extra_large
@ -4106,14 +4089,12 @@ module Google
# @return [String]
attr_accessor :small
# Image link for small thumbnail size (width of ~80 pixels). (In LITE
# projection)
# Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
# Corresponds to the JSON property `smallThumbnail`
# @return [String]
attr_accessor :small_thumbnail
# Image link for thumbnail size (width of ~128 pixels). (In LITE
# projection)
# Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
# Corresponds to the JSON property `thumbnail`
# @return [String]
attr_accessor :thumbnail
@ -4322,8 +4303,8 @@ module Google
# @return [String]
attr_accessor :self_link
# Timestamp for the last time this anntoation was updated. (RFC 3339 UTC
# date-time format).
# Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-
# time format).
# Corresponds to the JSON property `updated`
# @return [String]
attr_accessor :updated
@ -4407,8 +4388,8 @@ module Google
# @return [String]
attr_accessor :kind
# Token to pass in for pagination for the next page. This will not be present
# if this request does not have more results.
# Token to pass in for pagination for the next page. This will not be present if
# this request does not have more results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -4418,10 +4399,10 @@ module Google
# @return [Fixnum]
attr_accessor :total_items
# The version string for all of the volume annotations in this layer (not
# just the ones in this response). Note: the version string
# doesn't apply to the annotation data, just the information in this response
# (e.g. the location of annotations in the book).
# The version string for all of the volume annotations in this layer (not just
# the ones in this response). Note: the version string doesn't apply to the
# annotation data, just the information in this response (e.g. the location of
# annotations in the book).
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
@ -4476,8 +4457,8 @@ module Google
class Volumeseriesinfo
include Google::Apis::Core::Hashable
# The display number string. This should be used only for display purposes
# and the actual sequence should be inferred from the below orderNumber.
# The display number string. This should be used only for display purposes and
# the actual sequence should be inferred from the below orderNumber.
# Corresponds to the JSON property `bookDisplayNumber`
# @return [String]
attr_accessor :book_display_number
@ -4523,8 +4504,8 @@ module Google
# @return [Fixnum]
attr_accessor :order_number
# The book type in the context of series. Examples - Single Issue,
# Collection Edition, etc.
# The book type in the context of series. Examples - Single Issue, Collection
# Edition, etc.
# Corresponds to the JSON property `seriesBookType`
# @return [String]
attr_accessor :series_book_type

View File

@ -357,8 +357,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Initiates revoking content that has already been shared with the user's
# family. Empty response indicates success.
# Initiates revoking content that has already been shared with the user's family.
# Empty response indicates success.
# @param [String] doc_id
# The docid to unshare.
# @param [String] source
@ -490,8 +490,8 @@ module Google
# The requested pixel height for any images. If height is provided width must
# also be provided.
# @param [String] locale
# The locale information for the data. ISO-639-1 language and ISO-3166-1
# country code. Ex: 'en_US'.
# The locale information for the data. ISO-639-1 language and ISO-3166-1 country
# code. Ex: 'en_US'.
# @param [Fixnum] scale
# The requested scale for the image.
# @param [String] source
@ -541,16 +541,16 @@ module Google
# @param [String] layer_id
# The ID for the layer to get the annotation data.
# @param [Array<String>, String] annotation_data_id
# The list of Annotation Data Ids to retrieve. Pagination is ignored if this
# is set.
# The list of Annotation Data Ids to retrieve. Pagination is ignored if this is
# set.
# @param [String] content_version
# The content version for the requested volume.
# @param [Fixnum] h
# The requested pixel height for any images. If height is provided width must
# also be provided.
# @param [String] locale
# The locale information for the data. ISO-639-1 language and ISO-3166-1
# country code. Ex: 'en_US'.
# The locale information for the data. ISO-639-1 language and ISO-3166-1 country
# code. Ex: 'en_US'.
# @param [Fixnum] max_results
# Maximum number of results to return
# @param [String] page_token
@ -560,11 +560,11 @@ module Google
# @param [String] source
# String to identify the originator of this request.
# @param [String] updated_max
# RFC 3339 timestamp to restrict to items updated prior to this timestamp
# (exclusive).
# RFC 3339 timestamp to restrict to items updated prior to this timestamp (
# exclusive).
# @param [String] updated_min
# RFC 3339 timestamp to restrict to items updated since this timestamp
# (inclusive).
# RFC 3339 timestamp to restrict to items updated since this timestamp (
# inclusive).
# @param [Fixnum] w
# The requested pixel width for any images. If width is provided height must
# also be provided.
@ -615,8 +615,8 @@ module Google
# @param [String] annotation_id
# The ID of the volume annotation to retrieve.
# @param [String] locale
# The locale information for the data. ISO-639-1 language and ISO-3166-1
# country code. Ex: 'en_US'.
# The locale information for the data. ISO-639-1 language and ISO-3166-1 country
# code. Ex: 'en_US'.
# @param [String] source
# String to identify the originator of this request.
# @param [String] fields
@ -662,15 +662,15 @@ module Google
# @param [String] end_position
# The end position to end retrieving data from.
# @param [String] locale
# The locale information for the data. ISO-639-1 language and ISO-3166-1
# country code. Ex: 'en_US'.
# The locale information for the data. ISO-639-1 language and ISO-3166-1 country
# code. Ex: 'en_US'.
# @param [Fixnum] max_results
# Maximum number of results to return
# @param [String] page_token
# The value of the nextToken from the previous page.
# @param [Boolean] show_deleted
# Set to true to return deleted annotations. updatedMin must be in the
# request to use this. Defaults to false.
# Set to true to return deleted annotations. updatedMin must be in the request
# to use this. Defaults to false.
# @param [String] source
# String to identify the originator of this request.
# @param [String] start_offset
@ -678,11 +678,11 @@ module Google
# @param [String] start_position
# The start position to start retrieving data from.
# @param [String] updated_max
# RFC 3339 timestamp to restrict to items updated prior to this timestamp
# (exclusive).
# RFC 3339 timestamp to restrict to items updated prior to this timestamp (
# exclusive).
# @param [String] updated_min
# RFC 3339 timestamp to restrict to items updated since this timestamp
# (inclusive).
# RFC 3339 timestamp to restrict to items updated since this timestamp (
# inclusive).
# @param [String] volume_annotations_version
# The version of the volume annotations that you are requesting.
# @param [String] fields
@ -799,8 +799,7 @@ module Google
# @param [String] cpksver
# The device/version ID from which to request the restrictions.
# @param [String] license_types
# The type of access license to request. If not specified, the default is
# BOTH.
# The type of access license to request. If not specified, the default is BOTH.
# @param [String] locale
# ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
# @param [String] nonce
@ -841,8 +840,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Request downloaded content access for specified volumes on the My eBooks
# shelf.
# Request downloaded content access for specified volumes on the My eBooks shelf.
# @param [String] cpksver
# The device/version ID from which to release the restriction.
# @param [Array<String>, String] features
@ -894,8 +892,8 @@ module Google
end
# Sets the settings for the user. If a sub-object is specified, it will
# overwrite the existing sub-object stored in the server. Unspecified
# sub-objects will retain the existing value.
# overwrite the existing sub-object stored in the server. Unspecified sub-
# objects will retain the existing value.
# @param [Google::Apis::BooksV1::UserSettings] user_settings_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1013,16 +1011,16 @@ module Google
# @param [String] page_token
# The value of the nextToken from the previous page.
# @param [Boolean] show_deleted
# Set to true to return deleted annotations. updatedMin must be in the
# request to use this. Defaults to false.
# Set to true to return deleted annotations. updatedMin must be in the request
# to use this. Defaults to false.
# @param [String] source
# String to identify the originator of this request.
# @param [String] updated_max
# RFC 3339 timestamp to restrict to items updated prior to this timestamp
# (exclusive).
# RFC 3339 timestamp to restrict to items updated prior to this timestamp (
# exclusive).
# @param [String] updated_min
# RFC 3339 timestamp to restrict to items updated since this timestamp
# (inclusive).
# RFC 3339 timestamp to restrict to items updated since this timestamp (
# inclusive).
# @param [String] volume_id
# The volume to restrict annotations to.
# @param [String] fields
@ -1274,8 +1272,8 @@ module Google
# @param [String] volume_id
# ID of volume to move.
# @param [Fixnum] volume_position
# Position on shelf to move the item (0 puts the item before the current
# first item, 1 puts it between the first and the second and so on.)
# Position on shelf to move the item (0 puts the item before the current first
# item, 1 puts it between the first and the second and so on.)
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1553,8 +1551,8 @@ module Google
# @param [String] locale
# ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset.
# @param [String] max_allowed_maturity_rating
# The maximum allowed maturity rating of returned volumes. Books with a
# higher maturity rating are filtered out.
# The maximum allowed maturity rating of returned volumes. Books with a higher
# maturity rating are filtered out.
# @param [Fixnum] page_size
# Number of maximum results per page to be included in the response.
# @param [String] page_token
@ -1595,8 +1593,8 @@ module Google
# ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
# generating recommendations.
# @param [String] max_allowed_maturity_rating
# The maximum allowed maturity rating of returned recommendations. Books with
# a higher maturity rating are filtered out.
# The maximum allowed maturity rating of returned recommendations. Books with a
# higher maturity rating are filtered out.
# @param [String] source
# String to identify the originator of this request.
# @param [String] fields
@ -1849,7 +1847,7 @@ module Google
# @param [String] projection
# Restrict information returned to a set of selected fields.
# @param [String] source
# string to identify the originator of this request.
# string to identify the originator of this request.
# @param [Boolean] user_library_consistent_read
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1894,8 +1892,8 @@ module Google
# @param [String] library_restrict
# Restrict search to this user's library.
# @param [String] max_allowed_maturity_rating
# The maximum allowed maturity rating of returned recommendations. Books with
# a higher maturity rating are filtered out.
# The maximum allowed maturity rating of returned recommendations. Books with a
# higher maturity rating are filtered out.
# @param [Fixnum] max_results
# Maximum number of results to return.
# @param [String] order_by
@ -1963,8 +1961,8 @@ module Google
# ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
# generating recommendations.
# @param [String] max_allowed_maturity_rating
# The maximum allowed maturity rating of returned recommendations. Books with
# a higher maturity rating are filtered out.
# The maximum allowed maturity rating of returned recommendations. Books with a
# higher maturity rating are filtered out.
# @param [String] source
# String to identify the originator of this request.
# @param [String] fields
@ -2009,8 +2007,8 @@ module Google
# @param [Fixnum] max_results
# Maximum number of results to return.
# @param [Array<String>, String] processing_state
# The processing state of the user uploaded volumes to be returned.
# Applicable only if the UPLOADED is specified in the acquireMethod.
# The processing state of the user uploaded volumes to be returned. Applicable
# only if the UPLOADED is specified in the acquireMethod.
# @param [String] source
# String to identify the originator of this request.
# @param [Fixnum] start_index
@ -2053,8 +2051,8 @@ module Google
# ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
# generating recommendations.
# @param [String] max_allowed_maturity_rating
# The maximum allowed maturity rating of returned recommendations. Books with
# a higher maturity rating are filtered out.
# The maximum allowed maturity rating of returned recommendations. Books with a
# higher maturity rating are filtered out.
# @param [String] source
# String to identify the originator of this request.
# @param [String] fields

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/web/tools/chrome-user-experience-report/api/reference
module ChromeuxreportV1
VERSION = 'V1'
REVISION = '20200528'
REVISION = '20200720'
end
end
end

View File

@ -66,6 +66,16 @@ module Google
class Key
include Google::Apis::Core::Hashable
# The effective connection type is the general connection class that all
# users experienced for this record. This field uses the values ["offline",
# "slow-2G", "2G", "3G", "4G"] as specified in:
# https://wicg.github.io/netinfo/#effective-connection-types
# If the effective connection type is unspecified, then aggregated data
# over all effective connection types will be returned.
# Corresponds to the JSON property `effectiveConnectionType`
# @return [String]
attr_accessor :effective_connection_type
# The form factor is the device class that all users used to access the
# site for this record.
# If the form factor is unspecified, then aggregated data over all form
@ -94,6 +104,7 @@ module Google
# Update properties of this object
def update!(**args)
@effective_connection_type = args[:effective_connection_type] if args.key?(:effective_connection_type)
@form_factor = args[:form_factor] if args.key?(:form_factor)
@origin = args[:origin] if args.key?(:origin)
@url = args[:url] if args.key?(:url)
@ -157,6 +168,16 @@ module Google
class QueryRequest
include Google::Apis::Core::Hashable
# The effective connection type is a query dimension that specifies the
# effective network class that the record's data should belong to. This field
# uses the values ["offline", "slow-2G", "2G", "3G", "4G"] as specified in:
# https://wicg.github.io/netinfo/#effective-connection-types
# Note: If no effective connection type is specified, then a special record
# with aggregated data over all effective connection types will be returned.
# Corresponds to the JSON property `effectiveConnectionType`
# @return [String]
attr_accessor :effective_connection_type
# The form factor is a query dimension that specifies the device class that
# the record's data should belong to.
# Note: If no form factor is specified, then a special record with
@ -194,6 +215,7 @@ module Google
# Update properties of this object
def update!(**args)
@effective_connection_type = args[:effective_connection_type] if args.key?(:effective_connection_type)
@form_factor = args[:form_factor] if args.key?(:form_factor)
@metrics = args[:metrics] if args.key?(:metrics)
@origin = args[:origin] if args.key?(:origin)

View File

@ -82,6 +82,7 @@ module Google
class Key
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :effective_connection_type, as: 'effectiveConnectionType'
property :form_factor, as: 'formFactor'
property :origin, as: 'origin'
property :url, as: 'url'
@ -108,6 +109,7 @@ module Google
class QueryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :effective_connection_type, as: 'effectiveConnectionType'
property :form_factor, as: 'formFactor'
collection :metrics, as: 'metrics'
property :origin, as: 'origin'

View File

@ -0,0 +1,34 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/cloudasset_v1p5beta1/service.rb'
require 'google/apis/cloudasset_v1p5beta1/classes.rb'
require 'google/apis/cloudasset_v1p5beta1/representations.rb'
module Google
module Apis
# Cloud Asset API
#
# The cloud asset API manages the history and inventory of cloud resources.
#
# @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p5beta1
VERSION = 'V1p5beta1'
REVISION = '20200717'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,399 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudassetV1p5beta1
class Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudOrgpolicyV1BooleanPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudOrgpolicyV1ListPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudOrgpolicyV1Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudOrgpolicyV1RestoreDefault
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1AccessLevel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1AccessPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1BasicLevel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1CustomLevel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1DevicePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1OsConstraint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1ServicePerimeter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAssetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :access_level, as: 'accessLevel', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessLevel, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessLevel::Representation
property :access_policy, as: 'accessPolicy', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessPolicy, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessPolicy::Representation
collection :ancestors, as: 'ancestors'
property :asset_type, as: 'assetType'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::CloudassetV1p5beta1::Policy, decorator: Google::Apis::CloudassetV1p5beta1::Policy::Representation
property :name, as: 'name'
collection :org_policy, as: 'orgPolicy', class: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1Policy, decorator: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1Policy::Representation
property :resource, as: 'resource', class: Google::Apis::CloudassetV1p5beta1::Resource, decorator: Google::Apis::CloudassetV1p5beta1::Resource::Representation
property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudassetV1p5beta1::AuditLogConfig, decorator: Google::Apis::CloudassetV1p5beta1::AuditLogConfig::Representation
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudassetV1p5beta1::Expr, decorator: Google::Apis::CloudassetV1p5beta1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class GoogleCloudOrgpolicyV1BooleanPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enforced, as: 'enforced'
end
end
class GoogleCloudOrgpolicyV1ListPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :all_values, as: 'allValues'
collection :allowed_values, as: 'allowedValues'
collection :denied_values, as: 'deniedValues'
property :inherit_from_parent, as: 'inheritFromParent'
property :suggested_value, as: 'suggestedValue'
end
end
class GoogleCloudOrgpolicyV1Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1BooleanPolicy, decorator: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1BooleanPolicy::Representation
property :constraint, as: 'constraint'
property :etag, :base64 => true, as: 'etag'
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1ListPolicy, decorator: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1ListPolicy::Representation
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1RestoreDefault, decorator: Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1RestoreDefault::Representation
property :update_time, as: 'updateTime'
property :version, as: 'version'
end
end
class GoogleCloudOrgpolicyV1RestoreDefault
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleIdentityAccesscontextmanagerV1AccessLevel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :basic, as: 'basic', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1BasicLevel, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1BasicLevel::Representation
property :custom, as: 'custom', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1CustomLevel, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1CustomLevel::Representation
property :description, as: 'description'
property :name, as: 'name'
property :title, as: 'title'
end
end
class GoogleIdentityAccesscontextmanagerV1AccessPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :name, as: 'name'
property :parent, as: 'parent'
property :title, as: 'title'
end
end
class GoogleIdentityAccesscontextmanagerV1BasicLevel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :combining_function, as: 'combiningFunction'
collection :conditions, as: 'conditions', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1Condition, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1Condition::Representation
end
end
class GoogleIdentityAccesscontextmanagerV1Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_policy, as: 'devicePolicy', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1DevicePolicy, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1DevicePolicy::Representation
collection :ip_subnetworks, as: 'ipSubnetworks'
collection :members, as: 'members'
property :negate, as: 'negate'
collection :regions, as: 'regions'
collection :required_access_levels, as: 'requiredAccessLevels'
end
end
class GoogleIdentityAccesscontextmanagerV1CustomLevel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expr, as: 'expr', class: Google::Apis::CloudassetV1p5beta1::Expr, decorator: Google::Apis::CloudassetV1p5beta1::Expr::Representation
end
end
class GoogleIdentityAccesscontextmanagerV1DevicePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_device_management_levels, as: 'allowedDeviceManagementLevels'
collection :allowed_encryption_statuses, as: 'allowedEncryptionStatuses'
collection :os_constraints, as: 'osConstraints', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1OsConstraint, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1OsConstraint::Representation
property :require_admin_approval, as: 'requireAdminApproval'
property :require_corp_owned, as: 'requireCorpOwned'
property :require_screenlock, as: 'requireScreenlock'
end
end
class GoogleIdentityAccesscontextmanagerV1OsConstraint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :minimum_version, as: 'minimumVersion'
property :os_type, as: 'osType'
property :require_verified_chrome_os, as: 'requireVerifiedChromeOs'
end
end
class GoogleIdentityAccesscontextmanagerV1ServicePerimeter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :name, as: 'name'
property :perimeter_type, as: 'perimeterType'
property :spec, as: 'spec', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig::Representation
property :status, as: 'status', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig::Representation
property :title, as: 'title'
property :use_explicit_dry_run_spec, as: 'useExplicitDryRunSpec'
end
end
class GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :access_levels, as: 'accessLevels'
collection :resources, as: 'resources'
collection :restricted_services, as: 'restrictedServices'
property :vpc_accessible_services, as: 'vpcAccessibleServices', class: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices, decorator: Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices::Representation
end
end
class GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_services, as: 'allowedServices'
property :enable_restriction, as: 'enableRestriction'
end
end
class ListAssetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :assets, as: 'assets', class: Google::Apis::CloudassetV1p5beta1::Asset, decorator: Google::Apis::CloudassetV1p5beta1::Asset::Representation
property :next_page_token, as: 'nextPageToken'
property :read_time, as: 'readTime'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudassetV1p5beta1::AuditConfig, decorator: Google::Apis::CloudassetV1p5beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudassetV1p5beta1::Binding, decorator: Google::Apis::CloudassetV1p5beta1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :data, as: 'data'
property :discovery_document_uri, as: 'discoveryDocumentUri'
property :discovery_name, as: 'discoveryName'
property :parent, as: 'parent'
property :resource_url, as: 'resourceUrl'
property :version, as: 'version'
end
end
end
end
end

View File

@ -0,0 +1,129 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudassetV1p5beta1
# Cloud Asset API
#
# The cloud asset API manages the history and inventory of cloud resources.
#
# @example
# require 'google/apis/cloudasset_v1p5beta1'
#
# Cloudasset = Google::Apis::CloudassetV1p5beta1 # Alias the module
# service = Cloudasset::CloudAssetService.new
#
# @see https://cloud.google.com/asset-inventory/docs/quickstart
class CloudAssetService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://cloudasset.googleapis.com/', '')
@batch_path = 'batch'
end
# Lists assets with time and resource types and returns paged results in
# response.
# @param [String] parent
# Required. Name of the organization or project the assets belong to. Format:
# "organizations/[organization-number]" (such as "organizations/123"),
# "projects/[project-number]" (such as "projects/my-project-id"), or
# "projects/[project-id]" (such as "projects/12345").
# @param [Array<String>, String] asset_types
# A list of asset types to take a snapshot for. For example:
# "compute.googleapis.com/Disk".
# Regular expression is also supported. For example:
# * "compute.googleapis.com.*" snapshots resources whose asset type starts
# with "compute.googleapis.com".
# * ".*Instance" snapshots resources whose asset type ends with "Instance".
# * ".*Instance.*" snapshots resources whose asset type contains "Instance".
# See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
# regular expression syntax. If the regular expression does not match any
# supported asset type, an INVALID_ARGUMENT error will be returned.
# If specified, only matching assets will be returned, otherwise, it will
# snapshot all asset types. See [Introduction to Cloud Asset
# Inventory](https://cloud.google.com/asset-inventory/docs/overview)
# for all supported asset types.
# @param [String] content_type
# Asset content type. If not specified, no content but the asset name will
# be returned.
# @param [Fixnum] page_size
# The maximum number of assets to be returned in a single response. Default
# is 100, minimum is 1, and maximum is 1000.
# @param [String] page_token
# The `next_page_token` returned from the previous `ListAssetsResponse`, or
# unspecified for the first `ListAssetsRequest`. It is a continuation of a
# prior `ListAssets` call, and the API should return the next page of assets.
# @param [String] read_time
# Timestamp to take an asset snapshot. This can only be set to a timestamp
# between the current time and the current time minus 35 days (inclusive).
# If not specified, the current time will be used. Due to delays in resource
# data collection and indexing, there is a volatile window during which
# running the same query may get different results.
# @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::CloudassetV1p5beta1::ListAssetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1p5beta1::ListAssetsResponse]
#
# @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_assets(parent, asset_types: nil, content_type: nil, page_size: nil, page_token: nil, read_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p5beta1/{+parent}/assets', options)
command.response_representation = Google::Apis::CloudassetV1p5beta1::ListAssetsResponse::Representation
command.response_class = Google::Apis::CloudassetV1p5beta1::ListAssetsResponse
command.params['parent'] = parent unless parent.nil?
command.query['assetTypes'] = asset_types unless asset_types.nil?
command.query['contentType'] = content_type unless content_type.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['readTime'] = read_time unless read_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20200715'
REVISION = '20200720'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200626'
REVISION = '20200720'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha2
VERSION = 'V1alpha2'
REVISION = '20200626'
REVISION = '20200720'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/
module DialogflowV2
VERSION = 'V2'
REVISION = '20200627'
REVISION = '20200719'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -778,8 +778,7 @@ module Google
# understand. You design and build a Dialogflow agent to handle the types of
# conversations required for your system.
# For more information about agents, see the
# [Agents
# documentation](https://cloud.google.com/dialogflow/docs/agents-overview).
# [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).
class GoogleCloudDialogflowV2Agent
include Google::Apis::Core::Hashable
@ -1203,7 +1202,19 @@ module Google
end
end
# Represents a context.
# Dialogflow contexts are similar to natural language context. If a person says
# to you "they are orange", you need context in order to understand what "they"
# is referring to. Similarly, for Dialogflow to handle an end-user expression
# like that, it needs to be provided with context in order to correctly match
# an intent.
# Using contexts, you can control the flow of a conversation. You can configure
# contexts for an intent by setting input and output contexts, which are
# identified by string names. When an intent is matched, any configured output
# contexts for that intent become active. While any contexts are active,
# Dialogflow is more likely to match intents that are configured with input
# contexts that correspond to the currently active contexts.
# For more information about context, see the
# [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
class GoogleCloudDialogflowV2Context
include Google::Apis::Core::Hashable
@ -1261,7 +1272,7 @@ module Google
end
end
# Represents a notification sent to Cloud Pub/Sub subscribers for conversation
# Represents a notification sent to Pub/Sub subscribers for conversation
# lifecycle events.
class GoogleCloudDialogflowV2ConversationEvent
include Google::Apis::Core::Hashable
@ -1422,9 +1433,16 @@ module Google
end
end
# Represents an entity type.
# Entity types serve as a tool for extracting parameter values from natural
# language queries.
# Each intent parameter has a type, called the entity type, which dictates
# exactly how data from an end-user expression is extracted.
# Dialogflow provides predefined system entities that can match many common
# types of data. For example, there are system entities for matching dates,
# times, colors, email addresses, and so on. You can also create your own
# custom entities for matching custom data. For example, you could define a
# vegetable entity that can match the types of vegetables available for
# purchase with a grocery store agent.
# For more information, see the
# [Entity guide](https://cloud.google.com/dialogflow/docs/entities-overview).
class GoogleCloudDialogflowV2EntityType
include Google::Apis::Core::Hashable
@ -1533,7 +1551,20 @@ module Google
end
end
# Represents an agent environment.
# You can create multiple versions of your agent and publish them to separate
# environments.
# When you edit an agent, you are editing the draft agent. At any point, you
# can save the draft agent as an agent version, which is an immutable snapshot
# of your agent.
# When you save the draft agent, it is published to the default environment.
# When you create agent versions, you can publish them to custom environments.
# You can create a variety of custom environments for:
# - testing
# - development
# - production
# - etc.
# For more information, see the [versions and environments
# guide](https://cloud.google.com/dialogflow/docs/agents-versions).
class GoogleCloudDialogflowV2Environment
include Google::Apis::Core::Hashable
@ -1683,7 +1714,15 @@ module Google
end
end
# Represents a fulfillment.
# By default, your agent responds to a matched intent with a static response.
# As an alternative, you can provide a more dynamic response by using
# fulfillment. When you enable fulfillment for an intent, Dialogflow responds
# to that intent by calling a service that you define. For example, if an
# end-user wants to schedule a haircut on Friday, your service can check your
# database and respond to the end-user with availability information for
# Friday.
# For more information, see the [fulfillment
# guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
class GoogleCloudDialogflowV2Fulfillment
include Google::Apis::Core::Hashable
@ -1943,9 +1982,14 @@ module Google
end
end
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# An intent categorizes an end-user's intention for one conversation turn. For
# each agent, you define many intents, where your combined intents can handle a
# complete conversation. When an end-user writes or says something, referred to
# as an end-user expression or end-user input, Dialogflow matches the end-user
# input to the best intent in your agent. Matching an intent is also known as
# intent classification.
# For more information, see the [intent
# guide](https://cloud.google.com/dialogflow/docs/intents-overview).
class GoogleCloudDialogflowV2Intent
include Google::Apis::Core::Hashable
@ -3672,9 +3716,14 @@ module Google
# @return [String]
attr_accessor :fulfillment_text
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# An intent categorizes an end-user's intention for one conversation turn. For
# each agent, you define many intents, where your combined intents can handle a
# complete conversation. When an end-user writes or says something, referred to
# as an end-user expression or end-user input, Dialogflow matches the end-user
# input to the best intent in your agent. Matching an intent is also known as
# intent classification.
# For more information, see the [intent
# guide](https://cloud.google.com/dialogflow/docs/intents-overview).
# Corresponds to the JSON property `intent`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent]
attr_accessor :intent
@ -3931,11 +3980,13 @@ module Google
end
end
# Represents a session entity type.
# Extends or replaces a custom entity type at the user session level (we
# refer to the entity types defined at the agent level as "custom entity
# types").
# Note: session entity types apply to all queries, regardless of the language.
# A session represents a conversation between a Dialogflow agent and an
# end-user. You can create special entities, called session entities, during a
# session. Session entities can extend or replace custom entity types and only
# exist during the session that they were created for. All session data,
# including session entities, is stored by Dialogflow for 20 minutes.
# For more information, see the [session entity
# guide](https://cloud.google.com/dialogflow/docs/entities-session).
class GoogleCloudDialogflowV2SessionEntityType
include Google::Apis::Core::Hashable
@ -4413,6 +4464,37 @@ module Google
end
end
# Response message for [Documents.AutoApproveSmartMessagingEntries].
class GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse
include Google::Apis::Core::Hashable
# Number of smart messaging entries disabled.
# Corresponds to the JSON property `disabledCount`
# @return [Fixnum]
attr_accessor :disabled_count
# Number of smart messaging entries enabled.
# Corresponds to the JSON property `enabledCount`
# @return [Fixnum]
attr_accessor :enabled_count
# Number of smart messaging entries unreviewed.
# Corresponds to the JSON property `unreviewedCount`
# @return [Fixnum]
attr_accessor :unreviewed_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disabled_count = args[:disabled_count] if args.key?(:disabled_count)
@enabled_count = args[:enabled_count] if args.key?(:enabled_count)
@unreviewed_count = args[:unreviewed_count] if args.key?(:unreviewed_count)
end
end
# The response message for EntityTypes.BatchUpdateEntityTypes.
class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
include Google::Apis::Core::Hashable
@ -4451,7 +4533,19 @@ module Google
end
end
# Represents a context.
# Dialogflow contexts are similar to natural language context. If a person says
# to you "they are orange", you need context in order to understand what "they"
# is referring to. Similarly, for Dialogflow to handle an end-user expression
# like that, it needs to be provided with context in order to correctly match
# an intent.
# Using contexts, you can control the flow of a conversation. You can configure
# contexts for an intent by setting input and output contexts, which are
# identified by string names. When an intent is matched, any configured output
# contexts for that intent become active. While any contexts are active,
# Dialogflow is more likely to match intents that are configured with input
# contexts that correspond to the currently active contexts.
# For more information about context, see the
# [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
class GoogleCloudDialogflowV2beta1Context
include Google::Apis::Core::Hashable
@ -4509,9 +4603,16 @@ module Google
end
end
# Represents an entity type.
# Entity types serve as a tool for extracting parameter values from natural
# language queries.
# Each intent parameter has a type, called the entity type, which dictates
# exactly how data from an end-user expression is extracted.
# Dialogflow provides predefined system entities that can match many common
# types of data. For example, there are system entities for matching dates,
# times, colors, email addresses, and so on. You can also create your own
# custom entities for matching custom data. For example, you could define a
# vegetable entity that can match the types of vegetables available for
# purchase with a grocery store agent.
# For more information, see the
# [Entity guide](https://cloud.google.com/dialogflow/docs/entities-overview).
class GoogleCloudDialogflowV2beta1EntityType
include Google::Apis::Core::Hashable
@ -4678,9 +4779,14 @@ module Google
end
end
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# An intent categorizes an end-user's intention for one conversation turn. For
# each agent, you define many intents, where your combined intents can handle a
# complete conversation. When an end-user writes or says something, referred to
# as an end-user expression or end-user input, Dialogflow matches the end-user
# input to the best intent in your agent. Matching an intent is also known as
# intent classification.
# For more information, see the [intent
# guide](https://cloud.google.com/dialogflow/docs/intents-overview).
class GoogleCloudDialogflowV2beta1Intent
include Google::Apis::Core::Hashable
@ -6654,9 +6760,14 @@ module Google
# @return [String]
attr_accessor :fulfillment_text
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# An intent categorizes an end-user's intention for one conversation turn. For
# each agent, you define many intents, where your combined intents can handle a
# complete conversation. When an end-user writes or says something, referred to
# as an end-user expression or end-user input, Dialogflow matches the end-user
# input to the best intent in your agent. Matching an intent is also known as
# intent classification.
# For more information, see the [intent
# guide](https://cloud.google.com/dialogflow/docs/intents-overview).
# Corresponds to the JSON property `intent`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent]
attr_accessor :intent
@ -6843,11 +6954,13 @@ module Google
end
end
# Represents a session entity type.
# Extends or replaces a custom entity type at the user session level (we
# refer to the entity types defined at the agent level as "custom entity
# types").
# Note: session entity types apply to all queries, regardless of the language.
# A session represents a conversation between a Dialogflow agent and an
# end-user. You can create special entities, called session entities, during a
# session. Session entities can extend or replace custom entity types and only
# exist during the session that they were created for. All session data,
# including session entities, is stored by Dialogflow for 20 minutes.
# For more information, see the [session entity
# guide](https://cloud.google.com/dialogflow/docs/entities-session).
class GoogleCloudDialogflowV2beta1SessionEntityType
include Google::Apis::Core::Hashable

View File

@ -682,6 +682,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2244,6 +2250,15 @@ module Google
end
end
class GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disabled_count, as: 'disabledCount'
property :enabled_count, as: 'enabledCount'
property :unreviewed_count, as: 'unreviewedCount'
end
end
class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -926,6 +926,8 @@ module Google
# `User Id`. They can be a random number or some type of user and session
# identifiers (preferably hashed). The length of the `Session ID` and
# `User ID` must not exceed 36 characters.
# For more information, see the [API interactions
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest] google_cloud_dialogflow_v2_detect_intent_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1705,6 +1707,8 @@ module Google
# `User Id`. They can be a random number or some type of user and session
# identifiers (preferably hashed). The length of the `Session ID` and
# `User ID` must not exceed 36 characters.
# For more information, see the [API interactions
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest] google_cloud_dialogflow_v2_detect_intent_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20200706'
REVISION = '20200719'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -854,7 +854,19 @@ module Google
end
end
# Represents a context.
# Dialogflow contexts are similar to natural language context. If a person says
# to you "they are orange", you need context in order to understand what "they"
# is referring to. Similarly, for Dialogflow to handle an end-user expression
# like that, it needs to be provided with context in order to correctly match
# an intent.
# Using contexts, you can control the flow of a conversation. You can configure
# contexts for an intent by setting input and output contexts, which are
# identified by string names. When an intent is matched, any configured output
# contexts for that intent become active. While any contexts are active,
# Dialogflow is more likely to match intents that are configured with input
# contexts that correspond to the currently active contexts.
# For more information about context, see the
# [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
class GoogleCloudDialogflowV2Context
include Google::Apis::Core::Hashable
@ -912,7 +924,7 @@ module Google
end
end
# Represents a notification sent to Cloud Pub/Sub subscribers for conversation
# Represents a notification sent to Pub/Sub subscribers for conversation
# lifecycle events.
class GoogleCloudDialogflowV2ConversationEvent
include Google::Apis::Core::Hashable
@ -957,9 +969,16 @@ module Google
end
end
# Represents an entity type.
# Entity types serve as a tool for extracting parameter values from natural
# language queries.
# Each intent parameter has a type, called the entity type, which dictates
# exactly how data from an end-user expression is extracted.
# Dialogflow provides predefined system entities that can match many common
# types of data. For example, there are system entities for matching dates,
# times, colors, email addresses, and so on. You can also create your own
# custom entities for matching custom data. For example, you could define a
# vegetable entity that can match the types of vegetables available for
# purchase with a grocery store agent.
# For more information, see the
# [Entity guide](https://cloud.google.com/dialogflow/docs/entities-overview).
class GoogleCloudDialogflowV2EntityType
include Google::Apis::Core::Hashable
@ -1126,9 +1145,14 @@ module Google
end
end
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# An intent categorizes an end-user's intention for one conversation turn. For
# each agent, you define many intents, where your combined intents can handle a
# complete conversation. When an end-user writes or says something, referred to
# as an end-user expression or end-user input, Dialogflow matches the end-user
# input to the best intent in your agent. Matching an intent is also known as
# intent classification.
# For more information, see the [intent
# guide](https://cloud.google.com/dialogflow/docs/intents-overview).
class GoogleCloudDialogflowV2Intent
include Google::Apis::Core::Hashable
@ -2554,9 +2578,14 @@ module Google
# @return [String]
attr_accessor :fulfillment_text
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# An intent categorizes an end-user's intention for one conversation turn. For
# each agent, you define many intents, where your combined intents can handle a
# complete conversation. When an end-user writes or says something, referred to
# as an end-user expression or end-user input, Dialogflow matches the end-user
# input to the best intent in your agent. Matching an intent is also known as
# intent classification.
# For more information, see the [intent
# guide](https://cloud.google.com/dialogflow/docs/intents-overview).
# Corresponds to the JSON property `intent`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Intent]
attr_accessor :intent
@ -2737,11 +2766,13 @@ module Google
end
end
# Represents a session entity type.
# Extends or replaces a custom entity type at the user session level (we
# refer to the entity types defined at the agent level as "custom entity
# types").
# Note: session entity types apply to all queries, regardless of the language.
# A session represents a conversation between a Dialogflow agent and an
# end-user. You can create special entities, called session entities, during a
# session. Session entities can extend or replace custom entity types and only
# exist during the session that they were created for. All session data,
# including session entities, is stored by Dialogflow for 20 minutes.
# For more information, see the [session entity
# guide](https://cloud.google.com/dialogflow/docs/entities-session).
class GoogleCloudDialogflowV2SessionEntityType
include Google::Apis::Core::Hashable
@ -2919,7 +2950,14 @@ module Google
end
end
# Represents a conversational agent.
# A Dialogflow agent is a virtual agent that handles conversations with your
# end-users. It is a natural language understanding module that understands the
# nuances of human language. Dialogflow translates end-user text or audio
# during a conversation to structured data that your apps and services can
# understand. You design and build a Dialogflow agent to handle the types of
# conversations required for your system.
# For more information about agents, see the
# [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).
class GoogleCloudDialogflowV2beta1Agent
include Google::Apis::Core::Hashable
@ -3094,6 +3132,37 @@ module Google
end
end
# Response message for [Documents.AutoApproveSmartMessagingEntries].
class GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse
include Google::Apis::Core::Hashable
# Number of smart messaging entries disabled.
# Corresponds to the JSON property `disabledCount`
# @return [Fixnum]
attr_accessor :disabled_count
# Number of smart messaging entries enabled.
# Corresponds to the JSON property `enabledCount`
# @return [Fixnum]
attr_accessor :enabled_count
# Number of smart messaging entries unreviewed.
# Corresponds to the JSON property `unreviewedCount`
# @return [Fixnum]
attr_accessor :unreviewed_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disabled_count = args[:disabled_count] if args.key?(:disabled_count)
@enabled_count = args[:enabled_count] if args.key?(:enabled_count)
@unreviewed_count = args[:unreviewed_count] if args.key?(:unreviewed_count)
end
end
# The request message for EntityTypes.BatchCreateEntities.
class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
include Google::Apis::Core::Hashable
@ -3365,7 +3434,19 @@ module Google
end
end
# Represents a context.
# Dialogflow contexts are similar to natural language context. If a person says
# to you "they are orange", you need context in order to understand what "they"
# is referring to. Similarly, for Dialogflow to handle an end-user expression
# like that, it needs to be provided with context in order to correctly match
# an intent.
# Using contexts, you can control the flow of a conversation. You can configure
# contexts for an intent by setting input and output contexts, which are
# identified by string names. When an intent is matched, any configured output
# contexts for that intent become active. While any contexts are active,
# Dialogflow is more likely to match intents that are configured with input
# contexts that correspond to the currently active contexts.
# For more information about context, see the
# [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
class GoogleCloudDialogflowV2beta1Context
include Google::Apis::Core::Hashable
@ -3552,7 +3633,9 @@ module Google
end
end
# A document resource.
# A knowledge document to be used by a KnowledgeBase.
# For more information, see the [knowledge base
# guide](https://cloud.google.com/dialogflow/docs/how/knowledge-bases).
# Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
# only use `projects.knowledgeBases.documents`.
class GoogleCloudDialogflowV2beta1Document
@ -3681,9 +3764,16 @@ module Google
end
end
# Represents an entity type.
# Entity types serve as a tool for extracting parameter values from natural
# language queries.
# Each intent parameter has a type, called the entity type, which dictates
# exactly how data from an end-user expression is extracted.
# Dialogflow provides predefined system entities that can match many common
# types of data. For example, there are system entities for matching dates,
# times, colors, email addresses, and so on. You can also create your own
# custom entities for matching custom data. For example, you could define a
# vegetable entity that can match the types of vegetables available for
# purchase with a grocery store agent.
# For more information, see the
# [Entity guide](https://cloud.google.com/dialogflow/docs/entities-overview).
class GoogleCloudDialogflowV2beta1EntityType
include Google::Apis::Core::Hashable
@ -3792,7 +3882,20 @@ module Google
end
end
# Represents an agent environment.
# You can create multiple versions of your agent and publish them to separate
# environments.
# When you edit an agent, you are editing the draft agent. At any point, you
# can save the draft agent as an agent version, which is an immutable snapshot
# of your agent.
# When you save the draft agent, it is published to the default environment.
# When you create agent versions, you can publish them to custom environments.
# You can create a variety of custom environments for:
# - testing
# - development
# - production
# - etc.
# For more information, see the [versions and environments
# guide](https://cloud.google.com/dialogflow/docs/agents-versions).
class GoogleCloudDialogflowV2beta1Environment
include Google::Apis::Core::Hashable
@ -3945,7 +4048,15 @@ module Google
end
end
# Represents a fulfillment.
# By default, your agent responds to a matched intent with a static response.
# As an alternative, you can provide a more dynamic response by using
# fulfillment. When you enable fulfillment for an intent, Dialogflow responds
# to that intent by calling a service that you define. For example, if an
# end-user wants to schedule a haircut on Friday, your service can check your
# database and respond to the end-user with availability information for
# Friday.
# For more information, see the [fulfillment
# guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
class GoogleCloudDialogflowV2beta1Fulfillment
include Google::Apis::Core::Hashable
@ -4227,9 +4338,14 @@ module Google
end
end
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# An intent categorizes an end-user's intention for one conversation turn. For
# each agent, you define many intents, where your combined intents can handle a
# complete conversation. When an end-user writes or says something, referred to
# as an end-user expression or end-user input, Dialogflow matches the end-user
# input to the best intent in your agent. Matching an intent is also known as
# intent classification.
# For more information, see the [intent
# guide](https://cloud.google.com/dialogflow/docs/intents-overview).
class GoogleCloudDialogflowV2beta1Intent
include Google::Apis::Core::Hashable
@ -6093,7 +6209,12 @@ module Google
end
end
# Represents knowledge base resource.
# A knowledge base represents a collection of knowledge documents that you
# provide to Dialogflow. Your knowledge documents contain information that may
# be useful during conversations with end-users. Some Dialogflow features use
# knowledge bases when looking for a response to an end-user input.
# For more information, see the [knowledge base
# guide](https://cloud.google.com/dialogflow/docs/how/knowledge-bases).
# Note: The `projects.agent.knowledgeBases` resource is deprecated;
# only use `projects.knowledgeBases`.
class GoogleCloudDialogflowV2beta1KnowledgeBase
@ -6624,9 +6745,14 @@ module Google
# @return [String]
attr_accessor :fulfillment_text
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# An intent categorizes an end-user's intention for one conversation turn. For
# each agent, you define many intents, where your combined intents can handle a
# complete conversation. When an end-user writes or says something, referred to
# as an end-user expression or end-user input, Dialogflow matches the end-user
# input to the best intent in your agent. Matching an intent is also known as
# intent classification.
# For more information, see the [intent
# guide](https://cloud.google.com/dialogflow/docs/intents-overview).
# Corresponds to the JSON property `intent`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent]
attr_accessor :intent
@ -6908,11 +7034,13 @@ module Google
end
end
# Represents a session entity type.
# Extends or replaces a custom entity type at the user session level (we
# refer to the entity types defined at the agent level as "custom entity
# types").
# Note: session entity types apply to all queries, regardless of the language.
# A session represents a conversation between a Dialogflow agent and an
# end-user. You can create special entities, called session entities, during a
# session. Session entities can extend or replace custom entity types and only
# exist during the session that they were created for. All session data,
# including session entities, is stored by Dialogflow for 20 minutes.
# For more information, see the [session entity
# guide](https://cloud.google.com/dialogflow/docs/entities-session).
class GoogleCloudDialogflowV2beta1SessionEntityType
include Google::Apis::Core::Hashable

View File

@ -466,6 +466,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1943,6 +1949,15 @@ module Google
end
end
class GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disabled_count, as: 'disabledCount'
property :enabled_count, as: 'enabledCount'
property :unreviewed_count, as: 'unreviewedCount'
end
end
class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -928,6 +928,8 @@ module Google
# `User Id`. They can be a random number or some type of user and session
# identifiers (preferably hashed). The length of the `Session ID` and
# `User ID` must not exceed 36 characters.
# For more information, see the [API interactions
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2119,6 +2121,8 @@ module Google
# `User Id`. They can be a random number or some type of user and session
# identifiers (preferably hashed). The length of the `Session ID` and
# `User ID` must not exceed 36 characters.
# For more information, see the [API interactions
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3815,6 +3819,8 @@ module Google
# `User Id`. They can be a random number or some type of user and session
# identifiers (preferably hashed). The length of the `Session ID` and
# `User ID` must not exceed 36 characters.
# For more information, see the [API interactions
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -4591,6 +4597,8 @@ module Google
# `User Id`. They can be a random number or some type of user and session
# identifiers (preferably hashed). The length of the `Session ID` and
# `User ID` must not exceed 36 characters.
# For more information, see the [API interactions
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com/docs/cloud-messaging
module FcmV1
VERSION = 'V1'
REVISION = '20200622'
REVISION = '20200720'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,27 +22,27 @@ module Google
module Apis
module FcmV1
# Android specific options for messages sent through
# [FCM connection server](https://goo.gl/4GLdUl).
# Android specific options for messages sent through [FCM connection server](
# https://goo.gl/4GLdUl).
class AndroidConfig
include Google::Apis::Core::Hashable
# An identifier of a group of messages that can be collapsed, so that only
# the last message gets sent when delivery can be resumed. A maximum of 4
# different collapse keys is allowed at any given time.
# An identifier of a group of messages that can be collapsed, so that only the
# last message gets sent when delivery can be resumed. A maximum of 4 different
# collapse keys is allowed at any given time.
# Corresponds to the JSON property `collapseKey`
# @return [String]
attr_accessor :collapse_key
# Arbitrary key/value payload. If present, it will override
# google.firebase.fcm.v1.Message.data.
# Arbitrary key/value payload. If present, it will override google.firebase.fcm.
# v1.Message.data.
# Corresponds to the JSON property `data`
# @return [Hash<String,String>]
attr_accessor :data
# If set to true, messages will be allowed to be delivered to the app while
# the device is in direct boot mode. See [Support Direct Boot
# mode](https://developer.android.com/training/articles/direct-boot).
# If set to true, messages will be allowed to be delivered to the app while the
# device is in direct boot mode. See [Support Direct Boot mode](https://
# developer.android.com/training/articles/direct-boot).
# Corresponds to the JSON property `directBootOk`
# @return [Boolean]
attr_accessor :direct_boot_ok
@ -58,9 +58,8 @@ module Google
# @return [Google::Apis::FcmV1::AndroidNotification]
attr_accessor :notification
# Message priority. Can take "normal" and "high" values.
# For more information, see [Setting the priority of a
# message](https://goo.gl/GjONJv).
# Message priority. Can take "normal" and "high" values. For more information,
# see [Setting the priority of a message](https://goo.gl/GjONJv).
# Corresponds to the JSON property `priority`
# @return [String]
attr_accessor :priority
@ -71,17 +70,16 @@ module Google
# @return [String]
attr_accessor :restricted_package_name
# How long (in seconds) the message should be kept in FCM storage if the
# device is offline. The maximum time to live supported is 4 weeks, and the
# default value is 4 weeks if not set. Set it to 0 if want to send the
# message immediately.
# In JSON format, the Duration type is encoded as a string rather than an
# object, where the string ends in the suffix "s" (indicating seconds) and
# is preceded by the number of seconds, with nanoseconds expressed as
# How long (in seconds) the message should be kept in FCM storage if the device
# is offline. The maximum time to live supported is 4 weeks, and the default
# value is 4 weeks if not set. Set it to 0 if want to send the message
# immediately. In JSON format, the Duration type is encoded as a string rather
# than an object, where the string ends in the suffix "s" (indicating seconds)
# and is preceded by the number of seconds, with nanoseconds expressed as
# fractional seconds. For example, 3 seconds with 0 nanoseconds should be
# encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
# be expressed in JSON format as "3.000000001s". The ttl will be rounded down
# to the nearest second.
# encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should be
# expressed in JSON format as "3.000000001s". The ttl will be rounded down to
# the nearest second.
# Corresponds to the JSON property `ttl`
# @return [String]
attr_accessor :ttl
@ -126,42 +124,40 @@ module Google
class AndroidNotification
include Google::Apis::Core::Hashable
# The notification's body text. If present, it will override
# google.firebase.fcm.v1.Notification.body.
# The notification's body text. If present, it will override google.firebase.fcm.
# v1.Notification.body.
# Corresponds to the JSON property `body`
# @return [String]
attr_accessor :body
# Variable string values to be used in place of the format specifiers in
# body_loc_key to use to localize the body text to the user's current
# localization.
# See [Formatting and Styling](https://goo.gl/MalYE3) for more information.
# localization. See [Formatting and Styling](https://goo.gl/MalYE3) for more
# information.
# Corresponds to the JSON property `bodyLocArgs`
# @return [Array<String>]
attr_accessor :body_loc_args
# The key to the body string in the app's string resources to use to localize
# the body text to the user's current localization.
# See [String Resources](https://goo.gl/NdFZGI) for more information.
# the body text to the user's current localization. See [String Resources](https:
# //goo.gl/NdFZGI) for more information.
# Corresponds to the JSON property `bodyLocKey`
# @return [String]
attr_accessor :body_loc_key
# The [notification's channel
# id](https://developer.android.com/guide/topics/ui/notifiers/notifications#
# ManageChannels)
# (new in Android O). The app must create a channel with this channel ID
# before any notification with this channel ID is received. If you don't send
# this channel ID in the request, or if the channel ID provided has not yet
# been created by the app, FCM uses the channel ID specified in the app
# manifest.
# The [notification's channel id](https://developer.android.com/guide/topics/ui/
# notifiers/notifications#ManageChannels) (new in Android O). The app must
# create a channel with this channel ID before any notification with this
# channel ID is received. If you don't send this channel ID in the request, or
# if the channel ID provided has not yet been created by the app, FCM uses the
# channel ID specified in the app manifest.
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# The action associated with a user click on the notification.
# If specified, an activity with a matching intent filter is launched when
# a user clicks on the notification.
# The action associated with a user click on the notification. If specified, an
# activity with a matching intent filter is launched when a user clicks on the
# notification.
# Corresponds to the JSON property `clickAction`
# @return [String]
attr_accessor :click_action
@ -171,58 +167,52 @@ module Google
# @return [String]
attr_accessor :color
# If set to true, use the Android framework's default LED light settings for
# the notification. Default values are specified in
# [config.xml](https://android.googlesource.com/platform/frameworks/base/+/
# master/core/res/res/values/config.xml).
# If `default_light_settings` is set to true and `light_settings` is also
# set, the user-specified `light_settings` is used instead of the
# default value.
# If set to true, use the Android framework's default LED light settings for the
# notification. Default values are specified in [config.xml](https://android.
# googlesource.com/platform/frameworks/base/+/master/core/res/res/values/config.
# xml). If `default_light_settings` is set to true and `light_settings` is also
# set, the user-specified `light_settings` is used instead of the default value.
# Corresponds to the JSON property `defaultLightSettings`
# @return [Boolean]
attr_accessor :default_light_settings
alias_method :default_light_settings?, :default_light_settings
# If set to true, use the Android framework's default sound for the
# notification. Default values are specified in
# [config.xml](https://android.googlesource.com/platform/frameworks/base/+/
# master/core/res/res/values/config.xml).
# If set to true, use the Android framework's default sound for the notification.
# Default values are specified in [config.xml](https://android.googlesource.com/
# platform/frameworks/base/+/master/core/res/res/values/config.xml).
# Corresponds to the JSON property `defaultSound`
# @return [Boolean]
attr_accessor :default_sound
alias_method :default_sound?, :default_sound
# If set to true, use the Android framework's default vibrate pattern for the
# notification. Default values are specified in
# [config.xml](https://android.googlesource.com/platform/frameworks/base/+/
# master/core/res/res/values/config.xml).
# If `default_vibrate_timings` is set to true and `vibrate_timings` is also
# set, the default value is used instead of the user-specified
# `vibrate_timings`.
# notification. Default values are specified in [config.xml](https://android.
# googlesource.com/platform/frameworks/base/+/master/core/res/res/values/config.
# xml). If `default_vibrate_timings` is set to true and `vibrate_timings` is
# also set, the default value is used instead of the user-specified `
# vibrate_timings`.
# Corresponds to the JSON property `defaultVibrateTimings`
# @return [Boolean]
attr_accessor :default_vibrate_timings
alias_method :default_vibrate_timings?, :default_vibrate_timings
# Set the time that the event in the notification occurred. Notifications in
# the panel are sorted by this time. A point in time is represented using
# [protobuf.Timestamp](https://developers.google.com/protocol-buffers/docs/
# reference/java/com/google/protobuf/Timestamp).
# Set the time that the event in the notification occurred. Notifications in the
# panel are sorted by this time. A point in time is represented using [protobuf.
# Timestamp](https://developers.google.com/protocol-buffers/docs/reference/java/
# com/google/protobuf/Timestamp).
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# The notification's icon.
# Sets the notification icon to myicon for drawable resource myicon.
# If you don't send this key in the request, FCM displays the launcher icon
# specified in your app manifest.
# The notification's icon. Sets the notification icon to myicon for drawable
# resource myicon. If you don't send this key in the request, FCM displays the
# launcher icon specified in your app manifest.
# Corresponds to the JSON property `icon`
# @return [String]
attr_accessor :icon
# Contains the URL of an image that is going to be displayed in a
# notification. If present, it will override
# google.firebase.fcm.v1.Notification.image.
# Contains the URL of an image that is going to be displayed in a notification.
# If present, it will override google.firebase.fcm.v1.Notification.image.
# Corresponds to the JSON property `image`
# @return [String]
attr_accessor :image
@ -232,114 +222,107 @@ module Google
# @return [Google::Apis::FcmV1::LightSettings]
attr_accessor :light_settings
# Set whether or not this notification is relevant only to the current
# device. Some notifications can be bridged to other devices for remote
# display, such as a Wear OS watch. This hint can be set to recommend this
# notification not be bridged. See [Wear OS
# guides](https://developer.android.com/training/wearables/notifications/bridger#
# existing-method-of-preventing-bridging)
# Set whether or not this notification is relevant only to the current device.
# Some notifications can be bridged to other devices for remote display, such as
# a Wear OS watch. This hint can be set to recommend this notification not be
# bridged. See [Wear OS guides](https://developer.android.com/training/wearables/
# notifications/bridger#existing-method-of-preventing-bridging)
# Corresponds to the JSON property `localOnly`
# @return [Boolean]
attr_accessor :local_only
alias_method :local_only?, :local_only
# Sets the number of items this notification represents. May be displayed as
# a badge count for launchers that support badging.See [Notification
# Badge](https://developer.android.com/training/notify-user/badges).
# For example, this might be useful if you're using just one notification to
# represent multiple new messages but you want the count here to represent
# the number of total new messages.
# If zero or unspecified, systems that support badging use the default, which
# is to increment a number displayed on the long-press menu each time a new
# notification arrives.
# Sets the number of items this notification represents. May be displayed as a
# badge count for launchers that support badging.See [Notification Badge](https:/
# /developer.android.com/training/notify-user/badges). For example, this might
# be useful if you're using just one notification to represent multiple new
# messages but you want the count here to represent the number of total new
# messages. If zero or unspecified, systems that support badging use the default,
# which is to increment a number displayed on the long-press menu each time a
# new notification arrives.
# Corresponds to the JSON property `notificationCount`
# @return [Fixnum]
attr_accessor :notification_count
# Set the relative priority for this notification. Priority is an indication
# of how much of the user's attention should be consumed by this
# notification. Low-priority notifications may be hidden from the user in
# certain situations, while the user might be interrupted for a
# higher-priority notification. The effect of setting the same priorities may
# differ slightly on different platforms. Note this priority differs from
# `AndroidMessagePriority`. This priority is processed by the client after
# the message has been delivered, whereas
# [AndroidMessagePriority](https://firebase.google.com/docs/reference/fcm/rest/
# v1/projects.messages#androidmessagepriority)
# is an FCM concept that controls when the message is delivered.
# Set the relative priority for this notification. Priority is an indication of
# how much of the user's attention should be consumed by this notification. Low-
# priority notifications may be hidden from the user in certain situations,
# while the user might be interrupted for a higher-priority notification. The
# effect of setting the same priorities may differ slightly on different
# platforms. Note this priority differs from `AndroidMessagePriority`. This
# priority is processed by the client after the message has been delivered,
# whereas [AndroidMessagePriority](https://firebase.google.com/docs/reference/
# fcm/rest/v1/projects.messages#androidmessagepriority) is an FCM concept that
# controls when the message is delivered.
# Corresponds to the JSON property `notificationPriority`
# @return [String]
attr_accessor :notification_priority
# The sound to play when the device receives the notification.
# Supports "default" or the filename of a sound resource bundled in the app.
# Sound files must reside in /res/raw/.
# The sound to play when the device receives the notification. Supports "default"
# or the filename of a sound resource bundled in the app. Sound files must
# reside in /res/raw/.
# Corresponds to the JSON property `sound`
# @return [String]
attr_accessor :sound
# When set to false or unset, the notification is automatically
# dismissed when the user clicks it in the panel. When set to true, the
# notification persists even when the user clicks it.
# When set to false or unset, the notification is automatically dismissed when
# the user clicks it in the panel. When set to true, the notification persists
# even when the user clicks it.
# Corresponds to the JSON property `sticky`
# @return [Boolean]
attr_accessor :sticky
alias_method :sticky?, :sticky
# Identifier used to replace existing notifications in the notification
# drawer.
# If not specified, each request creates a new notification.
# If specified and a notification with the same tag is already being shown,
# the new notification replaces the existing one in the notification drawer.
# Identifier used to replace existing notifications in the notification drawer.
# If not specified, each request creates a new notification. If specified and a
# notification with the same tag is already being shown, the new notification
# replaces the existing one in the notification drawer.
# Corresponds to the JSON property `tag`
# @return [String]
attr_accessor :tag
# Sets the "ticker" text, which is sent to accessibility services.
# Prior to API level 21 (`Lollipop`), sets the text that is displayed in the
# status bar when the notification first arrives.
# Sets the "ticker" text, which is sent to accessibility services. Prior to API
# level 21 (`Lollipop`), sets the text that is displayed in the status bar when
# the notification first arrives.
# Corresponds to the JSON property `ticker`
# @return [String]
attr_accessor :ticker
# The notification's title. If present, it will override
# google.firebase.fcm.v1.Notification.title.
# The notification's title. If present, it will override google.firebase.fcm.v1.
# Notification.title.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# Variable string values to be used in place of the format specifiers in
# title_loc_key to use to localize the title text to the user's current
# localization.
# See [Formatting and Styling](https://goo.gl/MalYE3) for more information.
# localization. See [Formatting and Styling](https://goo.gl/MalYE3) for more
# information.
# Corresponds to the JSON property `titleLocArgs`
# @return [Array<String>]
attr_accessor :title_loc_args
# The key to the title string in the app's string resources to use to
# localize the title text to the user's current localization.
# See [String Resources](https://goo.gl/NdFZGI) for more information.
# The key to the title string in the app's string resources to use to localize
# the title text to the user's current localization. See [String Resources](
# https://goo.gl/NdFZGI) for more information.
# Corresponds to the JSON property `titleLocKey`
# @return [String]
attr_accessor :title_loc_key
# Set the vibration pattern to use. Pass in an array of
# [protobuf.Duration](https://developers.google.com/protocol-buffers/docs/
# reference/google.protobuf#google.protobuf.Duration)
# to turn on or off the vibrator. The first value indicates the `Duration` to
# wait before turning the vibrator on. The next value indicates the
# `Duration` to keep the vibrator on. Subsequent values alternate between
# `Duration` to turn the vibrator off and to turn the vibrator on.
# If `vibrate_timings` is set and `default_vibrate_timings` is set to `true`,
# Set the vibration pattern to use. Pass in an array of [protobuf.Duration](
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
# google.protobuf.Duration) to turn on or off the vibrator. The first value
# indicates the `Duration` to wait before turning the vibrator on. The next
# value indicates the `Duration` to keep the vibrator on. Subsequent values
# alternate between `Duration` to turn the vibrator off and to turn the vibrator
# on. If `vibrate_timings` is set and `default_vibrate_timings` is set to `true`,
# the default value is used instead of the user-specified `vibrate_timings`.
# Corresponds to the JSON property `vibrateTimings`
# @return [Array<String>]
attr_accessor :vibrate_timings
# Set the
# [Notification.visibility](https://developer.android.com/reference/android/app/
# Notification.html#visibility)
# of the notification.
# Set the [Notification.visibility](https://developer.android.com/reference/
# android/app/Notification.html#visibility) of the notification.
# Corresponds to the JSON property `visibility`
# @return [String]
attr_accessor :visibility
@ -387,21 +370,20 @@ module Google
# @return [Google::Apis::FcmV1::ApnsFcmOptions]
attr_accessor :fcm_options
# HTTP request headers defined in Apple Push Notification Service. Refer to
# [APNs request
# headers](https://developer.apple.com/documentation/usernotifications/
# setting_up_a_remote_notification_server/sending_notification_requests_to_apns)
# for supported headers, e.g. "apns-priority": "10".
# HTTP request headers defined in Apple Push Notification Service. Refer to [
# APNs request headers](https://developer.apple.com/documentation/
# usernotifications/setting_up_a_remote_notification_server/
# sending_notification_requests_to_apns) for supported headers, e.g. "apns-
# priority": "10".
# Corresponds to the JSON property `headers`
# @return [Hash<String,String>]
attr_accessor :headers
# APNs payload as a JSON object, including both `aps` dictionary and custom
# payload. See [Payload Key
# Reference](https://developer.apple.com/documentation/usernotifications/
# setting_up_a_remote_notification_server/generating_a_remote_notification).
# If present, it overrides google.firebase.fcm.v1.Notification.title
# and google.firebase.fcm.v1.Notification.body.
# payload. See [Payload Key Reference](https://developer.apple.com/documentation/
# usernotifications/setting_up_a_remote_notification_server/
# generating_a_remote_notification). If present, it overrides google.firebase.
# fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body.
# Corresponds to the JSON property `payload`
# @return [Hash<String,Object>]
attr_accessor :payload
@ -427,9 +409,8 @@ module Google
# @return [String]
attr_accessor :analytics_label
# Contains the URL of an image that is going to be displayed in a
# notification. If present, it will override
# google.firebase.fcm.v1.Notification.image.
# Contains the URL of an image that is going to be displayed in a notification.
# If present, it will override google.firebase.fcm.v1.Notification.image.
# Corresponds to the JSON property `image`
# @return [String]
attr_accessor :image
@ -447,122 +428,61 @@ module Google
# 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.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# 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('');
# `;
# // ...
# 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. Note: when color equality
# needs to be decided, implementations, unless documented otherwise, will treat
# two colors to be equal if all their red, green, blue and alpha values each
# differ by at most 1e-5. 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(''); `; // ...
class Color
include Google::Apis::Core::Hashable
# The fraction of this color that should be applied to the pixel. That is,
# the final pixel color is defined by the equation:
# pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
# This means that a value of 1.0 corresponds to a solid color, whereas
# a value of 0.0 corresponds to a completely transparent color. This
# uses a wrapper message rather than a simple float scalar so that it is
# possible to distinguish between a default value and the value being unset.
# If omitted, this color object is to be rendered as a solid color
# (as if the alpha value had been explicitly given with a value of 1.0).
# The fraction of this color that should be applied to the pixel. That is, the
# final pixel color is defined by the equation: pixel color = alpha * (this
# color) + (1.0 - alpha) * (background color) This means that a value of 1.0
# corresponds to a solid color, whereas a value of 0.0 corresponds to a
# completely transparent color. This uses a wrapper message rather than a simple
# float scalar so that it is possible to distinguish between a default value and
# the value being unset. If omitted, this color object is to be rendered as a
# solid color (as if the alpha value had been explicitly given with a value of 1.
# 0).
# Corresponds to the JSON property `alpha`
# @return [Float]
attr_accessor :alpha
@ -620,126 +540,63 @@ module Google
# 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.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# 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('');
# `;
# // ...
# 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. Note: when color equality
# needs to be decided, implementations, unless documented otherwise, will treat
# two colors to be equal if all their red, green, blue and alpha values each
# differ by at most 1e-5. 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 `color`
# @return [Google::Apis::FcmV1::Color]
attr_accessor :color
# Required. Along with `light_on_duration `, define the blink rate of LED
# flashes. Resolution defined by
# [proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/
# google.protobuf#google.protobuf.Duration)
# flashes. Resolution defined by [proto.Duration](https://developers.google.com/
# protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)
# Corresponds to the JSON property `lightOffDuration`
# @return [String]
attr_accessor :light_off_duration
# Required. Along with `light_off_duration`, define the blink rate of LED
# flashes. Resolution defined by
# [proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/
# google.protobuf#google.protobuf.Duration)
# flashes. Resolution defined by [proto.Duration](https://developers.google.com/
# protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)
# Corresponds to the JSON property `lightOnDuration`
# @return [String]
attr_accessor :light_on_duration
@ -760,8 +617,8 @@ module Google
class Message
include Google::Apis::Core::Hashable
# Android specific options for messages sent through
# [FCM connection server](https://goo.gl/4GLdUl).
# Android specific options for messages sent through [FCM connection server](
# https://goo.gl/4GLdUl).
# Corresponds to the JSON property `android`
# @return [Google::Apis::FcmV1::AndroidConfig]
attr_accessor :android
@ -771,14 +628,13 @@ module Google
# @return [Google::Apis::FcmV1::ApnsConfig]
attr_accessor :apns
# Condition to send a message to,
# e.g. "'foo' in topics && 'bar' in topics".
# Condition to send a message to, e.g. "'foo' in topics && 'bar' in topics".
# Corresponds to the JSON property `condition`
# @return [String]
attr_accessor :condition
# Input only. Arbitrary key/value payload. The key should not be a reserved
# word ("from", "message_type", or any word starting with "google" or "gcm").
# Input only. Arbitrary key/value payload. The key should not be a reserved word
# ("from", "message_type", or any word starting with "google" or "gcm").
# Corresponds to the JSON property `data`
# @return [Hash<String,String>]
attr_accessor :data
@ -788,8 +644,8 @@ module Google
# @return [Google::Apis::FcmV1::FcmOptions]
attr_accessor :fcm_options
# Output Only. The identifier of the message sent, in the format of
# `projects/*/messages/`message_id``.
# Output Only. The identifier of the message sent, in the format of `projects/*/
# messages/`message_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -804,8 +660,8 @@ module Google
# @return [String]
attr_accessor :token
# Topic name to send a message to, e.g. "weather".
# Note: "/topics/" prefix should not be provided.
# Topic name to send a message to, e.g. "weather". Note: "/topics/" prefix
# should not be provided.
# Corresponds to the JSON property `topic`
# @return [String]
attr_accessor :topic
@ -843,14 +699,12 @@ module Google
# @return [String]
attr_accessor :body
# Contains the URL of an image that is going to be downloaded on the device
# and displayed in a notification.
# JPEG, PNG, BMP have full support across platforms. Animated GIF and video
# only work on iOS. WebP and HEIF have varying levels of support across
# platforms and platform versions.
# Android has 1MB image size limit.
# Quota usage and implications/costs for hosting image on Firebase Storage:
# https://firebase.google.com/pricing
# Contains the URL of an image that is going to be downloaded on the device and
# displayed in a notification. JPEG, PNG, BMP have full support across platforms.
# Animated GIF and video only work on iOS. WebP and HEIF have varying levels of
# support across platforms and platform versions. Android has 1MB image size
# limit. Quota usage and implications/costs for hosting image on Firebase
# Storage: https://firebase.google.com/pricing
# Corresponds to the JSON property `image`
# @return [String]
attr_accessor :image
@ -902,8 +756,8 @@ module Google
class WebpushConfig
include Google::Apis::Core::Hashable
# Arbitrary key/value payload. If present, it will override
# google.firebase.fcm.v1.Message.data.
# Arbitrary key/value payload. If present, it will override google.firebase.fcm.
# v1.Message.data.
# Corresponds to the JSON property `data`
# @return [Hash<String,String>]
attr_accessor :data
@ -913,19 +767,17 @@ module Google
# @return [Google::Apis::FcmV1::WebpushFcmOptions]
attr_accessor :fcm_options
# HTTP headers defined in webpush protocol. Refer to
# [Webpush protocol](https://tools.ietf.org/html/rfc8030#section-5) for
# supported headers, e.g. "TTL": "15".
# HTTP headers defined in webpush protocol. Refer to [Webpush protocol](https://
# tools.ietf.org/html/rfc8030#section-5) for supported headers, e.g. "TTL": "15".
# Corresponds to the JSON property `headers`
# @return [Hash<String,String>]
attr_accessor :headers
# Web Notification options as a JSON object. Supports Notification instance
# properties as defined in [Web Notification
# API](https://developer.mozilla.org/en-US/docs/Web/API/Notification). If
# present, "title" and "body" fields override
# [google.firebase.fcm.v1.Notification.title] and
# [google.firebase.fcm.v1.Notification.body].
# properties as defined in [Web Notification API](https://developer.mozilla.org/
# en-US/docs/Web/API/Notification). If present, "title" and "body" fields
# override [google.firebase.fcm.v1.Notification.title] and [google.firebase.fcm.
# v1.Notification.body].
# Corresponds to the JSON property `notification`
# @return [Hash<String,Object>]
attr_accessor :notification
@ -952,8 +804,8 @@ module Google
# @return [String]
attr_accessor :analytics_label
# The link to open when the user clicks on the notification.
# For all URL values, HTTPS is required.
# The link to open when the user clicks on the notification. For all URL values,
# HTTPS is required.
# Corresponds to the JSON property `link`
# @return [String]
attr_accessor :link

View File

@ -48,13 +48,12 @@ module Google
@batch_path = 'batch'
end
# Send a message to specified target (a registration token, topic
# or condition).
# Send a message to specified target (a registration token, topic or condition).
# @param [String] parent
# Required. It contains the Firebase project id (i.e. the unique identifier
# for your Firebase project), in the format of `projects/`project_id``.
# For legacy support, the numeric project number with no padding is also
# supported in the format of `projects/`project_number``.
# Required. It contains the Firebase project id (i.e. the unique identifier for
# your Firebase project), in the format of `projects/`project_id``. For legacy
# support, the numeric project number with no padding is also supported in the
# format of `projects/`project_number``.
# @param [Google::Apis::FcmV1::SendMessageRequest] send_message_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com
module FirebaseV1beta1
VERSION = 'V1beta1'
REVISION = '20200616'
REVISION = '20200720'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1106,16 +1106,13 @@ module Google
# with an encoded message of that type. Its use is similar to
# MessageSet, except it represents a single (type, encoded message)
# instead of a set.
# To fill for known protocol type:
# MyProtocolMsg proto;
# To embed "proto" inside "typed_msg":
# MyProtoMessage proto;
# TypedMessage typed_msg;
# typed_msg.set_type_id(MyProtocolMsg::MESSAGE_TYPE_ID);
# proto.AppendToCord(typed_msg.mutable_message());
# To fill for unknown protocol type:
# ProtocolMessage proto;
# TypedMessage typed_msg;
# typed_msg.set_type_id(proto.GetMapper()->type_id());
# typed_msg.set_type_id(proto2::bridge::GetTypeId(proto));
# proto.AppendToCord(typed_msg.mutable_message());
# Error handling is omitted from the sample code above. GetTypeId() will return
# 0 for messages that don't have a TypeId specified.
# Corresponds to the JSON property `payload`
# @return [Google::Apis::FirebaseV1beta1::TypedMessage]
attr_accessor :payload
@ -1195,16 +1192,13 @@ module Google
# with an encoded message of that type. Its use is similar to
# MessageSet, except it represents a single (type, encoded message)
# instead of a set.
# To fill for known protocol type:
# MyProtocolMsg proto;
# To embed "proto" inside "typed_msg":
# MyProtoMessage proto;
# TypedMessage typed_msg;
# typed_msg.set_type_id(MyProtocolMsg::MESSAGE_TYPE_ID);
# proto.AppendToCord(typed_msg.mutable_message());
# To fill for unknown protocol type:
# ProtocolMessage proto;
# TypedMessage typed_msg;
# typed_msg.set_type_id(proto.GetMapper()->type_id());
# typed_msg.set_type_id(proto2::bridge::GetTypeId(proto));
# proto.AppendToCord(typed_msg.mutable_message());
# Error handling is omitted from the sample code above. GetTypeId() will return
# 0 for messages that don't have a TypeId specified.
class TypedMessage
include Google::Apis::Core::Hashable

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20200706'
REVISION = '20200720'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -887,6 +887,63 @@ module Google
end
end
# A single device IP block
class DeviceIpBlock
include Google::Apis::Core::Hashable
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `addedDate`
# @return [Google::Apis::TestingV1::Date]
attr_accessor :added_date
# An IP address block in CIDR notation eg: 34.68.194.64/29
# Corresponds to the JSON property `block`
# @return [String]
attr_accessor :block
# Whether this block is used by physical or virtual devices
# Corresponds to the JSON property `form`
# @return [String]
attr_accessor :form
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@added_date = args[:added_date] if args.key?(:added_date)
@block = args[:block] if args.key?(:block)
@form = args[:form] if args.key?(:form)
end
end
# List of IP blocks used by the Firebase Test Lab
class DeviceIpBlockCatalog
include Google::Apis::Core::Hashable
# The device IP blocks used by Firebase Test Lab
# Corresponds to the JSON property `ipBlocks`
# @return [Array<Google::Apis::TestingV1::DeviceIpBlock>]
attr_accessor :ip_blocks
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_blocks = args[:ip_blocks] if args.key?(:ip_blocks)
end
end
# Data about the relative number of devices running a
# given configuration of the Android platform.
class Distribution
@ -1980,6 +2037,11 @@ module Google
# @return [Google::Apis::TestingV1::AndroidDeviceCatalog]
attr_accessor :android_device_catalog
# List of IP blocks used by the Firebase Test Lab
# Corresponds to the JSON property `deviceIpBlockCatalog`
# @return [Google::Apis::TestingV1::DeviceIpBlockCatalog]
attr_accessor :device_ip_block_catalog
# The currently supported iOS devices.
# Corresponds to the JSON property `iosDeviceCatalog`
# @return [Google::Apis::TestingV1::IosDeviceCatalog]
@ -2002,6 +2064,7 @@ module Google
# Update properties of this object
def update!(**args)
@android_device_catalog = args[:android_device_catalog] if args.key?(:android_device_catalog)
@device_ip_block_catalog = args[:device_ip_block_catalog] if args.key?(:device_ip_block_catalog)
@ios_device_catalog = args[:ios_device_catalog] if args.key?(:ios_device_catalog)
@network_configuration_catalog = args[:network_configuration_catalog] if args.key?(:network_configuration_catalog)
@software_catalog = args[:software_catalog] if args.key?(:software_catalog)

View File

@ -142,6 +142,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DeviceIpBlock
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceIpBlockCatalog
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Distribution
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -651,6 +663,24 @@ module Google
end
end
class DeviceIpBlock
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :added_date, as: 'addedDate', class: Google::Apis::TestingV1::Date, decorator: Google::Apis::TestingV1::Date::Representation
property :block, as: 'block'
property :form, as: 'form'
end
end
class DeviceIpBlockCatalog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ip_blocks, as: 'ipBlocks', class: Google::Apis::TestingV1::DeviceIpBlock, decorator: Google::Apis::TestingV1::DeviceIpBlock::Representation
end
end
class Distribution
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -983,6 +1013,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :android_device_catalog, as: 'androidDeviceCatalog', class: Google::Apis::TestingV1::AndroidDeviceCatalog, decorator: Google::Apis::TestingV1::AndroidDeviceCatalog::Representation
property :device_ip_block_catalog, as: 'deviceIpBlockCatalog', class: Google::Apis::TestingV1::DeviceIpBlockCatalog, decorator: Google::Apis::TestingV1::DeviceIpBlockCatalog::Representation
property :ios_device_catalog, as: 'iosDeviceCatalog', class: Google::Apis::TestingV1::IosDeviceCatalog, decorator: Google::Apis::TestingV1::IosDeviceCatalog::Representation
property :network_configuration_catalog, as: 'networkConfigurationCatalog', class: Google::Apis::TestingV1::NetworkConfigurationCatalog, decorator: Google::Apis::TestingV1::NetworkConfigurationCatalog::Representation