diff --git a/api_names_out.yaml b/api_names_out.yaml index da2076000..0392fb479 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 diff --git a/generated/google/apis/apigee_v1.rb b/generated/google/apis/apigee_v1.rb index 6fc13166f..e22cc3308 100644 --- a/generated/google/apis/apigee_v1.rb +++ b/generated/google/apis/apigee_v1.rb @@ -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' diff --git a/generated/google/apis/apigee_v1/classes.rb b/generated/google/apis/apigee_v1/classes.rb index cb55dc2bd..3adf876f2 100644 --- a/generated/google/apis/apigee_v1/classes.rb +++ b/generated/google/apis/apigee_v1/classes.rb @@ -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] @@ -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 diff --git a/generated/google/apis/apigee_v1/representations.rb b/generated/google/apis/apigee_v1/representations.rb index aa6b7b611..46584b7a9 100644 --- a/generated/google/apis/apigee_v1/representations.rb +++ b/generated/google/apis/apigee_v1/representations.rb @@ -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 diff --git a/generated/google/apis/apigee_v1/service.rb b/generated/google/apis/apigee_v1/service.rb index c41d703ae..b7c48eeb9 100644 --- a/generated/google/apis/apigee_v1/service.rb +++ b/generated/google/apis/apigee_v1/service.rb @@ -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. diff --git a/generated/google/apis/books_v1.rb b/generated/google/apis/books_v1.rb index fdc747734..1d1e3e115 100644 --- a/generated/google/apis/books_v1.rb +++ b/generated/google/apis/books_v1.rb @@ -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' diff --git a/generated/google/apis/books_v1/classes.rb b/generated/google/apis/books_v1/classes.rb index 44826cf10..9338fbe5a 100644 --- a/generated/google/apis/books_v1/classes.rb +++ b/generated/google/apis/books_v1/classes.rb @@ -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] 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] 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] 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] 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 diff --git a/generated/google/apis/books_v1/service.rb b/generated/google/apis/books_v1/service.rb index c28faf1f8..d8147396c 100644 --- a/generated/google/apis/books_v1/service.rb +++ b/generated/google/apis/books_v1/service.rb @@ -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] 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] 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] 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 diff --git a/generated/google/apis/chromeuxreport_v1.rb b/generated/google/apis/chromeuxreport_v1.rb index 37a139aa7..f36794b77 100644 --- a/generated/google/apis/chromeuxreport_v1.rb +++ b/generated/google/apis/chromeuxreport_v1.rb @@ -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 diff --git a/generated/google/apis/chromeuxreport_v1/classes.rb b/generated/google/apis/chromeuxreport_v1/classes.rb index 8d08a6506..15a82d65a 100644 --- a/generated/google/apis/chromeuxreport_v1/classes.rb +++ b/generated/google/apis/chromeuxreport_v1/classes.rb @@ -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) diff --git a/generated/google/apis/chromeuxreport_v1/representations.rb b/generated/google/apis/chromeuxreport_v1/representations.rb index 39c57fe18..f923731fb 100644 --- a/generated/google/apis/chromeuxreport_v1/representations.rb +++ b/generated/google/apis/chromeuxreport_v1/representations.rb @@ -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' diff --git a/generated/google/apis/cloudasset_v1p5beta1.rb b/generated/google/apis/cloudasset_v1p5beta1.rb new file mode 100644 index 000000000..b9d915709 --- /dev/null +++ b/generated/google/apis/cloudasset_v1p5beta1.rb @@ -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 diff --git a/generated/google/apis/cloudasset_v1p5beta1/classes.rb b/generated/google/apis/cloudasset_v1p5beta1/classes.rb new file mode 100644 index 000000000..f0f366397 --- /dev/null +++ b/generated/google/apis/cloudasset_v1p5beta1/classes.rb @@ -0,0 +1,1537 @@ +# 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 + + # An asset in Google Cloud. An asset can be any resource in the Google Cloud + # [resource + # hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform- + # resource-hierarchy), + # a resource outside the Google Cloud resource hierarchy (such as Google + # Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). + # See [Supported asset + # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + # for more information. + class Asset + include Google::Apis::Core::Hashable + + # An `AccessLevel` is a label that can be applied to requests to Google Cloud + # services, along with a list of requirements necessary for the label to be + # applied. + # Corresponds to the JSON property `accessLevel` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessLevel] + attr_accessor :access_level + + # `AccessPolicy` is a container for `AccessLevels` (which define the necessary + # attributes to use Google Cloud services) and `ServicePerimeters` (which + # define regions of services able to freely pass data within a perimeter). An + # access policy is globally visible within an organization, and the + # restrictions it specifies apply to all projects within an organization. + # Corresponds to the JSON property `accessPolicy` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1AccessPolicy] + attr_accessor :access_policy + + # The ancestry path of an asset in Google Cloud [resource + # hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform- + # resource-hierarchy), + # represented as a list of relative resource names. An ancestry path starts + # with the closest ancestor in the hierarchy and ends at root. If the asset + # is a project, folder, or organization, the ancestry path starts from the + # asset itself. + # Example: `["projects/123456789", "folders/5432", "organizations/1234"]` + # Corresponds to the JSON property `ancestors` + # @return [Array] + attr_accessor :ancestors + + # The type of the asset. Example: `compute.googleapis.com/Disk` + # See [Supported asset + # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + # for more information. + # Corresponds to the JSON property `assetType` + # @return [String] + attr_accessor :asset_type + + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). + # **JSON example:** + # ` + # "bindings": [ + # ` + # "role": "roles/resourcemanager.organizationAdmin", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/resourcemanager.organizationViewer", + # "members": [ + # "user:eve@example.com" + # ], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", + # ` + # ` + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 + # ` + # **YAML example:** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin + # - members: + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 + # For a description of IAM and its features, see the + # [IAM documentation](https://cloud.google.com/iam/docs/). + # Corresponds to the JSON property `iamPolicy` + # @return [Google::Apis::CloudassetV1p5beta1::Policy] + attr_accessor :iam_policy + + # The full name of the asset. Example: + # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ + # instance1` + # See [Resource + # names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + # for more information. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A representation of an [organization + # policy](https://cloud.google.com/resource-manager/docs/organization-policy/ + # overview#organization_policy). + # There can be more than one organization policy with different constraints + # set on a given resource. + # Corresponds to the JSON property `orgPolicy` + # @return [Array] + attr_accessor :org_policy + + # A representation of a Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::CloudassetV1p5beta1::Resource] + attr_accessor :resource + + # `ServicePerimeter` describes a set of Google Cloud resources which can freely + # import and export data amongst themselves, but not export outside of the + # `ServicePerimeter`. If a request with a source within this `ServicePerimeter` + # has a target outside of the `ServicePerimeter`, the request will be blocked. + # Otherwise the request is allowed. There are two types of Service Perimeter - + # Regular and Bridge. Regular Service Perimeters cannot overlap, a single + # Google Cloud project can only belong to a single regular Service Perimeter. + # Service Perimeter Bridges can contain only Google Cloud projects as members, + # a single Google Cloud project may belong to multiple Service Perimeter + # Bridges. + # Corresponds to the JSON property `servicePerimeter` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter] + attr_accessor :service_perimeter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @access_level = args[:access_level] if args.key?(:access_level) + @access_policy = args[:access_policy] if args.key?(:access_policy) + @ancestors = args[:ancestors] if args.key?(:ancestors) + @asset_type = args[:asset_type] if args.key?(:asset_type) + @iam_policy = args[:iam_policy] if args.key?(:iam_policy) + @name = args[:name] if args.key?(:name) + @org_policy = args[:org_policy] if args.key?(:org_policy) + @resource = args[:resource] if args.key?(:resource) + @service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter) + end + end + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # Example Policy with multiple AuditConfigs: + # ` + # "audit_configs": [ + # ` + # "service": "allServices", + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE" + # `, + # ` + # "log_type": "ADMIN_READ" + # ` + # ] + # `, + # ` + # "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ" + # `, + # ` + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:aliya@example.com" + # ] + # ` + # ] + # ` + # ] + # ` + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts jose@example.com from DATA_READ logging, and + # aliya@example.com from DATA_WRITE logging. + class AuditConfig + include Google::Apis::Core::Hashable + + # The configuration for logging of each type of permission. + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + @service = args[:service] if args.key?(:service) + end + end + + # Provides the configuration for logging a type of permissions. + # Example: + # ` + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE" + # ` + # ] + # ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # jose@example.com from DATA_READ logging. + class AuditLogConfig + include Google::Apis::Core::Hashable + + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of Binding.members. + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @log_type = args[:log_type] if args.key?(:log_type) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudassetV1p5beta1::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@example.com` . + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. + # * `domain:`domain``: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + class Expr + include Google::Apis::Core::Hashable + + # Optional. Description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in Common Expression Language + # syntax. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # Optional. String indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # Optional. Title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Used in `policy_type` to specify how `boolean_policy` will behave at this + # resource. + class GoogleCloudOrgpolicyV1BooleanPolicy + include Google::Apis::Core::Hashable + + # If `true`, then the `Policy` is enforced. If `false`, then any + # configuration is acceptable. + # Suppose you have a `Constraint` + # `constraints/compute.disableSerialPortAccess` with `constraint_default` + # set to `ALLOW`. A `Policy` for that `Constraint` exhibits the following + # behavior: + # - If the `Policy` at this resource has enforced set to `false`, serial + # port connection attempts will be allowed. + # - If the `Policy` at this resource has enforced set to `true`, serial + # port connection attempts will be refused. + # - If the `Policy` at this resource is `RestoreDefault`, serial port + # connection attempts will be allowed. + # - If no `Policy` is set at this resource or anywhere higher in the + # resource hierarchy, serial port connection attempts will be allowed. + # - If no `Policy` is set at this resource, but one exists higher in the + # resource hierarchy, the behavior is as if the`Policy` were set at + # this resource. + # The following examples demonstrate the different possible layerings: + # Example 1 (nearest `Constraint` wins): + # `organizations/foo` has a `Policy` with: + # `enforced: false` + # `projects/bar` has no `Policy` set. + # The constraint at `projects/bar` and `organizations/foo` will not be + # enforced. + # Example 2 (enforcement gets replaced): + # `organizations/foo` has a `Policy` with: + # `enforced: false` + # `projects/bar` has a `Policy` with: + # `enforced: true` + # The constraint at `organizations/foo` is not enforced. + # The constraint at `projects/bar` is enforced. + # Example 3 (RestoreDefault): + # `organizations/foo` has a `Policy` with: + # `enforced: true` + # `projects/bar` has a `Policy` with: + # `RestoreDefault: ``` + # The constraint at `organizations/foo` is enforced. + # The constraint at `projects/bar` is not enforced, because + # `constraint_default` for the `Constraint` is `ALLOW`. + # Corresponds to the JSON property `enforced` + # @return [Boolean] + attr_accessor :enforced + alias_method :enforced?, :enforced + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enforced = args[:enforced] if args.key?(:enforced) + end + end + + # Used in `policy_type` to specify how `list_policy` behaves at this + # resource. + # `ListPolicy` can define specific values and subtrees of Cloud Resource + # Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that + # are allowed or denied by setting the `allowed_values` and `denied_values` + # fields. This is achieved by using the `under:` and optional `is:` prefixes. + # The `under:` prefix is used to denote resource subtree values. + # The `is:` prefix is used to denote specific values, and is required only + # if the value contains a ":". Values prefixed with "is:" are treated the + # same as values with no prefix. + # Ancestry subtrees must be in one of the following formats: + # - "projects/", e.g. "projects/tokyo-rain-123" + # - "folders/", e.g. "folders/1234" + # - "organizations/", e.g. "organizations/1234" + # The `supports_under` field of the associated `Constraint` defines whether + # ancestry prefixes can be used. You can set `allowed_values` and + # `denied_values` in the same `Policy` if `all_values` is + # `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all + # values. If `all_values` is set to either `ALLOW` or `DENY`, + # `allowed_values` and `denied_values` must be unset. + class GoogleCloudOrgpolicyV1ListPolicy + include Google::Apis::Core::Hashable + + # The policy all_values state. + # Corresponds to the JSON property `allValues` + # @return [String] + attr_accessor :all_values + + # List of values allowed at this resource. Can only be set if `all_values` + # is set to `ALL_VALUES_UNSPECIFIED`. + # Corresponds to the JSON property `allowedValues` + # @return [Array] + attr_accessor :allowed_values + + # List of values denied at this resource. Can only be set if `all_values` + # is set to `ALL_VALUES_UNSPECIFIED`. + # Corresponds to the JSON property `deniedValues` + # @return [Array] + attr_accessor :denied_values + + # Determines the inheritance behavior for this `Policy`. + # By default, a `ListPolicy` set at a resource supersedes any `Policy` set + # anywhere up the resource hierarchy. However, if `inherit_from_parent` is + # set to `true`, then the values from the effective `Policy` of the parent + # resource are inherited, meaning the values set in this `Policy` are + # added to the values inherited up the hierarchy. + # Setting `Policy` hierarchies that inherit both allowed values and denied + # values isn't recommended in most circumstances to keep the configuration + # simple and understandable. However, it is possible to set a `Policy` with + # `allowed_values` set that inherits a `Policy` with `denied_values` set. + # In this case, the values that are allowed must be in `allowed_values` and + # not present in `denied_values`. + # For example, suppose you have a `Constraint` + # `constraints/serviceuser.services`, which has a `constraint_type` of + # `list_constraint`, and with `constraint_default` set to `ALLOW`. + # Suppose that at the Organization level, a `Policy` is applied that + # restricts the allowed API activations to ``E1`, `E2``. Then, if a + # `Policy` is applied to a project below the Organization that has + # `inherit_from_parent` set to `false` and field all_values set to DENY, + # then an attempt to activate any API will be denied. + # The following examples demonstrate different possible layerings for + # `projects/bar` parented by `organizations/foo`: + # Example 1 (no inherited values): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: "E1" allowed_values:"E2"` + # `projects/bar` has `inherit_from_parent` `false` and values: + # `allowed_values: "E3" allowed_values: "E4"` + # The accepted values at `organizations/foo` are `E1`, `E2`. + # The accepted values at `projects/bar` are `E3`, and `E4`. + # Example 2 (inherited values): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: "E1" allowed_values:"E2"` + # `projects/bar` has a `Policy` with values: + # `value: "E3" value: "E4" inherit_from_parent: true` + # The accepted values at `organizations/foo` are `E1`, `E2`. + # The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`. + # Example 3 (inheriting both allowed and denied values): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: "E1" allowed_values: "E2"` + # `projects/bar` has a `Policy` with: + # `denied_values: "E1"` + # The accepted values at `organizations/foo` are `E1`, `E2`. + # The value accepted at `projects/bar` is `E2`. + # Example 4 (RestoreDefault): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: "E1" allowed_values:"E2"` + # `projects/bar` has a `Policy` with values: + # `RestoreDefault: ``` + # The accepted values at `organizations/foo` are `E1`, `E2`. + # The accepted values at `projects/bar` are either all or none depending on + # the value of `constraint_default` (if `ALLOW`, all; if + # `DENY`, none). + # Example 5 (no policy inherits parent policy): + # `organizations/foo` has no `Policy` set. + # `projects/bar` has no `Policy` set. + # The accepted values at both levels are either all or none depending on + # the value of `constraint_default` (if `ALLOW`, all; if + # `DENY`, none). + # Example 6 (ListConstraint allowing all): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: "E1" allowed_values: "E2"` + # `projects/bar` has a `Policy` with: + # `all: ALLOW` + # The accepted values at `organizations/foo` are `E1`, E2`. + # Any value is accepted at `projects/bar`. + # Example 7 (ListConstraint allowing none): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: "E1" allowed_values: "E2"` + # `projects/bar` has a `Policy` with: + # `all: DENY` + # The accepted values at `organizations/foo` are `E1`, E2`. + # No value is accepted at `projects/bar`. + # Example 10 (allowed and denied subtrees of Resource Manager hierarchy): + # Given the following resource hierarchy + # O1->`F1, F2`; F1->`P1`; F2->`P2, P3`, + # `organizations/foo` has a `Policy` with values: + # `allowed_values: "under:organizations/O1"` + # `projects/bar` has a `Policy` with: + # `allowed_values: "under:projects/P3"` + # `denied_values: "under:folders/F2"` + # The accepted values at `organizations/foo` are `organizations/O1`, + # `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`, + # `projects/P3`. + # The accepted values at `projects/bar` are `organizations/O1`, + # `folders/F1`, `projects/P1`. + # Corresponds to the JSON property `inheritFromParent` + # @return [Boolean] + attr_accessor :inherit_from_parent + alias_method :inherit_from_parent?, :inherit_from_parent + + # Optional. The Google Cloud Console will try to default to a configuration + # that matches the value specified in this `Policy`. If `suggested_value` + # is not set, it will inherit the value specified higher in the hierarchy, + # unless `inherit_from_parent` is `false`. + # Corresponds to the JSON property `suggestedValue` + # @return [String] + attr_accessor :suggested_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @all_values = args[:all_values] if args.key?(:all_values) + @allowed_values = args[:allowed_values] if args.key?(:allowed_values) + @denied_values = args[:denied_values] if args.key?(:denied_values) + @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent) + @suggested_value = args[:suggested_value] if args.key?(:suggested_value) + end + end + + # Defines a Cloud Organization `Policy` which is used to specify `Constraints` + # for configurations of Cloud Platform resources. + class GoogleCloudOrgpolicyV1Policy + include Google::Apis::Core::Hashable + + # Used in `policy_type` to specify how `boolean_policy` will behave at this + # resource. + # Corresponds to the JSON property `booleanPolicy` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1BooleanPolicy] + attr_accessor :boolean_policy + + # The name of the `Constraint` the `Policy` is configuring, for example, + # `constraints/serviceuser.services`. + # A [list of available + # constraints](/resource-manager/docs/organization-policy/org-policy-constraints) + # is available. + # Immutable after creation. + # Corresponds to the JSON property `constraint` + # @return [String] + attr_accessor :constraint + + # An opaque tag indicating the current version of the `Policy`, used for + # concurrency control. + # When the `Policy` is returned from either a `GetPolicy` or a + # `ListOrgPolicy` request, this `etag` indicates the version of the current + # `Policy` to use when executing a read-modify-write loop. + # When the `Policy` is returned from a `GetEffectivePolicy` request, the + # `etag` will be unset. + # When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value + # that was returned from a `GetOrgPolicy` request as part of a + # read-modify-write loop for concurrency control. Not setting the `etag`in a + # `SetOrgPolicy` request will result in an unconditional write of the + # `Policy`. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Used in `policy_type` to specify how `list_policy` behaves at this + # resource. + # `ListPolicy` can define specific values and subtrees of Cloud Resource + # Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that + # are allowed or denied by setting the `allowed_values` and `denied_values` + # fields. This is achieved by using the `under:` and optional `is:` prefixes. + # The `under:` prefix is used to denote resource subtree values. + # The `is:` prefix is used to denote specific values, and is required only + # if the value contains a ":". Values prefixed with "is:" are treated the + # same as values with no prefix. + # Ancestry subtrees must be in one of the following formats: + # - "projects/", e.g. "projects/tokyo-rain-123" + # - "folders/", e.g. "folders/1234" + # - "organizations/", e.g. "organizations/1234" + # The `supports_under` field of the associated `Constraint` defines whether + # ancestry prefixes can be used. You can set `allowed_values` and + # `denied_values` in the same `Policy` if `all_values` is + # `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all + # values. If `all_values` is set to either `ALLOW` or `DENY`, + # `allowed_values` and `denied_values` must be unset. + # Corresponds to the JSON property `listPolicy` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1ListPolicy] + attr_accessor :list_policy + + # Ignores policies set above this resource and restores the + # `constraint_default` enforcement behavior of the specific `Constraint` at + # this resource. + # Suppose that `constraint_default` is set to `ALLOW` for the + # `Constraint` `constraints/serviceuser.services`. Suppose that organization + # foo.com sets a `Policy` at their Organization resource node that restricts + # the allowed service activations to deny all service activations. They + # could then set a `Policy` with the `policy_type` `restore_default` on + # several experimental projects, restoring the `constraint_default` + # enforcement of the `Constraint` for only those projects, allowing those + # projects to have all services activated. + # Corresponds to the JSON property `restoreDefault` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleCloudOrgpolicyV1RestoreDefault] + attr_accessor :restore_default + + # The time stamp the `Policy` was previously updated. This is set by the + # server, not specified by the caller, and represents the last time a call to + # `SetOrgPolicy` was made for that `Policy`. Any value set by the client will + # be ignored. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Version of the `Policy`. Default version is 0; + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy) + @constraint = args[:constraint] if args.key?(:constraint) + @etag = args[:etag] if args.key?(:etag) + @list_policy = args[:list_policy] if args.key?(:list_policy) + @restore_default = args[:restore_default] if args.key?(:restore_default) + @update_time = args[:update_time] if args.key?(:update_time) + @version = args[:version] if args.key?(:version) + end + end + + # Ignores policies set above this resource and restores the + # `constraint_default` enforcement behavior of the specific `Constraint` at + # this resource. + # Suppose that `constraint_default` is set to `ALLOW` for the + # `Constraint` `constraints/serviceuser.services`. Suppose that organization + # foo.com sets a `Policy` at their Organization resource node that restricts + # the allowed service activations to deny all service activations. They + # could then set a `Policy` with the `policy_type` `restore_default` on + # several experimental projects, restoring the `constraint_default` + # enforcement of the `Constraint` for only those projects, allowing those + # projects to have all services activated. + class GoogleCloudOrgpolicyV1RestoreDefault + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # An `AccessLevel` is a label that can be applied to requests to Google Cloud + # services, along with a list of requirements necessary for the label to be + # applied. + class GoogleIdentityAccesscontextmanagerV1AccessLevel + include Google::Apis::Core::Hashable + + # `BasicLevel` is an `AccessLevel` using a set of recommended features. + # Corresponds to the JSON property `basic` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1BasicLevel] + attr_accessor :basic + + # `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language + # to represent the necessary conditions for the level to apply to a request. + # See CEL spec at: https://github.com/google/cel-spec + # Corresponds to the JSON property `custom` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1CustomLevel] + attr_accessor :custom + + # Description of the `AccessLevel` and its use. Does not affect behavior. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. Resource name for the Access Level. The `short_name` component + # must begin with a letter and only include alphanumeric and '_'. Format: + # `accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length + # of the `short_name` component is 50 characters. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Human readable title. Must be unique within the Policy. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @basic = args[:basic] if args.key?(:basic) + @custom = args[:custom] if args.key?(:custom) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @title = args[:title] if args.key?(:title) + end + end + + # `AccessPolicy` is a container for `AccessLevels` (which define the necessary + # attributes to use Google Cloud services) and `ServicePerimeters` (which + # define regions of services able to freely pass data within a perimeter). An + # access policy is globally visible within an organization, and the + # restrictions it specifies apply to all projects within an organization. + class GoogleIdentityAccesscontextmanagerV1AccessPolicy + include Google::Apis::Core::Hashable + + # Output only. An opaque identifier for the current version of the + # `AccessPolicy`. This will always be a strongly validated etag, meaning that + # two Access Polices will be identical if and only if their etags are + # identical. Clients should not expect this to be in any specific format. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Output only. Resource name of the `AccessPolicy`. Format: + # `accessPolicies/`policy_id`` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The parent of this `AccessPolicy` in the Cloud Resource + # Hierarchy. Currently immutable once created. Format: + # `organizations/`organization_id`` + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Required. Human readable title. Does not affect behavior. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @title = args[:title] if args.key?(:title) + end + end + + # `BasicLevel` is an `AccessLevel` using a set of recommended features. + class GoogleIdentityAccesscontextmanagerV1BasicLevel + include Google::Apis::Core::Hashable + + # How the `conditions` list should be combined to determine if a request is + # granted this `AccessLevel`. If AND is used, each `Condition` in + # `conditions` must be satisfied for the `AccessLevel` to be applied. If OR + # is used, at least one `Condition` in `conditions` must be satisfied for the + # `AccessLevel` to be applied. Default behavior is AND. + # Corresponds to the JSON property `combiningFunction` + # @return [String] + attr_accessor :combining_function + + # Required. A list of requirements for the `AccessLevel` to be granted. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @combining_function = args[:combining_function] if args.key?(:combining_function) + @conditions = args[:conditions] if args.key?(:conditions) + end + end + + # A condition necessary for an `AccessLevel` to be granted. The Condition is an + # AND over its fields. So a Condition is true if: 1) the request IP is from one + # of the listed subnetworks AND 2) the originating device complies with the + # listed device policy AND 3) all listed access levels are granted AND 4) the + # request was sent at a time allowed by the DateTimeRestriction. + class GoogleIdentityAccesscontextmanagerV1Condition + include Google::Apis::Core::Hashable + + # `DevicePolicy` specifies device specific restrictions necessary to acquire a + # given access level. A `DevicePolicy` specifies requirements for requests from + # devices to be granted access levels, it does not do any enforcement on the + # device. `DevicePolicy` acts as an AND over all specified fields, and each + # repeated field is an OR over its elements. Any unset fields are ignored. For + # example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : + # DESKTOP_LINUX, encryption_status: ENCRYPTED`, then the DevicePolicy will be + # true for requests originating from encrypted Linux desktops and encrypted + # Windows desktops. + # Corresponds to the JSON property `devicePolicy` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1DevicePolicy] + attr_accessor :device_policy + + # CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for + # a CIDR IP address block, the specified IP address portion must be properly + # truncated (i.e. all the host bits must be zero) or the input is considered + # malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is + # not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas + # "2001:db8::1/32" is not. The originating IP of a request must be in one of + # the listed subnets in order for this Condition to be true. If empty, all IP + # addresses are allowed. + # Corresponds to the JSON property `ipSubnetworks` + # @return [Array] + attr_accessor :ip_subnetworks + + # The request must be made by one of the provided user or service + # accounts. Groups are not supported. + # Syntax: + # `user:`emailid`` + # `serviceAccount:`emailid`` + # If not specified, a request may come from any user. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Whether to negate the Condition. If true, the Condition becomes a NAND over + # its non-empty fields, each field must be false for the Condition overall to + # be satisfied. Defaults to false. + # Corresponds to the JSON property `negate` + # @return [Boolean] + attr_accessor :negate + alias_method :negate?, :negate + + # The request must originate from one of the provided countries/regions. + # Must be valid ISO 3166-1 alpha-2 codes. + # Corresponds to the JSON property `regions` + # @return [Array] + attr_accessor :regions + + # A list of other access levels defined in the same `Policy`, referenced by + # resource name. Referencing an `AccessLevel` which does not exist is an + # error. All access levels listed must be granted for the Condition + # to be true. Example: + # "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"` + # Corresponds to the JSON property `requiredAccessLevels` + # @return [Array] + attr_accessor :required_access_levels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_policy = args[:device_policy] if args.key?(:device_policy) + @ip_subnetworks = args[:ip_subnetworks] if args.key?(:ip_subnetworks) + @members = args[:members] if args.key?(:members) + @negate = args[:negate] if args.key?(:negate) + @regions = args[:regions] if args.key?(:regions) + @required_access_levels = args[:required_access_levels] if args.key?(:required_access_levels) + end + end + + # `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language + # to represent the necessary conditions for the level to apply to a request. + # See CEL spec at: https://github.com/google/cel-spec + class GoogleIdentityAccesscontextmanagerV1CustomLevel + include Google::Apis::Core::Hashable + + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + # Corresponds to the JSON property `expr` + # @return [Google::Apis::CloudassetV1p5beta1::Expr] + attr_accessor :expr + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expr = args[:expr] if args.key?(:expr) + end + end + + # `DevicePolicy` specifies device specific restrictions necessary to acquire a + # given access level. A `DevicePolicy` specifies requirements for requests from + # devices to be granted access levels, it does not do any enforcement on the + # device. `DevicePolicy` acts as an AND over all specified fields, and each + # repeated field is an OR over its elements. Any unset fields are ignored. For + # example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : + # DESKTOP_LINUX, encryption_status: ENCRYPTED`, then the DevicePolicy will be + # true for requests originating from encrypted Linux desktops and encrypted + # Windows desktops. + class GoogleIdentityAccesscontextmanagerV1DevicePolicy + include Google::Apis::Core::Hashable + + # Allowed device management levels, an empty list allows all management + # levels. + # Corresponds to the JSON property `allowedDeviceManagementLevels` + # @return [Array] + attr_accessor :allowed_device_management_levels + + # Allowed encryptions statuses, an empty list allows all statuses. + # Corresponds to the JSON property `allowedEncryptionStatuses` + # @return [Array] + attr_accessor :allowed_encryption_statuses + + # Allowed OS versions, an empty list allows all types and all versions. + # Corresponds to the JSON property `osConstraints` + # @return [Array] + attr_accessor :os_constraints + + # Whether the device needs to be approved by the customer admin. + # Corresponds to the JSON property `requireAdminApproval` + # @return [Boolean] + attr_accessor :require_admin_approval + alias_method :require_admin_approval?, :require_admin_approval + + # Whether the device needs to be corp owned. + # Corresponds to the JSON property `requireCorpOwned` + # @return [Boolean] + attr_accessor :require_corp_owned + alias_method :require_corp_owned?, :require_corp_owned + + # Whether or not screenlock is required for the DevicePolicy to be true. + # Defaults to `false`. + # Corresponds to the JSON property `requireScreenlock` + # @return [Boolean] + attr_accessor :require_screenlock + alias_method :require_screenlock?, :require_screenlock + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allowed_device_management_levels = args[:allowed_device_management_levels] if args.key?(:allowed_device_management_levels) + @allowed_encryption_statuses = args[:allowed_encryption_statuses] if args.key?(:allowed_encryption_statuses) + @os_constraints = args[:os_constraints] if args.key?(:os_constraints) + @require_admin_approval = args[:require_admin_approval] if args.key?(:require_admin_approval) + @require_corp_owned = args[:require_corp_owned] if args.key?(:require_corp_owned) + @require_screenlock = args[:require_screenlock] if args.key?(:require_screenlock) + end + end + + # A restriction on the OS type and version of devices making requests. + class GoogleIdentityAccesscontextmanagerV1OsConstraint + include Google::Apis::Core::Hashable + + # The minimum allowed OS version. If not set, any version of this OS + # satisfies the constraint. Format: `"major.minor.patch"`. + # Examples: `"10.5.301"`, `"9.2.1"`. + # Corresponds to the JSON property `minimumVersion` + # @return [String] + attr_accessor :minimum_version + + # Required. The allowed OS type. + # Corresponds to the JSON property `osType` + # @return [String] + attr_accessor :os_type + + # Only allows requests from devices with a verified Chrome OS. + # Verifications includes requirements that the device is enterprise-managed, + # conformant to domain policies, and the caller has permission to call + # the API targeted by the request. + # Corresponds to the JSON property `requireVerifiedChromeOs` + # @return [Boolean] + attr_accessor :require_verified_chrome_os + alias_method :require_verified_chrome_os?, :require_verified_chrome_os + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @minimum_version = args[:minimum_version] if args.key?(:minimum_version) + @os_type = args[:os_type] if args.key?(:os_type) + @require_verified_chrome_os = args[:require_verified_chrome_os] if args.key?(:require_verified_chrome_os) + end + end + + # `ServicePerimeter` describes a set of Google Cloud resources which can freely + # import and export data amongst themselves, but not export outside of the + # `ServicePerimeter`. If a request with a source within this `ServicePerimeter` + # has a target outside of the `ServicePerimeter`, the request will be blocked. + # Otherwise the request is allowed. There are two types of Service Perimeter - + # Regular and Bridge. Regular Service Perimeters cannot overlap, a single + # Google Cloud project can only belong to a single regular Service Perimeter. + # Service Perimeter Bridges can contain only Google Cloud projects as members, + # a single Google Cloud project may belong to multiple Service Perimeter + # Bridges. + class GoogleIdentityAccesscontextmanagerV1ServicePerimeter + include Google::Apis::Core::Hashable + + # Description of the `ServicePerimeter` and its use. Does not affect + # behavior. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. Resource name for the ServicePerimeter. The `short_name` + # component must begin with a letter and only include alphanumeric and '_'. + # Format: `accessPolicies/`policy_id`/servicePerimeters/`short_name`` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Perimeter type indicator. A single project is + # allowed to be a member of single regular perimeter, but multiple service + # perimeter bridges. A project cannot be a included in a perimeter bridge + # without being included in regular perimeter. For perimeter bridges, + # the restricted service list as well as access level lists must be + # empty. + # Corresponds to the JSON property `perimeterType` + # @return [String] + attr_accessor :perimeter_type + + # `ServicePerimeterConfig` specifies a set of Google Cloud resources that + # describe specific Service Perimeter configuration. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig] + attr_accessor :spec + + # `ServicePerimeterConfig` specifies a set of Google Cloud resources that + # describe specific Service Perimeter configuration. + # Corresponds to the JSON property `status` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig] + attr_accessor :status + + # Human readable title. Must be unique within the Policy. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly + # exists for all Service Perimeters, and that spec is identical to the + # status for those Service Perimeters. When this flag is set, it inhibits the + # generation of the implicit spec, thereby allowing the user to explicitly + # provide a configuration ("spec") to use in a dry-run version of the Service + # Perimeter. This allows the user to test changes to the enforced config + # ("status") without actually enforcing them. This testing is done through + # analyzing the differences between currently enforced and suggested + # restrictions. use_explicit_dry_run_spec must bet set to True if any of the + # fields in the spec are set to non-default values. + # Corresponds to the JSON property `useExplicitDryRunSpec` + # @return [Boolean] + attr_accessor :use_explicit_dry_run_spec + alias_method :use_explicit_dry_run_spec?, :use_explicit_dry_run_spec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @perimeter_type = args[:perimeter_type] if args.key?(:perimeter_type) + @spec = args[:spec] if args.key?(:spec) + @status = args[:status] if args.key?(:status) + @title = args[:title] if args.key?(:title) + @use_explicit_dry_run_spec = args[:use_explicit_dry_run_spec] if args.key?(:use_explicit_dry_run_spec) + end + end + + # `ServicePerimeterConfig` specifies a set of Google Cloud resources that + # describe specific Service Perimeter configuration. + class GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig + include Google::Apis::Core::Hashable + + # A list of `AccessLevel` resource names that allow resources within the + # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed + # must be in the same policy as this `ServicePerimeter`. Referencing a + # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are + # listed, resources within the perimeter can only be accessed via Google + # Cloud calls with request origins within the perimeter. Example: + # `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. + # For Service Perimeter Bridge, must be empty. + # Corresponds to the JSON property `accessLevels` + # @return [Array] + attr_accessor :access_levels + + # A list of Google Cloud resources that are inside of the service perimeter. + # Currently only projects are allowed. Format: `projects/`project_number`` + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + # Google Cloud services that are subject to the Service Perimeter + # restrictions. For example, if `storage.googleapis.com` is specified, access + # to the storage buckets inside the perimeter must meet the perimeter's + # access restrictions. + # Corresponds to the JSON property `restrictedServices` + # @return [Array] + attr_accessor :restricted_services + + # Specifies how APIs are allowed to communicate within the Service + # Perimeter. + # Corresponds to the JSON property `vpcAccessibleServices` + # @return [Google::Apis::CloudassetV1p5beta1::GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices] + attr_accessor :vpc_accessible_services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @access_levels = args[:access_levels] if args.key?(:access_levels) + @resources = args[:resources] if args.key?(:resources) + @restricted_services = args[:restricted_services] if args.key?(:restricted_services) + @vpc_accessible_services = args[:vpc_accessible_services] if args.key?(:vpc_accessible_services) + end + end + + # Specifies how APIs are allowed to communicate within the Service + # Perimeter. + class GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices + include Google::Apis::Core::Hashable + + # The list of APIs usable within the Service Perimeter. Must be empty + # unless 'enable_restriction' is True. + # Corresponds to the JSON property `allowedServices` + # @return [Array] + attr_accessor :allowed_services + + # Whether to restrict API calls within the Service Perimeter to the list of + # APIs specified in 'allowed_services'. + # Corresponds to the JSON property `enableRestriction` + # @return [Boolean] + attr_accessor :enable_restriction + alias_method :enable_restriction?, :enable_restriction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allowed_services = args[:allowed_services] if args.key?(:allowed_services) + @enable_restriction = args[:enable_restriction] if args.key?(:enable_restriction) + end + end + + # ListAssets response. + class ListAssetsResponse + include Google::Apis::Core::Hashable + + # Assets. + # Corresponds to the JSON property `assets` + # @return [Array] + attr_accessor :assets + + # Token to retrieve the next page of results. Set to empty if there are no + # remaining results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Time the snapshot was taken. + # Corresponds to the JSON property `readTime` + # @return [String] + attr_accessor :read_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @assets = args[:assets] if args.key?(:assets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @read_time = args[:read_time] if args.key?(:read_time) + end + end + + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). + # **JSON example:** + # ` + # "bindings": [ + # ` + # "role": "roles/resourcemanager.organizationAdmin", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/resourcemanager.organizationViewer", + # "members": [ + # "user:eve@example.com" + # ], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", + # ` + # ` + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 + # ` + # **YAML example:** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin + # - members: + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 + # For a description of IAM and its features, see the + # [IAM documentation](https://cloud.google.com/iam/docs/). + class Policy + include Google::Apis::Core::Hashable + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. Optionally, may specify a + # `condition` that determines how and when the `bindings` are applied. Each + # of the `bindings` must contain at least one member. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Specifies the format of the policy. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. + # To learn which resources support conditions in their IAM policies, see the + # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_configs = args[:audit_configs] if args.key?(:audit_configs) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # A representation of a Google Cloud resource. + class Resource + include Google::Apis::Core::Hashable + + # The content of the resource, in which some sensitive fields are removed + # and may not be present. + # Corresponds to the JSON property `data` + # @return [Hash] + attr_accessor :data + + # The URL of the discovery document containing the resource's JSON schema. + # Example: + # `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` + # This value is unspecified for resources that do not have an API based on a + # discovery document, such as Cloud Bigtable. + # Corresponds to the JSON property `discoveryDocumentUri` + # @return [String] + attr_accessor :discovery_document_uri + + # The JSON schema name listed in the discovery document. Example: + # `Project` + # This value is unspecified for resources that do not have an API based on a + # discovery document, such as Cloud Bigtable. + # Corresponds to the JSON property `discoveryName` + # @return [String] + attr_accessor :discovery_name + + # The full name of the immediate parent of this resource. See + # [Resource + # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + # for more information. + # For Google Cloud assets, this value is the parent resource defined in the + # [Cloud IAM policy + # hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). + # Example: + # `//cloudresourcemanager.googleapis.com/projects/my_project_123` + # For third-party assets, this field may be set differently. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The REST URL for accessing the resource. An HTTP `GET` request using this + # URL returns the resource itself. Example: + # `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` + # This value is unspecified for resources without a REST API. + # Corresponds to the JSON property `resourceUrl` + # @return [String] + attr_accessor :resource_url + + # The API version. Example: "v1". + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @discovery_document_uri = args[:discovery_document_uri] if args.key?(:discovery_document_uri) + @discovery_name = args[:discovery_name] if args.key?(:discovery_name) + @parent = args[:parent] if args.key?(:parent) + @resource_url = args[:resource_url] if args.key?(:resource_url) + @version = args[:version] if args.key?(:version) + end + end + end + end +end diff --git a/generated/google/apis/cloudasset_v1p5beta1/representations.rb b/generated/google/apis/cloudasset_v1p5beta1/representations.rb new file mode 100644 index 000000000..a2bbfe551 --- /dev/null +++ b/generated/google/apis/cloudasset_v1p5beta1/representations.rb @@ -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 diff --git a/generated/google/apis/cloudasset_v1p5beta1/service.rb b/generated/google/apis/cloudasset_v1p5beta1/service.rb new file mode 100644 index 000000000..35af8860b --- /dev/null +++ b/generated/google/apis/cloudasset_v1p5beta1/service.rb @@ -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] 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 diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index 5a8c75180..350c79bdc 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -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' diff --git a/generated/google/apis/cloudbuild_v1alpha1.rb b/generated/google/apis/cloudbuild_v1alpha1.rb index 7bf5934d9..93e5b3c6e 100644 --- a/generated/google/apis/cloudbuild_v1alpha1.rb +++ b/generated/google/apis/cloudbuild_v1alpha1.rb @@ -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' diff --git a/generated/google/apis/cloudbuild_v1alpha2.rb b/generated/google/apis/cloudbuild_v1alpha2.rb index 53c9bbff0..916350249 100644 --- a/generated/google/apis/cloudbuild_v1alpha2.rb +++ b/generated/google/apis/cloudbuild_v1alpha2.rb @@ -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' diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index e9f6839d3..6bdcde1c7 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -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' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 602225701..39c3fe547 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -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 diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 3278f64fe..8391565de 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -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 diff --git a/generated/google/apis/dialogflow_v2/service.rb b/generated/google/apis/dialogflow_v2/service.rb index baec1227e..d08cfe427 100644 --- a/generated/google/apis/dialogflow_v2/service.rb +++ b/generated/google/apis/dialogflow_v2/service.rb @@ -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. diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 2a73e3e2f..30d718400 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -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' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 069486428..59bbc2fac 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -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 diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 268bd33f0..e5d8ccddb 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -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 diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 39713fe23..5a9ed39fa 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -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. diff --git a/generated/google/apis/fcm_v1.rb b/generated/google/apis/fcm_v1.rb index 3c9160679..82aa9037c 100644 --- a/generated/google/apis/fcm_v1.rb +++ b/generated/google/apis/fcm_v1.rb @@ -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' diff --git a/generated/google/apis/fcm_v1/classes.rb b/generated/google/apis/fcm_v1/classes.rb index 2255b6c77..92a4d6b59 100644 --- a/generated/google/apis/fcm_v1/classes.rb +++ b/generated/google/apis/fcm_v1/classes.rb @@ -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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 diff --git a/generated/google/apis/fcm_v1/service.rb b/generated/google/apis/fcm_v1/service.rb index fca206038..24e1ddcdf 100644 --- a/generated/google/apis/fcm_v1/service.rb +++ b/generated/google/apis/fcm_v1/service.rb @@ -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. diff --git a/generated/google/apis/firebase_v1beta1.rb b/generated/google/apis/firebase_v1beta1.rb index 76f603b15..e17afdf76 100644 --- a/generated/google/apis/firebase_v1beta1.rb +++ b/generated/google/apis/firebase_v1beta1.rb @@ -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' diff --git a/generated/google/apis/firebase_v1beta1/classes.rb b/generated/google/apis/firebase_v1beta1/classes.rb index d248d87e9..18559081c 100644 --- a/generated/google/apis/firebase_v1beta1/classes.rb +++ b/generated/google/apis/firebase_v1beta1/classes.rb @@ -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 diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index f82ecb934..5ac0662d1 100644 --- a/generated/google/apis/testing_v1.rb +++ b/generated/google/apis/testing_v1.rb @@ -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' diff --git a/generated/google/apis/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb index c68854c77..0dd449ed0 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -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] + 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) diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb index c1d1166e3..4c3fcd943 100644 --- a/generated/google/apis/testing_v1/representations.rb +++ b/generated/google/apis/testing_v1/representations.rb @@ -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