Autogenerated update (2020-08-01)
Update: - datacatalog_v1beta1 - healthcare_v1 - healthcare_v1beta1 - logging_v2 - memcache_v1 - people_v1 - recommendationengine_v1beta1
This commit is contained in:
parent
d717b3b534
commit
274c8eb5d6
|
@ -100862,6 +100862,8 @@
|
|||
"/healthcare:v1beta1/Finding/infoType": info_type
|
||||
"/healthcare:v1beta1/Finding/quote": quote
|
||||
"/healthcare:v1beta1/Finding/start": start
|
||||
"/healthcare:v1beta1/GcsSource": gcs_source
|
||||
"/healthcare:v1beta1/GcsSource/uri": uri
|
||||
"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination": google_cloud_healthcare_v1beta1_annotation_big_query_destination
|
||||
"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination/force": force
|
||||
"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination/schemaType": schema_type
|
||||
|
@ -100959,6 +100961,9 @@
|
|||
"/healthcare:v1beta1/ImportDicomDataRequest": import_dicom_data_request
|
||||
"/healthcare:v1beta1/ImportDicomDataRequest/gcsSource": gcs_source
|
||||
"/healthcare:v1beta1/ImportDicomDataResponse": import_dicom_data_response
|
||||
"/healthcare:v1beta1/ImportMessagesRequest": import_messages_request
|
||||
"/healthcare:v1beta1/ImportMessagesRequest/gcsSource": gcs_source
|
||||
"/healthcare:v1beta1/ImportMessagesResponse": import_messages_response
|
||||
"/healthcare:v1beta1/ImportResourcesRequest": import_resources_request
|
||||
"/healthcare:v1beta1/ImportResourcesRequest/contentStructure": content_structure
|
||||
"/healthcare:v1beta1/ImportResourcesRequest/gcsSource": gcs_source
|
||||
|
@ -101400,6 +101405,8 @@
|
|||
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy": get_project_location_dataset_hl7_v2_store_iam_policy
|
||||
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version
|
||||
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy/resource": resource
|
||||
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.import": import_hl7_v2_store_messages
|
||||
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.import/name": name
|
||||
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.list": list_project_location_dataset_hl7_v2_stores
|
||||
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.list/filter": filter
|
||||
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.list/pageSize": page_size
|
||||
|
@ -106066,6 +106073,10 @@
|
|||
"/manufacturers:v1/manufacturers.accounts.products.uploadProduct/name": name
|
||||
"/manufacturers:v1/manufacturers.accounts.products.uploadProduct/parent": parent
|
||||
"/manufacturers:v1/quotaUser": quota_user
|
||||
"/memcache:v1/ApplyParametersRequest": apply_parameters_request
|
||||
"/memcache:v1/ApplyParametersRequest/applyAll": apply_all
|
||||
"/memcache:v1/ApplyParametersRequest/nodeIds": node_ids
|
||||
"/memcache:v1/ApplyParametersRequest/nodeIds/node_id": node_id
|
||||
"/memcache:v1/AuditConfig": audit_config
|
||||
"/memcache:v1/AuditConfig/auditLogConfigs": audit_log_configs
|
||||
"/memcache:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
|
||||
|
@ -106086,6 +106097,14 @@
|
|||
"/memcache:v1/Expr/expression": expression
|
||||
"/memcache:v1/Expr/location": location
|
||||
"/memcache:v1/Expr/title": title
|
||||
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata": google_cloud_memcache_v1_operation_metadata
|
||||
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata/apiVersion": api_version
|
||||
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata/cancelRequested": cancel_requested
|
||||
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata/createTime": create_time
|
||||
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata/endTime": end_time
|
||||
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata/statusDetail": status_detail
|
||||
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata/target": target
|
||||
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata/verb": verb
|
||||
"/memcache:v1/GoogleCloudSaasacceleratorManagementProvidersV1Instance": google_cloud_saasaccelerator_management_providers_v1_instance
|
||||
"/memcache:v1/GoogleCloudSaasacceleratorManagementProvidersV1Instance/consumerDefinedName": consumer_defined_name
|
||||
"/memcache:v1/GoogleCloudSaasacceleratorManagementProvidersV1Instance/createTime": create_time
|
||||
|
@ -106138,6 +106157,36 @@
|
|||
"/memcache:v1/GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata/nodes": nodes
|
||||
"/memcache:v1/GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata/nodes/node": node
|
||||
"/memcache:v1/GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata/tier": tier
|
||||
"/memcache:v1/Instance": instance
|
||||
"/memcache:v1/Instance/authorizedNetwork": authorized_network
|
||||
"/memcache:v1/Instance/createTime": create_time
|
||||
"/memcache:v1/Instance/discoveryEndpoint": discovery_endpoint
|
||||
"/memcache:v1/Instance/displayName": display_name
|
||||
"/memcache:v1/Instance/instanceMessages": instance_messages
|
||||
"/memcache:v1/Instance/instanceMessages/instance_message": instance_message
|
||||
"/memcache:v1/Instance/labels": labels
|
||||
"/memcache:v1/Instance/labels/label": label
|
||||
"/memcache:v1/Instance/memcacheFullVersion": memcache_full_version
|
||||
"/memcache:v1/Instance/memcacheNodes": memcache_nodes
|
||||
"/memcache:v1/Instance/memcacheNodes/memcache_node": memcache_node
|
||||
"/memcache:v1/Instance/memcacheVersion": memcache_version
|
||||
"/memcache:v1/Instance/name": name
|
||||
"/memcache:v1/Instance/nodeConfig": node_config
|
||||
"/memcache:v1/Instance/nodeCount": node_count
|
||||
"/memcache:v1/Instance/parameters": parameters
|
||||
"/memcache:v1/Instance/state": state
|
||||
"/memcache:v1/Instance/updateTime": update_time
|
||||
"/memcache:v1/Instance/zones": zones
|
||||
"/memcache:v1/Instance/zones/zone": zone
|
||||
"/memcache:v1/InstanceMessage": instance_message
|
||||
"/memcache:v1/InstanceMessage/code": code
|
||||
"/memcache:v1/InstanceMessage/message": message
|
||||
"/memcache:v1/ListInstancesResponse": list_instances_response
|
||||
"/memcache:v1/ListInstancesResponse/nextPageToken": next_page_token
|
||||
"/memcache:v1/ListInstancesResponse/resources": resources
|
||||
"/memcache:v1/ListInstancesResponse/resources/resource": resource
|
||||
"/memcache:v1/ListInstancesResponse/unreachable": unreachable
|
||||
"/memcache:v1/ListInstancesResponse/unreachable/unreachable": unreachable
|
||||
"/memcache:v1/ListLocationsResponse": list_locations_response
|
||||
"/memcache:v1/ListLocationsResponse/locations": locations
|
||||
"/memcache:v1/ListLocationsResponse/locations/location": location
|
||||
|
@ -106157,6 +106206,20 @@
|
|||
"/memcache:v1/LocationMetadata": location_metadata
|
||||
"/memcache:v1/LocationMetadata/availableZones": available_zones
|
||||
"/memcache:v1/LocationMetadata/availableZones/available_zone": available_zone
|
||||
"/memcache:v1/MemcacheParameters": memcache_parameters
|
||||
"/memcache:v1/MemcacheParameters/id": id
|
||||
"/memcache:v1/MemcacheParameters/params": params
|
||||
"/memcache:v1/MemcacheParameters/params/param": param
|
||||
"/memcache:v1/Node": node
|
||||
"/memcache:v1/Node/host": host
|
||||
"/memcache:v1/Node/nodeId": node_id
|
||||
"/memcache:v1/Node/parameters": parameters
|
||||
"/memcache:v1/Node/port": port
|
||||
"/memcache:v1/Node/state": state
|
||||
"/memcache:v1/Node/zone": zone
|
||||
"/memcache:v1/NodeConfig": node_config
|
||||
"/memcache:v1/NodeConfig/cpuCount": cpu_count
|
||||
"/memcache:v1/NodeConfig/memorySizeMb": memory_size_mb
|
||||
"/memcache:v1/Operation": operation
|
||||
"/memcache:v1/Operation/done": done
|
||||
"/memcache:v1/Operation/error": error
|
||||
|
@ -106195,18 +106258,41 @@
|
|||
"/memcache:v1/TestIamPermissionsResponse": test_iam_permissions_response
|
||||
"/memcache:v1/TestIamPermissionsResponse/permissions": permissions
|
||||
"/memcache:v1/TestIamPermissionsResponse/permissions/permission": permission
|
||||
"/memcache:v1/UpdateParametersRequest": update_parameters_request
|
||||
"/memcache:v1/UpdateParametersRequest/parameters": parameters
|
||||
"/memcache:v1/UpdateParametersRequest/updateMask": update_mask
|
||||
"/memcache:v1/ZoneMetadata": zone_metadata
|
||||
"/memcache:v1/fields": fields
|
||||
"/memcache:v1/key": key
|
||||
"/memcache:v1/memcache.projects.locations.get": get_project_location
|
||||
"/memcache:v1/memcache.projects.locations.get/name": name
|
||||
"/memcache:v1/memcache.projects.locations.instances.applyParameters": apply_instance_parameters
|
||||
"/memcache:v1/memcache.projects.locations.instances.applyParameters/name": name
|
||||
"/memcache:v1/memcache.projects.locations.instances.create": create_project_location_instance
|
||||
"/memcache:v1/memcache.projects.locations.instances.create/instanceId": instance_id
|
||||
"/memcache:v1/memcache.projects.locations.instances.create/parent": parent
|
||||
"/memcache:v1/memcache.projects.locations.instances.delete": delete_project_location_instance
|
||||
"/memcache:v1/memcache.projects.locations.instances.delete/name": name
|
||||
"/memcache:v1/memcache.projects.locations.instances.get": get_project_location_instance
|
||||
"/memcache:v1/memcache.projects.locations.instances.get/name": name
|
||||
"/memcache:v1/memcache.projects.locations.instances.getIamPolicy": get_project_location_instance_iam_policy
|
||||
"/memcache:v1/memcache.projects.locations.instances.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version
|
||||
"/memcache:v1/memcache.projects.locations.instances.getIamPolicy/resource": resource
|
||||
"/memcache:v1/memcache.projects.locations.instances.list": list_project_location_instances
|
||||
"/memcache:v1/memcache.projects.locations.instances.list/filter": filter
|
||||
"/memcache:v1/memcache.projects.locations.instances.list/orderBy": order_by
|
||||
"/memcache:v1/memcache.projects.locations.instances.list/pageSize": page_size
|
||||
"/memcache:v1/memcache.projects.locations.instances.list/pageToken": page_token
|
||||
"/memcache:v1/memcache.projects.locations.instances.list/parent": parent
|
||||
"/memcache:v1/memcache.projects.locations.instances.patch": patch_project_location_instance
|
||||
"/memcache:v1/memcache.projects.locations.instances.patch/name": name
|
||||
"/memcache:v1/memcache.projects.locations.instances.patch/updateMask": update_mask
|
||||
"/memcache:v1/memcache.projects.locations.instances.setIamPolicy": set_instance_iam_policy
|
||||
"/memcache:v1/memcache.projects.locations.instances.setIamPolicy/resource": resource
|
||||
"/memcache:v1/memcache.projects.locations.instances.testIamPermissions": test_instance_iam_permissions
|
||||
"/memcache:v1/memcache.projects.locations.instances.testIamPermissions/resource": resource
|
||||
"/memcache:v1/memcache.projects.locations.instances.updateParameters": update_instance_parameters
|
||||
"/memcache:v1/memcache.projects.locations.instances.updateParameters/name": name
|
||||
"/memcache:v1/memcache.projects.locations.list": list_project_locations
|
||||
"/memcache:v1/memcache.projects.locations.list/filter": filter
|
||||
"/memcache:v1/memcache.projects.locations.list/name": name
|
||||
|
@ -111160,6 +111246,11 @@
|
|||
"/people:v1/Membership/contactGroupMembership": contact_group_membership
|
||||
"/people:v1/Membership/domainMembership": domain_membership
|
||||
"/people:v1/Membership/metadata": metadata
|
||||
"/people:v1/MiscKeyword": misc_keyword
|
||||
"/people:v1/MiscKeyword/formattedType": formatted_type
|
||||
"/people:v1/MiscKeyword/metadata": metadata
|
||||
"/people:v1/MiscKeyword/type": type
|
||||
"/people:v1/MiscKeyword/value": value
|
||||
"/people:v1/ModifyContactGroupMembersRequest": modify_contact_group_members_request
|
||||
"/people:v1/ModifyContactGroupMembersRequest/resourceNamesToAdd": resource_names_to_add
|
||||
"/people:v1/ModifyContactGroupMembersRequest/resourceNamesToAdd/resource_names_to_add": resource_names_to_add
|
||||
|
@ -111245,6 +111336,8 @@
|
|||
"/people:v1/Person/memberships": memberships
|
||||
"/people:v1/Person/memberships/membership": membership
|
||||
"/people:v1/Person/metadata": metadata
|
||||
"/people:v1/Person/miscKeywords": misc_keywords
|
||||
"/people:v1/Person/miscKeywords/misc_keyword": misc_keyword
|
||||
"/people:v1/Person/names": names
|
||||
"/people:v1/Person/names/name": name
|
||||
"/people:v1/Person/nicknames": nicknames
|
||||
|
@ -123313,6 +123406,153 @@
|
|||
"/servicecontrol:v1/servicecontrol.services.report/serviceName": service_name
|
||||
"/servicecontrol:v1/servicecontrol.services.startReconciliation": start_service_reconciliation
|
||||
"/servicecontrol:v1/servicecontrol.services.startReconciliation/serviceName": service_name
|
||||
"/servicecontrol:v2/Api": api
|
||||
"/servicecontrol:v2/Api/operation": operation
|
||||
"/servicecontrol:v2/Api/protocol": protocol
|
||||
"/servicecontrol:v2/Api/service": service
|
||||
"/servicecontrol:v2/Api/version": version
|
||||
"/servicecontrol:v2/AttributeContext": attribute_context
|
||||
"/servicecontrol:v2/AttributeContext/api": api
|
||||
"/servicecontrol:v2/AttributeContext/destination": destination
|
||||
"/servicecontrol:v2/AttributeContext/extensions": extensions
|
||||
"/servicecontrol:v2/AttributeContext/extensions/extension": extension
|
||||
"/servicecontrol:v2/AttributeContext/extensions/extension/extension": extension
|
||||
"/servicecontrol:v2/AttributeContext/origin": origin
|
||||
"/servicecontrol:v2/AttributeContext/request": request
|
||||
"/servicecontrol:v2/AttributeContext/resource": resource
|
||||
"/servicecontrol:v2/AttributeContext/response": response
|
||||
"/servicecontrol:v2/AttributeContext/source": source
|
||||
"/servicecontrol:v2/AuditLog": audit_log
|
||||
"/servicecontrol:v2/AuditLog/authenticationInfo": authentication_info
|
||||
"/servicecontrol:v2/AuditLog/authorizationInfo": authorization_info
|
||||
"/servicecontrol:v2/AuditLog/authorizationInfo/authorization_info": authorization_info
|
||||
"/servicecontrol:v2/AuditLog/metadata": metadata
|
||||
"/servicecontrol:v2/AuditLog/metadata/metadatum": metadatum
|
||||
"/servicecontrol:v2/AuditLog/methodName": method_name
|
||||
"/servicecontrol:v2/AuditLog/numResponseItems": num_response_items
|
||||
"/servicecontrol:v2/AuditLog/request": request
|
||||
"/servicecontrol:v2/AuditLog/request/request": request
|
||||
"/servicecontrol:v2/AuditLog/requestMetadata": request_metadata
|
||||
"/servicecontrol:v2/AuditLog/resourceLocation": resource_location
|
||||
"/servicecontrol:v2/AuditLog/resourceName": resource_name
|
||||
"/servicecontrol:v2/AuditLog/resourceOriginalState": resource_original_state
|
||||
"/servicecontrol:v2/AuditLog/resourceOriginalState/resource_original_state": resource_original_state
|
||||
"/servicecontrol:v2/AuditLog/response": response
|
||||
"/servicecontrol:v2/AuditLog/response/response": response
|
||||
"/servicecontrol:v2/AuditLog/serviceData": service_data
|
||||
"/servicecontrol:v2/AuditLog/serviceData/service_datum": service_datum
|
||||
"/servicecontrol:v2/AuditLog/serviceName": service_name
|
||||
"/servicecontrol:v2/AuditLog/status": status
|
||||
"/servicecontrol:v2/Auth": auth
|
||||
"/servicecontrol:v2/Auth/accessLevels": access_levels
|
||||
"/servicecontrol:v2/Auth/accessLevels/access_level": access_level
|
||||
"/servicecontrol:v2/Auth/audiences": audiences
|
||||
"/servicecontrol:v2/Auth/audiences/audience": audience
|
||||
"/servicecontrol:v2/Auth/claims": claims
|
||||
"/servicecontrol:v2/Auth/claims/claim": claim
|
||||
"/servicecontrol:v2/Auth/presenter": presenter
|
||||
"/servicecontrol:v2/Auth/principal": principal
|
||||
"/servicecontrol:v2/AuthenticationInfo": authentication_info
|
||||
"/servicecontrol:v2/AuthenticationInfo/authoritySelector": authority_selector
|
||||
"/servicecontrol:v2/AuthenticationInfo/principalEmail": principal_email
|
||||
"/servicecontrol:v2/AuthenticationInfo/principalSubject": principal_subject
|
||||
"/servicecontrol:v2/AuthenticationInfo/serviceAccountDelegationInfo": service_account_delegation_info
|
||||
"/servicecontrol:v2/AuthenticationInfo/serviceAccountDelegationInfo/service_account_delegation_info": service_account_delegation_info
|
||||
"/servicecontrol:v2/AuthenticationInfo/serviceAccountKeyName": service_account_key_name
|
||||
"/servicecontrol:v2/AuthenticationInfo/thirdPartyPrincipal": third_party_principal
|
||||
"/servicecontrol:v2/AuthenticationInfo/thirdPartyPrincipal/third_party_principal": third_party_principal
|
||||
"/servicecontrol:v2/AuthorizationInfo": authorization_info
|
||||
"/servicecontrol:v2/AuthorizationInfo/granted": granted
|
||||
"/servicecontrol:v2/AuthorizationInfo/permission": permission
|
||||
"/servicecontrol:v2/AuthorizationInfo/resource": resource
|
||||
"/servicecontrol:v2/AuthorizationInfo/resourceAttributes": resource_attributes
|
||||
"/servicecontrol:v2/CheckRequest": check_request
|
||||
"/servicecontrol:v2/CheckRequest/attributes": attributes
|
||||
"/servicecontrol:v2/CheckRequest/resources": resources
|
||||
"/servicecontrol:v2/CheckRequest/resources/resource": resource
|
||||
"/servicecontrol:v2/CheckRequest/serviceConfigId": service_config_id
|
||||
"/servicecontrol:v2/CheckResponse": check_response
|
||||
"/servicecontrol:v2/CheckResponse/headers": headers
|
||||
"/servicecontrol:v2/CheckResponse/headers/header": header
|
||||
"/servicecontrol:v2/CheckResponse/status": status
|
||||
"/servicecontrol:v2/FirstPartyPrincipal": first_party_principal
|
||||
"/servicecontrol:v2/FirstPartyPrincipal/principalEmail": principal_email
|
||||
"/servicecontrol:v2/FirstPartyPrincipal/serviceMetadata": service_metadata
|
||||
"/servicecontrol:v2/FirstPartyPrincipal/serviceMetadata/service_metadatum": service_metadatum
|
||||
"/servicecontrol:v2/Peer": peer
|
||||
"/servicecontrol:v2/Peer/ip": ip
|
||||
"/servicecontrol:v2/Peer/labels": labels
|
||||
"/servicecontrol:v2/Peer/labels/label": label
|
||||
"/servicecontrol:v2/Peer/port": port
|
||||
"/servicecontrol:v2/Peer/principal": principal
|
||||
"/servicecontrol:v2/Peer/regionCode": region_code
|
||||
"/servicecontrol:v2/ReportRequest": report_request
|
||||
"/servicecontrol:v2/ReportRequest/operations": operations
|
||||
"/servicecontrol:v2/ReportRequest/operations/operation": operation
|
||||
"/servicecontrol:v2/ReportRequest/serviceConfigId": service_config_id
|
||||
"/servicecontrol:v2/ReportResponse": report_response
|
||||
"/servicecontrol:v2/Request": request
|
||||
"/servicecontrol:v2/Request/auth": auth
|
||||
"/servicecontrol:v2/Request/headers": headers
|
||||
"/servicecontrol:v2/Request/headers/header": header
|
||||
"/servicecontrol:v2/Request/host": host
|
||||
"/servicecontrol:v2/Request/id": id
|
||||
"/servicecontrol:v2/Request/method": method_prop
|
||||
"/servicecontrol:v2/Request/path": path
|
||||
"/servicecontrol:v2/Request/protocol": protocol
|
||||
"/servicecontrol:v2/Request/query": query
|
||||
"/servicecontrol:v2/Request/reason": reason
|
||||
"/servicecontrol:v2/Request/scheme": scheme
|
||||
"/servicecontrol:v2/Request/size": size
|
||||
"/servicecontrol:v2/Request/time": time
|
||||
"/servicecontrol:v2/RequestMetadata": request_metadata
|
||||
"/servicecontrol:v2/RequestMetadata/callerIp": caller_ip
|
||||
"/servicecontrol:v2/RequestMetadata/callerNetwork": caller_network
|
||||
"/servicecontrol:v2/RequestMetadata/callerSuppliedUserAgent": caller_supplied_user_agent
|
||||
"/servicecontrol:v2/RequestMetadata/destinationAttributes": destination_attributes
|
||||
"/servicecontrol:v2/RequestMetadata/requestAttributes": request_attributes
|
||||
"/servicecontrol:v2/Resource": resource
|
||||
"/servicecontrol:v2/Resource/labels": labels
|
||||
"/servicecontrol:v2/Resource/labels/label": label
|
||||
"/servicecontrol:v2/Resource/name": name
|
||||
"/servicecontrol:v2/Resource/service": service
|
||||
"/servicecontrol:v2/Resource/type": type
|
||||
"/servicecontrol:v2/ResourceInfo": resource_info
|
||||
"/servicecontrol:v2/ResourceInfo/name": name
|
||||
"/servicecontrol:v2/ResourceInfo/permission": permission
|
||||
"/servicecontrol:v2/ResourceInfo/type": type
|
||||
"/servicecontrol:v2/ResourceLocation": resource_location
|
||||
"/servicecontrol:v2/ResourceLocation/currentLocations": current_locations
|
||||
"/servicecontrol:v2/ResourceLocation/currentLocations/current_location": current_location
|
||||
"/servicecontrol:v2/ResourceLocation/originalLocations": original_locations
|
||||
"/servicecontrol:v2/ResourceLocation/originalLocations/original_location": original_location
|
||||
"/servicecontrol:v2/Response": response
|
||||
"/servicecontrol:v2/Response/code": code
|
||||
"/servicecontrol:v2/Response/headers": headers
|
||||
"/servicecontrol:v2/Response/headers/header": header
|
||||
"/servicecontrol:v2/Response/size": size
|
||||
"/servicecontrol:v2/Response/time": time
|
||||
"/servicecontrol:v2/ServiceAccountDelegationInfo": service_account_delegation_info
|
||||
"/servicecontrol:v2/ServiceAccountDelegationInfo/firstPartyPrincipal": first_party_principal
|
||||
"/servicecontrol:v2/ServiceAccountDelegationInfo/thirdPartyPrincipal": third_party_principal
|
||||
"/servicecontrol:v2/SpanContext": span_context
|
||||
"/servicecontrol:v2/SpanContext/spanName": span_name
|
||||
"/servicecontrol:v2/Status": status
|
||||
"/servicecontrol:v2/Status/code": code
|
||||
"/servicecontrol:v2/Status/details": details
|
||||
"/servicecontrol:v2/Status/details/detail": detail
|
||||
"/servicecontrol:v2/Status/details/detail/detail": detail
|
||||
"/servicecontrol:v2/Status/message": message
|
||||
"/servicecontrol:v2/ThirdPartyPrincipal": third_party_principal
|
||||
"/servicecontrol:v2/ThirdPartyPrincipal/thirdPartyClaims": third_party_claims
|
||||
"/servicecontrol:v2/ThirdPartyPrincipal/thirdPartyClaims/third_party_claim": third_party_claim
|
||||
"/servicecontrol:v2/fields": fields
|
||||
"/servicecontrol:v2/key": key
|
||||
"/servicecontrol:v2/quotaUser": quota_user
|
||||
"/servicecontrol:v2/servicecontrol.services.check": check_service
|
||||
"/servicecontrol:v2/servicecontrol.services.check/serviceName": service_name
|
||||
"/servicecontrol:v2/servicecontrol.services.report": report_service
|
||||
"/servicecontrol:v2/servicecontrol.services.report/serviceName": service_name
|
||||
"/servicedirectory:v1beta1/Binding": binding
|
||||
"/servicedirectory:v1beta1/Binding/condition": condition
|
||||
"/servicedirectory:v1beta1/Binding/members": members
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/data-catalog/docs/
|
||||
module DatacatalogV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200719'
|
||||
REVISION = '20200728'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/healthcare
|
||||
module HealthcareV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200713'
|
||||
REVISION = '20200723'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -990,6 +990,9 @@ module Google
|
|||
# are equivalent to the GET requests specified in the Retrieve transaction.
|
||||
# The method returns an Operation which
|
||||
# will be marked successful when the deletion is complete.
|
||||
# Warning: Inserting instances into a study while a delete operation is
|
||||
# running for that study could result in the new instances not appearing in
|
||||
# search results until the deletion operation finishes.
|
||||
# @param [String] parent
|
||||
# @param [String] dicom_web_path
|
||||
# The path of the DeleteStudy request. For example, `studies/`study_uid``.
|
||||
|
@ -1227,6 +1230,9 @@ module Google
|
|||
# Retrieve transaction.
|
||||
# The method returns an Operation which
|
||||
# will be marked successful when the deletion is complete.
|
||||
# Warning: Inserting instances into a series while a delete operation is
|
||||
# running for that series could result in the new instances not appearing in
|
||||
# search results until the deletion operation finishes.
|
||||
# @param [String] parent
|
||||
# The name of the DICOM store that is being accessed. For example,
|
||||
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
||||
|
@ -2146,19 +2152,19 @@ module Google
|
|||
# Maximum number of resources in a page. Defaults to 100.
|
||||
# @param [String] _page_token
|
||||
# Used to retrieve the next or previous page of results
|
||||
# when using pagination. Value should be set to the value of page_token set
|
||||
# in next or previous page links' urls. Next and previous page are returned
|
||||
# when using pagination. Set `_page_token` to the value of _page_token set
|
||||
# in next or previous page links' url. Next and previous page are returned
|
||||
# in the response bundle's links field, where `link.relation` is "previous"
|
||||
# or "next".
|
||||
# Omit `page_token` if no previous request has been made.
|
||||
# Omit `_page_token` if no previous request has been made.
|
||||
# @param [String] _since
|
||||
# If provided, only resources updated after this time are
|
||||
# exported. The time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz.
|
||||
# returned. The time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz.
|
||||
# For example, `2015-02-07T13:28:17.239+02:00` or `2017-01-01T00:00:00Z`.
|
||||
# The time must be specified to the second and include a time zone.
|
||||
# @param [String] _type
|
||||
# String of comma-delimited FHIR resource types. If provided, only resources
|
||||
# of the specified resource type(s) will be returned.
|
||||
# of the specified resource type(s) are returned.
|
||||
# @param [String] end_
|
||||
# The response includes records prior to the end date. If no end date is
|
||||
# provided, all records subsequent to the start date are in scope.
|
||||
|
@ -3097,12 +3103,12 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a message and sends a notification to the Cloud Pub/Sub topic. If
|
||||
# configured, the MLLP adapter listens to messages created by this method and
|
||||
# sends those back to the hospital. A successful response indicates the
|
||||
# message has been persisted to storage and a Cloud Pub/Sub notification has
|
||||
# been sent. Sending to the hospital by the MLLP adapter happens
|
||||
# asynchronously.
|
||||
# Parses and stores an HL7v2 message. This method triggers an asynchronous
|
||||
# notification to any Cloud Pub/Sub topic configured in
|
||||
# projects.locations.datasets.hl7V2Stores.Hl7V2NotificationConfig, if the
|
||||
# filtering matches the message. If an MLLP adapter is configured to listen
|
||||
# to a Cloud Pub/Sub topic, the adapter transmits the message when a
|
||||
# notification is received.
|
||||
# @param [String] parent
|
||||
# The name of the dataset this message belongs to.
|
||||
# @param [Google::Apis::HealthcareV1::CreateMessageRequest] create_message_request_object
|
||||
|
@ -3199,9 +3205,15 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Ingests a new HL7v2 message from the hospital and sends a notification to
|
||||
# the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was
|
||||
# successfully stored. Otherwise an error is returned.
|
||||
# Parses and stores an HL7v2 message. This method triggers an asynchronous
|
||||
# notification to any Cloud Pub/Sub topic configured in
|
||||
# projects.locations.datasets.hl7V2Stores.Hl7V2NotificationConfig, if the
|
||||
# filtering matches the message. If an MLLP adapter is configured to listen
|
||||
# to a Cloud Pub/Sub topic, the adapter transmits the message when a
|
||||
# notification is received. This method also generates a response
|
||||
# containing an HL7v2 acknowledgement (`ACK`) message when successful or a
|
||||
# negative acknowledgement (`NACK`) message in case of error, suitable for
|
||||
# replying to HL7v2 interface systems that expect these acknowledgements.
|
||||
# @param [String] parent
|
||||
# The name of the HL7v2 store this message belongs to.
|
||||
# @param [Google::Apis::HealthcareV1::IngestMessageRequest] ingest_message_request_object
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/healthcare
|
||||
module HealthcareV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200713'
|
||||
REVISION = '20200723'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1075,8 +1075,8 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response for failed annotation export operations. This structure is
|
||||
# included in error
|
||||
# Response for failed annotation export operations. This structure
|
||||
# is included in error
|
||||
# details upon operation completion.
|
||||
class ExportAnnotationsErrorDetails
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1144,7 +1144,8 @@ module Google
|
|||
class ExportAnnotationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The annotation_store used for the export operation, in the format of
|
||||
# The annotation_store used for the export operation,
|
||||
# in the format of
|
||||
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
||||
# annotationStores/`annotation_store_id``.
|
||||
# Corresponds to the JSON property `annotationStore`
|
||||
|
@ -1176,7 +1177,7 @@ module Google
|
|||
class ExportDicomDataRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The BigQuery table where the server writes the output.
|
||||
# The BigQuery table where the server writes output.
|
||||
# Corresponds to the JSON property `bigqueryDestination`
|
||||
# @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1DicomBigQueryDestination]
|
||||
attr_accessor :bigquery_destination
|
||||
|
@ -1611,6 +1612,39 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Specifies the configuration for importing data from Cloud Storage.
|
||||
class GcsSource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Points to a Cloud Storage URI containing file(s) to import.
|
||||
# The URI must be in the following format: `gs://`bucket_id`/`object_id``.
|
||||
# The URI can include wildcards in `object_id` and thus identify multiple
|
||||
# files. Supported wildcards:
|
||||
# * `*` to match 0 or more non-separator characters
|
||||
# * `**` to match 0 or more characters (including separators). Must be used
|
||||
# at the end of a path and with no other wildcards in the
|
||||
# path. Can also be used with a file extension (such as .ndjson), which
|
||||
# imports all files with the extension in the specified directory and
|
||||
# its sub-directories. For example, `gs://my-bucket/my-directory/**.ndjson`
|
||||
# imports all files with `.ndjson` extensions in `my-directory/` and its
|
||||
# sub-directories.
|
||||
# * `?` to match 1 character
|
||||
# Files matching the wildcard are expected to contain content only, no
|
||||
# metadata.
|
||||
# Corresponds to the JSON property `uri`
|
||||
# @return [String]
|
||||
attr_accessor :uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@uri = args[:uri] if args.key?(:uri)
|
||||
end
|
||||
end
|
||||
|
||||
# The BigQuery table for export.
|
||||
class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1750,14 +1784,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The BigQuery table where the server writes the output.
|
||||
# The BigQuery table where the server writes output.
|
||||
class GoogleCloudHealthcareV1beta1DicomBigQueryDestination
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the destination table already exists and this flag is `TRUE`, the table
|
||||
# is overwritten by the contents of the DICOM store. If the flag is not
|
||||
# set and the destination table already exists, the export call returns an
|
||||
# error.
|
||||
# This flag is being replaced by write_disposition which provides additional
|
||||
# options. force=false is equivalent to WRITE_EMPTY and force=true is
|
||||
# equivalent to WRITE_TRUNCATE.
|
||||
# Corresponds to the JSON property `force`
|
||||
# @return [Boolean]
|
||||
attr_accessor :force
|
||||
|
@ -1885,9 +1918,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :dataset_uri
|
||||
|
||||
# If this flag is `TRUE`, all tables will be deleted from the dataset before
|
||||
# the new exported tables are written. If the flag is not set and the
|
||||
# destination dataset contains tables, the export call returns an error.
|
||||
# This flag is being replaced by write_disposition which provides additional
|
||||
# options. force=false is equivalent to WRITE_EMPTY and force=true is
|
||||
# equivalent to WRITE_TRUNCATE.
|
||||
# Corresponds to the JSON property `force`
|
||||
# @return [Boolean]
|
||||
attr_accessor :force
|
||||
|
@ -2510,16 +2543,16 @@ module Google
|
|||
class ImportAnnotationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The annotation_store that the annotations were imported to. The name
|
||||
# is in the format
|
||||
# The annotation_store that the annotations were imported to,
|
||||
# in the format
|
||||
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
||||
# annotationStores/`annotation_store_id``.
|
||||
# Corresponds to the JSON property `annotationStore`
|
||||
# @return [String]
|
||||
attr_accessor :annotation_store
|
||||
|
||||
# The number of the input annotations. All input have been imported
|
||||
# successfully.
|
||||
# The number of the input annotations. All input have been
|
||||
# imported successfully.
|
||||
# Corresponds to the JSON property `successCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :success_count
|
||||
|
@ -2591,6 +2624,41 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request to import messages.
|
||||
class ImportMessagesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Specifies the configuration for importing data from Cloud Storage.
|
||||
# Corresponds to the JSON property `gcsSource`
|
||||
# @return [Google::Apis::HealthcareV1beta1::GcsSource]
|
||||
attr_accessor :gcs_source
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
||||
end
|
||||
end
|
||||
|
||||
# Final response of importing messages.
|
||||
# This structure is included in the
|
||||
# response to describe the detailed
|
||||
# outcome. It is only included when the operation finishes successfully.
|
||||
class ImportMessagesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Request to import resources.
|
||||
class ImportResourcesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -3722,7 +3790,7 @@ module Google
|
|||
# @return [Array<Google::Apis::HealthcareV1beta1::Hl7SchemaConfig>]
|
||||
attr_accessor :schemas
|
||||
|
||||
# Determines how messages that don't parse successfully are handled.
|
||||
# Determines how messages that fail to parse are handled.
|
||||
# Corresponds to the JSON property `schematizedParsingType`
|
||||
# @return [String]
|
||||
attr_accessor :schematized_parsing_type
|
||||
|
|
|
@ -280,6 +280,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GcsSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -454,6 +460,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImportMessagesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImportMessagesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImportResourcesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -1129,6 +1147,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GcsSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1375,6 +1400,20 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ImportMessagesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GcsSource, decorator: Google::Apis::HealthcareV1beta1::GcsSource::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ImportMessagesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ImportResourcesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -547,7 +547,8 @@ module Google
|
|||
# Errors are logged to Cloud Logging
|
||||
# (see [Viewing logs](/healthcare/docs/how-tos/logging)).
|
||||
# @param [String] eval_store
|
||||
# The Annotation store to compare against `golden_store`, in the format of
|
||||
# The Annotation store to compare against `golden_store`, in the
|
||||
# format of
|
||||
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
||||
# annotationStores/`annotation_store_id``.
|
||||
# @param [Google::Apis::HealthcareV1beta1::EvaluateAnnotationStoreRequest] evaluate_annotation_store_request_object
|
||||
|
@ -720,8 +721,8 @@ module Google
|
|||
# Errors are also logged to Cloud Logging
|
||||
# (see [Viewing logs](/healthcare/docs/how-tos/logging)).
|
||||
# @param [String] annotation_store
|
||||
# The name of the Annotation store to which the server imports annotations,
|
||||
# in the format
|
||||
# The name of the Annotation store to which the server imports
|
||||
# annotations, in the format
|
||||
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
||||
# annotationStores/`annotation_store_id``.
|
||||
# @param [Google::Apis::HealthcareV1beta1::ImportAnnotationsRequest] import_annotations_request_object
|
||||
|
@ -3013,14 +3014,14 @@ module Google
|
|||
# Maximum number of resources in a page. Defaults to 100.
|
||||
# @param [String] _page_token
|
||||
# Used to retrieve the next or previous page of results
|
||||
# when using pagination. Value should be set to the value of `page_token` set
|
||||
# in next or previous page links' URLs. Next and previous page are returned
|
||||
# when using pagination. Set `_page_token` to the value of _page_token set
|
||||
# in next or previous page links' url. Next and previous page are returned
|
||||
# in the response bundle's links field, where `link.relation` is "previous"
|
||||
# or "next".
|
||||
# Omit `page_token` if no previous request has been made.
|
||||
# Omit `_page_token` if no previous request has been made.
|
||||
# @param [String] _since
|
||||
# If provided, only resources updated after this time are
|
||||
# exported. The time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz.
|
||||
# returned. The time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz.
|
||||
# For example, `2015-02-07T13:28:17.239+02:00` or `2017-01-01T00:00:00Z`.
|
||||
# The time must be specified to the second and include a time zone.
|
||||
# @param [String] _type
|
||||
|
@ -4014,6 +4015,70 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Import messages to the HL7v2 store by loading data from the specified
|
||||
# sources. This method is optimized to load large quantities of data using
|
||||
# import semantics that ignore some HL7v2 store configuration options and are
|
||||
# not suitable for all use cases. It is primarily intended to load data into
|
||||
# an empty HL7v2 store that is not being used by other clients.
|
||||
# An existing message will be overwritten if a duplicate message is imported.
|
||||
# A duplicate message is a message with the same raw bytes as a message that
|
||||
# already exists in this HL7v2 store. When a message is overwritten, its
|
||||
# labels will also be overwritten.
|
||||
# The import operation is idempotent unless the input data contains multiple
|
||||
# valid messages with the same raw bytes but different labels. In that case,
|
||||
# after the import completes, the store contains exactly one message
|
||||
# with those raw bytes but there is no ordering guarantee on which version
|
||||
# of the labels it has. The operation result counters do not count
|
||||
# duplicated raw bytes as an error and count one success for each message in
|
||||
# the input, which might result in a success count larger than the number
|
||||
# of messages in the HL7v2 store.
|
||||
# If some messages fail to import, for example due to parsing errors,
|
||||
# successfully imported messages are not rolled back.
|
||||
# This method returns an Operation that can
|
||||
# be used to track the status of the import by calling
|
||||
# GetOperation.
|
||||
# Immediate fatal errors appear in the
|
||||
# error field, errors are also logged
|
||||
# to Cloud Logging (see [Viewing
|
||||
# logs](/healthcare/docs/how-tos/logging)). Otherwise, when the operation
|
||||
# finishes, a response of type ImportMessagesResponse is returned in the
|
||||
# response field.
|
||||
# The metadata field type for this
|
||||
# operation is OperationMetadata.
|
||||
# @param [String] name
|
||||
# The name of the target HL7v2 store, in the format
|
||||
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
||||
# hl7v2Stores/`hl7v2_store_id``
|
||||
# @param [Google::Apis::HealthcareV1beta1::ImportMessagesRequest] import_messages_request_object
|
||||
# @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::HealthcareV1beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::HealthcareV1beta1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def import_hl7_v2_store_messages(name, import_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+name}:import', options)
|
||||
command.request_representation = Google::Apis::HealthcareV1beta1::ImportMessagesRequest::Representation
|
||||
command.request_object = import_messages_request_object
|
||||
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::HealthcareV1beta1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the HL7v2 stores in the given dataset.
|
||||
# @param [String] parent
|
||||
# Name of the dataset.
|
||||
|
@ -4171,12 +4236,12 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a message and sends a notification to the Cloud Pub/Sub topic. If
|
||||
# configured, the MLLP adapter listens to messages created by this method and
|
||||
# sends those back to the hospital. A successful response indicates the
|
||||
# message has been persisted to storage and a Cloud Pub/Sub notification has
|
||||
# been sent. Sending to the hospital by the MLLP adapter happens
|
||||
# asynchronously.
|
||||
# Parses and stores an HL7v2 message. This method triggers an asynchronous
|
||||
# notification to any Cloud Pub/Sub topic configured in
|
||||
# projects.locations.datasets.hl7V2Stores.Hl7V2NotificationConfig, if the
|
||||
# filtering matches the message. If an MLLP adapter is configured to listen
|
||||
# to a Cloud Pub/Sub topic, the adapter transmits the message when a
|
||||
# notification is received.
|
||||
# @param [String] parent
|
||||
# The name of the dataset this message belongs to.
|
||||
# @param [Google::Apis::HealthcareV1beta1::CreateMessageRequest] create_message_request_object
|
||||
|
@ -4273,9 +4338,15 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Ingests a new HL7v2 message from the hospital and sends a notification to
|
||||
# the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was
|
||||
# successfully stored. Otherwise an error is returned.
|
||||
# Parses and stores an HL7v2 message. This method triggers an asynchronous
|
||||
# notification to any Cloud Pub/Sub topic configured in
|
||||
# projects.locations.datasets.hl7V2Stores.Hl7V2NotificationConfig, if the
|
||||
# filtering matches the message. If an MLLP adapter is configured to listen
|
||||
# to a Cloud Pub/Sub topic, the adapter transmits the message when a
|
||||
# notification is received. This method also generates a response
|
||||
# containing an HL7v2 acknowledgement (`ACK`) message when successful or a
|
||||
# negative acknowledgement (`NACK`) message in case of error, suitable for
|
||||
# replying to HL7v2 interface systems that expect these acknowledgements.
|
||||
# @param [String] parent
|
||||
# The name of the HL7v2 store this message belongs to.
|
||||
# @param [Google::Apis::HealthcareV1beta1::IngestMessageRequest] ingest_message_request_object
|
||||
|
|
|
@ -28,7 +28,7 @@ module Google
|
|||
# @see https://cloud.google.com/logging/docs/
|
||||
module LoggingV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200619'
|
||||
REVISION = '20200724'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1195,9 +1195,9 @@ module Google
|
|||
# deleting or altering it stops data collection and makes the metric type's
|
||||
# existing data unusable.The following are specific rules for service defined
|
||||
# Monitoring metric descriptors:
|
||||
# type, metric_kind, value_type, description, display_name, launch_stage fields
|
||||
# are all required. The unit field must be specified if the value_type is any
|
||||
# of DOUBLE, INT64, DISTRIBUTION.
|
||||
# type, metric_kind, value_type and description fields are all required. The
|
||||
# unit field must be specified if the value_type is any of DOUBLE, INT64,
|
||||
# DISTRIBUTION.
|
||||
# Maximum of default 500 metric descriptors per service is allowed.
|
||||
# Maximum of default 10 labels per metric descriptor is allowed.The default
|
||||
# maximum limit can be overridden. Please follow https://cloud.google.com/
|
||||
|
@ -1394,9 +1394,9 @@ module Google
|
|||
# deleting or altering it stops data collection and makes the metric type's
|
||||
# existing data unusable.The following are specific rules for service defined
|
||||
# Monitoring metric descriptors:
|
||||
# type, metric_kind, value_type, description, display_name, launch_stage fields
|
||||
# are all required. The unit field must be specified if the value_type is any
|
||||
# of DOUBLE, INT64, DISTRIBUTION.
|
||||
# type, metric_kind, value_type and description fields are all required. The
|
||||
# unit field must be specified if the value_type is any of DOUBLE, INT64,
|
||||
# DISTRIBUTION.
|
||||
# Maximum of default 500 metric descriptors per service is allowed.
|
||||
# Maximum of default 10 labels per metric descriptor is allowed.The default
|
||||
# maximum limit can be overridden. Please follow https://cloud.google.com/
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/memorystore/
|
||||
module MemcacheV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200721'
|
||||
REVISION = '20200729'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -22,110 +22,22 @@ module Google
|
|||
module Apis
|
||||
module MemcacheV1
|
||||
|
||||
# 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
|
||||
# Request for ApplyParameters.
|
||||
class ApplyParametersRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The configuration for logging of each type of permission.
|
||||
# Corresponds to the JSON property `auditLogConfigs`
|
||||
# @return [Array<Google::Apis::MemcacheV1::AuditLogConfig>]
|
||||
attr_accessor :audit_log_configs
|
||||
# Whether to apply instance-level parameter group to all nodes. If set to
|
||||
# true, will explicitly restrict users from specifying any nodes, and apply
|
||||
# parameter group updates to all nodes within the instance.
|
||||
# Corresponds to the JSON property `applyAll`
|
||||
# @return [Boolean]
|
||||
attr_accessor :apply_all
|
||||
alias_method :apply_all?, :apply_all
|
||||
|
||||
# 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`
|
||||
# Nodes to which we should apply the instance-level parameter group.
|
||||
# Corresponds to the JSON property `nodeIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :exempted_members
|
||||
|
||||
# The log type that this config enables.
|
||||
# Corresponds to the JSON property `logType`
|
||||
# @return [String]
|
||||
attr_accessor :log_type
|
||||
attr_accessor :node_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
|
@ -133,91 +45,8 @@ module Google
|
|||
|
||||
# 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::MemcacheV1::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<String>]
|
||||
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)
|
||||
@apply_all = args[:apply_all] if args.key?(:apply_all)
|
||||
@node_ids = args[:node_ids] if args.key?(:node_ids)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -253,55 +82,48 @@ module Google
|
|||
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
|
||||
# Represents the metadata of a long-running operation.
|
||||
class GoogleCloudMemcacheV1OperationMetadata
|
||||
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`
|
||||
# Output only. API version used to start the operation.
|
||||
# Corresponds to the JSON property `apiVersion`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
attr_accessor :api_version
|
||||
|
||||
# Textual representation of an expression in Common Expression Language
|
||||
# syntax.
|
||||
# Corresponds to the JSON property `expression`
|
||||
# @return [String]
|
||||
attr_accessor :expression
|
||||
# Output only. Identifies whether the user has requested cancellation
|
||||
# of the operation. Operations that have successfully been cancelled
|
||||
# have Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# Corresponds to the JSON property `cancelRequested`
|
||||
# @return [Boolean]
|
||||
attr_accessor :cancel_requested
|
||||
alias_method :cancel_requested?, :cancel_requested
|
||||
|
||||
# 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`
|
||||
# Output only. Time when the operation was created.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :location
|
||||
attr_accessor :create_time
|
||||
|
||||
# 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`
|
||||
# Output only. Time when the operation finished running.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
attr_accessor :end_time
|
||||
|
||||
# Output only. Human-readable status of the operation, if any.
|
||||
# Corresponds to the JSON property `statusDetail`
|
||||
# @return [String]
|
||||
attr_accessor :status_detail
|
||||
|
||||
# Output only. Server-defined resource path for the target of the operation.
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
attr_accessor :target
|
||||
|
||||
# Output only. Name of the verb executed by the operation.
|
||||
# Corresponds to the JSON property `verb`
|
||||
# @return [String]
|
||||
attr_accessor :verb
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
|
@ -309,10 +131,13 @@ module Google
|
|||
|
||||
# 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)
|
||||
@api_version = args[:api_version] if args.key?(:api_version)
|
||||
@cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
||||
@target = args[:target] if args.key?(:target)
|
||||
@verb = args[:verb] if args.key?(:verb)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -713,6 +538,199 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Instance
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The full name of the Google Compute Engine
|
||||
# [network](/compute/docs/networks-and-firewalls#networks) to which the
|
||||
# instance is connected. If left unspecified, the `default` network
|
||||
# will be used.
|
||||
# Corresponds to the JSON property `authorizedNetwork`
|
||||
# @return [String]
|
||||
attr_accessor :authorized_network
|
||||
|
||||
# Output only. The time the instance was created.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# Output only. Endpoint for Discovery API
|
||||
# Corresponds to the JSON property `discoveryEndpoint`
|
||||
# @return [String]
|
||||
attr_accessor :discovery_endpoint
|
||||
|
||||
# User provided name for the instance only used for display
|
||||
# purposes. Cannot be more than 80 characters.
|
||||
# Corresponds to the JSON property `displayName`
|
||||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# List of messages that describe current statuses of memcached instance.
|
||||
# Corresponds to the JSON property `instanceMessages`
|
||||
# @return [Array<Google::Apis::MemcacheV1::InstanceMessage>]
|
||||
attr_accessor :instance_messages
|
||||
|
||||
# Resource labels to represent user-provided metadata.
|
||||
# Refer to cloud documentation on labels for more details.
|
||||
# https://cloud.google.com/compute/docs/labeling-resources
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Output only. The full version of memcached server running on this instance.
|
||||
# System automatically determines the full memcached version for an instance
|
||||
# based on the input MemcacheVersion.
|
||||
# The full version format will be "memcached-1.5.16".
|
||||
# Corresponds to the JSON property `memcacheFullVersion`
|
||||
# @return [String]
|
||||
attr_accessor :memcache_full_version
|
||||
|
||||
# Output only. List of Memcached nodes.
|
||||
# Refer to [Node] message for more details.
|
||||
# Corresponds to the JSON property `memcacheNodes`
|
||||
# @return [Array<Google::Apis::MemcacheV1::Node>]
|
||||
attr_accessor :memcache_nodes
|
||||
|
||||
# The major version of Memcached software.
|
||||
# If not provided, latest supported version will be used. Currently the
|
||||
# latest supported major version is MEMCACHE_1_5.
|
||||
# The minor version will be automatically determined by our system based on
|
||||
# the latest supported minor version.
|
||||
# Corresponds to the JSON property `memcacheVersion`
|
||||
# @return [String]
|
||||
attr_accessor :memcache_version
|
||||
|
||||
# Required. Unique name of the resource in this scope including project and
|
||||
# location using the form:
|
||||
# `projects/`project_id`/locations/`location_id`/instances/`instance_id``
|
||||
# Note: Memcached instances are managed and addressed at regional level so
|
||||
# location_id here refers to a GCP region; however, users may choose which
|
||||
# zones Memcached nodes within an instances should be provisioned in.
|
||||
# Refer to [zones] field for more details.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Configuration for a Memcached Node.
|
||||
# Corresponds to the JSON property `nodeConfig`
|
||||
# @return [Google::Apis::MemcacheV1::NodeConfig]
|
||||
attr_accessor :node_config
|
||||
|
||||
# Required. Number of nodes in the Memcached instance.
|
||||
# Corresponds to the JSON property `nodeCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :node_count
|
||||
|
||||
# Optional: User defined parameters to apply to the memcached process
|
||||
# on each node.
|
||||
# Corresponds to the JSON property `parameters`
|
||||
# @return [Google::Apis::MemcacheV1::MemcacheParameters]
|
||||
attr_accessor :parameters
|
||||
|
||||
# Output only. The state of this Memcached instance.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
||||
# Output only. The time the instance was updated.
|
||||
# Corresponds to the JSON property `updateTime`
|
||||
# @return [String]
|
||||
attr_accessor :update_time
|
||||
|
||||
# Zones where Memcached nodes should be provisioned in.
|
||||
# Memcached nodes will be equally distributed across these zones. If not
|
||||
# provided, the service will by default create nodes in all zones in the
|
||||
# region for the instance.
|
||||
# Corresponds to the JSON property `zones`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :zones
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@authorized_network = args[:authorized_network] if args.key?(:authorized_network)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@discovery_endpoint = args[:discovery_endpoint] if args.key?(:discovery_endpoint)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@instance_messages = args[:instance_messages] if args.key?(:instance_messages)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@memcache_full_version = args[:memcache_full_version] if args.key?(:memcache_full_version)
|
||||
@memcache_nodes = args[:memcache_nodes] if args.key?(:memcache_nodes)
|
||||
@memcache_version = args[:memcache_version] if args.key?(:memcache_version)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@node_config = args[:node_config] if args.key?(:node_config)
|
||||
@node_count = args[:node_count] if args.key?(:node_count)
|
||||
@parameters = args[:parameters] if args.key?(:parameters)
|
||||
@state = args[:state] if args.key?(:state)
|
||||
@update_time = args[:update_time] if args.key?(:update_time)
|
||||
@zones = args[:zones] if args.key?(:zones)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class InstanceMessage
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A code that correspond to one type of user-facing message.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
# Message on memcached instance which will be exposed to users.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
|
||||
# Response for ListInstances.
|
||||
class ListInstancesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Token to retrieve the next page of results, or empty if there are no more
|
||||
# results in the list.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of Memcached instances in the project in the specified location,
|
||||
# or across all locations.
|
||||
# If the `location_id` in the parent field of the request is "-", all regions
|
||||
# available to the project are queried, and the results aggregated.
|
||||
# Corresponds to the JSON property `resources`
|
||||
# @return [Array<Google::Apis::MemcacheV1::Instance>]
|
||||
attr_accessor :resources
|
||||
|
||||
# Locations that could not be reached.
|
||||
# Corresponds to the JSON property `unreachable`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :unreachable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@resources = args[:resources] if args.key?(:resources)
|
||||
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Locations.ListLocations.
|
||||
class ListLocationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -831,6 +849,110 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class MemcacheParameters
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. The unique ID associated with this set of parameters. Users
|
||||
# can use this id to determine if the parameters associated with the instance
|
||||
# differ from the parameters associated with the nodes and any action needs
|
||||
# to be taken to apply parameters on nodes.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# User defined set of parameters to use in the memcached process.
|
||||
# Corresponds to the JSON property `params`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :params
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@params = args[:params] if args.key?(:params)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Node
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. Hostname or IP address of the Memcached node used by the
|
||||
# clients to connect to the Memcached server on this node.
|
||||
# Corresponds to the JSON property `host`
|
||||
# @return [String]
|
||||
attr_accessor :host
|
||||
|
||||
# Output only. Identifier of the Memcached node. The node id does not
|
||||
# include project or location like the Memcached instance name.
|
||||
# Corresponds to the JSON property `nodeId`
|
||||
# @return [String]
|
||||
attr_accessor :node_id
|
||||
|
||||
# User defined parameters currently applied to the node.
|
||||
# Corresponds to the JSON property `parameters`
|
||||
# @return [Google::Apis::MemcacheV1::MemcacheParameters]
|
||||
attr_accessor :parameters
|
||||
|
||||
# Output only. The port number of the Memcached server on this node.
|
||||
# Corresponds to the JSON property `port`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :port
|
||||
|
||||
# Output only. Current state of the Memcached node.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
||||
# Output only. Location (GCP Zone) for the Memcached node.
|
||||
# Corresponds to the JSON property `zone`
|
||||
# @return [String]
|
||||
attr_accessor :zone
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@host = args[:host] if args.key?(:host)
|
||||
@node_id = args[:node_id] if args.key?(:node_id)
|
||||
@parameters = args[:parameters] if args.key?(:parameters)
|
||||
@port = args[:port] if args.key?(:port)
|
||||
@state = args[:state] if args.key?(:state)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
end
|
||||
end
|
||||
|
||||
# Configuration for a Memcached Node.
|
||||
class NodeConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. Number of cpus per Memcached node.
|
||||
# Corresponds to the JSON property `cpuCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :cpu_count
|
||||
|
||||
# Required. Memory size in MiB for each Memcached node.
|
||||
# Corresponds to the JSON property `memorySizeMb`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :memory_size_mb
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cpu_count = args[:cpu_count] if args.key?(:cpu_count)
|
||||
@memory_size_mb = args[:memory_size_mb] if args.key?(:memory_size_mb)
|
||||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
|
@ -954,222 +1076,6 @@ module Google
|
|||
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<Google::Apis::MemcacheV1::AuditConfig>]
|
||||
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<Google::Apis::MemcacheV1::Binding>]
|
||||
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
|
||||
|
||||
# Request message for `SetIamPolicy` method.
|
||||
class SetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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 `policy`
|
||||
# @return [Google::Apis::MemcacheV1::Policy]
|
||||
attr_accessor :policy
|
||||
|
||||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@policy = args[:policy] if args.key?(:policy)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
|
@ -1209,17 +1115,19 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for `TestIamPermissions` method.
|
||||
class TestIamPermissionsRequest
|
||||
# Request for UpdateParameters.
|
||||
class UpdateParametersRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The set of permissions to check for the `resource`. Permissions with
|
||||
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
||||
# information see
|
||||
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
||||
# Corresponds to the JSON property `permissions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :permissions
|
||||
# The parameters to apply to the instance.
|
||||
# Corresponds to the JSON property `parameters`
|
||||
# @return [Google::Apis::MemcacheV1::MemcacheParameters]
|
||||
attr_accessor :parameters
|
||||
|
||||
# Required. Mask of fields to update.
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
|
@ -1227,27 +1135,8 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@permissions = args[:permissions] if args.key?(:permissions)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for `TestIamPermissions` method.
|
||||
class TestIamPermissionsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
||||
# allowed.
|
||||
# Corresponds to the JSON property `permissions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :permissions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@permissions = args[:permissions] if args.key?(:permissions)
|
||||
@parameters = args[:parameters] if args.key?(:parameters)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -22,19 +22,7 @@ module Google
|
|||
module Apis
|
||||
module MemcacheV1
|
||||
|
||||
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 ApplyParametersRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -52,7 +40,7 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Expr
|
||||
class GoogleCloudMemcacheV1OperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -106,6 +94,24 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Instance
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InstanceMessage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListInstancesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -130,6 +136,24 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MemcacheParameters
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Node
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodeConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -142,31 +166,13 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
class UpdateParametersRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -178,30 +184,11 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
class ApplyParametersRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::MemcacheV1::AuditLogConfig, decorator: Google::Apis::MemcacheV1::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::MemcacheV1::Expr, decorator: Google::Apis::MemcacheV1::Expr::Representation
|
||||
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
property :apply_all, as: 'applyAll'
|
||||
collection :node_ids, as: 'nodeIds'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -217,13 +204,16 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Expr
|
||||
class GoogleCloudMemcacheV1OperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :expression, as: 'expression'
|
||||
property :location, as: 'location'
|
||||
property :title, as: 'title'
|
||||
property :api_version, as: 'apiVersion'
|
||||
property :cancel_requested, as: 'cancelRequested'
|
||||
property :create_time, as: 'createTime'
|
||||
property :end_time, as: 'endTime'
|
||||
property :status_detail, as: 'statusDetail'
|
||||
property :target, as: 'target'
|
||||
property :verb, as: 'verb'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -318,6 +308,50 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Instance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :authorized_network, as: 'authorizedNetwork'
|
||||
property :create_time, as: 'createTime'
|
||||
property :discovery_endpoint, as: 'discoveryEndpoint'
|
||||
property :display_name, as: 'displayName'
|
||||
collection :instance_messages, as: 'instanceMessages', class: Google::Apis::MemcacheV1::InstanceMessage, decorator: Google::Apis::MemcacheV1::InstanceMessage::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :memcache_full_version, as: 'memcacheFullVersion'
|
||||
collection :memcache_nodes, as: 'memcacheNodes', class: Google::Apis::MemcacheV1::Node, decorator: Google::Apis::MemcacheV1::Node::Representation
|
||||
|
||||
property :memcache_version, as: 'memcacheVersion'
|
||||
property :name, as: 'name'
|
||||
property :node_config, as: 'nodeConfig', class: Google::Apis::MemcacheV1::NodeConfig, decorator: Google::Apis::MemcacheV1::NodeConfig::Representation
|
||||
|
||||
property :node_count, as: 'nodeCount'
|
||||
property :parameters, as: 'parameters', class: Google::Apis::MemcacheV1::MemcacheParameters, decorator: Google::Apis::MemcacheV1::MemcacheParameters::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :update_time, as: 'updateTime'
|
||||
collection :zones, as: 'zones'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceMessage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class ListInstancesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :resources, as: 'resources', class: Google::Apis::MemcacheV1::Instance, decorator: Google::Apis::MemcacheV1::Instance::Representation
|
||||
|
||||
collection :unreachable, as: 'unreachable'
|
||||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -355,6 +389,35 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MemcacheParameters
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
hash :params, as: 'params'
|
||||
end
|
||||
end
|
||||
|
||||
class Node
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :host, as: 'host'
|
||||
property :node_id, as: 'nodeId'
|
||||
property :parameters, as: 'parameters', class: Google::Apis::MemcacheV1::MemcacheParameters, decorator: Google::Apis::MemcacheV1::MemcacheParameters::Representation
|
||||
|
||||
property :port, as: 'port'
|
||||
property :state, as: 'state'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class NodeConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cpu_count, as: 'cpuCount'
|
||||
property :memory_size_mb, as: 'memorySizeMb'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -380,27 +443,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::MemcacheV1::AuditConfig, decorator: Google::Apis::MemcacheV1::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::MemcacheV1::Binding, decorator: Google::Apis::MemcacheV1::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::MemcacheV1::Policy, decorator: Google::Apis::MemcacheV1::Policy::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -410,17 +452,12 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class UpdateParametersRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
property :parameters, as: 'parameters', class: Google::Apis::MemcacheV1::MemcacheParameters, decorator: Google::Apis::MemcacheV1::MemcacheParameters::Representation
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -117,22 +117,13 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the access control policy for a resource.
|
||||
# Returns an empty policy if the resource exists and does not have a policy
|
||||
# set.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned.
|
||||
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||
# rejected.
|
||||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# ApplyParameters will update current set of Parameters to the set of
|
||||
# specified nodes of the Memcached Instance.
|
||||
# @param [String] name
|
||||
# Required. Resource name of the Memcached instance for which parameter group
|
||||
# updates
|
||||
# should be applied.
|
||||
# @param [Google::Apis::MemcacheV1::ApplyParametersRequest] apply_parameters_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -142,32 +133,40 @@ module Google
|
|||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::MemcacheV1::Policy] parsed result object
|
||||
# @yieldparam result [Google::Apis::MemcacheV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MemcacheV1::Policy]
|
||||
# @return [Google::Apis::MemcacheV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::MemcacheV1::Policy::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
def apply_instance_parameters(name, apply_parameters_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:applyParameters', options)
|
||||
command.request_representation = Google::Apis::MemcacheV1::ApplyParametersRequest::Representation
|
||||
command.request_object = apply_parameters_request_object
|
||||
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::MemcacheV1::SetIamPolicyRequest] set_iam_policy_request_object
|
||||
# Creates a new Instance in a given project and location.
|
||||
# @param [String] parent
|
||||
# Required. The resource name of the instance location using the form:
|
||||
# `projects/`project_id`/locations/`location_id``
|
||||
# where `location_id` refers to a GCP region
|
||||
# @param [Google::Apis::MemcacheV1::Instance] instance_object
|
||||
# @param [String] instance_id
|
||||
# Required. The logical name of the Memcached instance in the user
|
||||
# project with the following restrictions:
|
||||
# * Must contain only lowercase letters, numbers, and hyphens.
|
||||
# * Must start with a letter.
|
||||
# * Must be between 1-40 characters.
|
||||
# * Must end with a number or a letter.
|
||||
# * Must be unique within the user project / location
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -177,36 +176,32 @@ module Google
|
|||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::MemcacheV1::Policy] parsed result object
|
||||
# @yieldparam result [Google::Apis::MemcacheV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MemcacheV1::Policy]
|
||||
# @return [Google::Apis::MemcacheV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::MemcacheV1::SetIamPolicyRequest::Representation
|
||||
command.request_object = set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::MemcacheV1::Policy::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/instances', options)
|
||||
command.request_representation = Google::Apis::MemcacheV1::Instance::Representation
|
||||
command.request_object = instance_object
|
||||
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::Operation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['instanceId'] = instance_id unless instance_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a `NOT_FOUND` error.
|
||||
# Note: This operation is designed to be used for building permission-aware
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::MemcacheV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# Deletes a single Instance.
|
||||
# @param [String] name
|
||||
# Required. Memcached instance resource name in the format:
|
||||
# `projects/`project_id`/locations/`location_id`/instances/`instance_id``
|
||||
# where `location_id` refers to a GCP region
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -216,21 +211,182 @@ module Google
|
|||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::MemcacheV1::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam result [Google::Apis::MemcacheV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MemcacheV1::TestIamPermissionsResponse]
|
||||
# @return [Google::Apis::MemcacheV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::MemcacheV1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::MemcacheV1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets details of a single Instance.
|
||||
# @param [String] name
|
||||
# Required. Memcached instance resource name in the format:
|
||||
# `projects/`project_id`/locations/`location_id`/instances/`instance_id``
|
||||
# where `location_id` refers to a GCP region
|
||||
# @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::MemcacheV1::Instance] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MemcacheV1::Instance]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::MemcacheV1::Instance::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::Instance
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists Instances in a given project and location.
|
||||
# @param [String] parent
|
||||
# Required. The resource name of the instance location using the form:
|
||||
# `projects/`project_id`/locations/`location_id``
|
||||
# where `location_id` refers to a GCP region
|
||||
# @param [String] filter
|
||||
# List filter. For example, exclude all Memcached instances with name as
|
||||
# my-instance by specifying "name != my-instance".
|
||||
# @param [String] order_by
|
||||
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of items to return.
|
||||
# If not specified, a default value of 1000 will be used by the service.
|
||||
# Regardless of the page_size value, the response may include a partial list
|
||||
# and a caller should only rely on response's
|
||||
# next_page_token
|
||||
# to determine if there are more instances left to be queried.
|
||||
# @param [String] page_token
|
||||
# The next_page_token value returned from a previous List request,
|
||||
# if any.
|
||||
# @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::MemcacheV1::ListInstancesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MemcacheV1::ListInstancesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
|
||||
command.response_representation = Google::Apis::MemcacheV1::ListInstancesResponse::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::ListInstancesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates an existing Instance in a given project and location.
|
||||
# @param [String] name
|
||||
# Required. Unique name of the resource in this scope including project and
|
||||
# location using the form:
|
||||
# `projects/`project_id`/locations/`location_id`/instances/`instance_id``
|
||||
# Note: Memcached instances are managed and addressed at regional level so
|
||||
# location_id here refers to a GCP region; however, users may choose which
|
||||
# zones Memcached nodes within an instances should be provisioned in.
|
||||
# Refer to [zones] field for more details.
|
||||
# @param [Google::Apis::MemcacheV1::Instance] instance_object
|
||||
# @param [String] update_mask
|
||||
# Required. Mask of fields to update.
|
||||
# * `displayName`
|
||||
# @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::MemcacheV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MemcacheV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::MemcacheV1::Instance::Representation
|
||||
command.request_object = instance_object
|
||||
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the defined Memcached Parameters for an existing Instance.
|
||||
# This method only stages the parameters, it must be followed by
|
||||
# ApplyParameters to apply the parameters to nodes of the Memcached Instance.
|
||||
# @param [String] name
|
||||
# Required. Resource name of the Memcached instance for which the parameters
|
||||
# should be
|
||||
# updated.
|
||||
# @param [Google::Apis::MemcacheV1::UpdateParametersRequest] update_parameters_request_object
|
||||
# @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::MemcacheV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::MemcacheV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_instance_parameters(name, update_parameters_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}:updateParameters', options)
|
||||
command.request_representation = Google::Apis::MemcacheV1::UpdateParametersRequest::Representation
|
||||
command.request_object = update_parameters_request_object
|
||||
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
|
||||
command.response_class = Google::Apis::MemcacheV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/people/
|
||||
module PeopleV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200727'
|
||||
REVISION = '20200730'
|
||||
|
||||
# See, edit, download, and permanently delete your contacts
|
||||
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
||||
|
|
|
@ -470,9 +470,9 @@ module Google
|
|||
# the copy mask with metadata and membership fields if not set. Valid values are:
|
||||
# * addresses * ageRanges * biographies * birthdays * calendarUrls *
|
||||
# coverPhotos * emailAddresses * events * externalIds * genders * imClients *
|
||||
# interests * locales * memberships * metadata * names * nicknames * occupations
|
||||
# * organizations * phoneNumbers * photos * relations * residences *
|
||||
# sipAddresses * skills * urls * userDefined
|
||||
# interests * locales * memberships * metadata * miscKeywords * names *
|
||||
# nicknames * occupations * organizations * phoneNumbers * photos * relations *
|
||||
# residences * sipAddresses * skills * urls * userDefined
|
||||
# Corresponds to the JSON property `readMask`
|
||||
# @return [String]
|
||||
attr_accessor :read_mask
|
||||
|
@ -1187,6 +1187,44 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A person's miscellaneous keyword.
|
||||
class MiscKeyword
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. The type of the miscellaneous keyword translated and formatted in
|
||||
# the viewer's account locale or the `Accept-Language` HTTP header locale.
|
||||
# Corresponds to the JSON property `formattedType`
|
||||
# @return [String]
|
||||
attr_accessor :formatted_type
|
||||
|
||||
# Metadata about a field.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The miscellaneous keyword type.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# The value of the miscellaneous keyword.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
|
||||
# A request to modify an existing contact group's members. Contacts can be
|
||||
# removed from any group but they can only be added to a user group or "
|
||||
# myContacts" or "starred" system groups.
|
||||
|
@ -1624,6 +1662,11 @@ module Google
|
|||
# @return [Google::Apis::PeopleV1::PersonMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The person's miscellaneous keywords.
|
||||
# Corresponds to the JSON property `miscKeywords`
|
||||
# @return [Array<Google::Apis::PeopleV1::MiscKeyword>]
|
||||
attr_accessor :misc_keywords
|
||||
|
||||
# The person's names. This field is a singleton for contact sources.
|
||||
# Corresponds to the JSON property `names`
|
||||
# @return [Array<Google::Apis::PeopleV1::Name>]
|
||||
|
@ -1732,6 +1775,7 @@ module Google
|
|||
@locales = args[:locales] if args.key?(:locales)
|
||||
@memberships = args[:memberships] if args.key?(:memberships)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@misc_keywords = args[:misc_keywords] if args.key?(:misc_keywords)
|
||||
@names = args[:names] if args.key?(:names)
|
||||
@nicknames = args[:nicknames] if args.key?(:nicknames)
|
||||
@occupations = args[:occupations] if args.key?(:occupations)
|
||||
|
@ -2344,9 +2388,9 @@ module Google
|
|||
# empty if not set, which will skip the post mutate get. Valid values are: *
|
||||
# addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos *
|
||||
# emailAddresses * events * externalIds * genders * imClients * interests *
|
||||
# locales * memberships * metadata * names * nicknames * occupations *
|
||||
# organizations * phoneNumbers * photos * relations * residences * sipAddresses *
|
||||
# skills * urls * userDefined
|
||||
# locales * memberships * metadata * miscKeywords * names * nicknames *
|
||||
# occupations * organizations * phoneNumbers * photos * relations * residences *
|
||||
# sipAddresses * skills * urls * userDefined
|
||||
# Corresponds to the JSON property `personFields`
|
||||
# @return [String]
|
||||
attr_accessor :person_fields
|
||||
|
|
|
@ -220,6 +220,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MiscKeyword
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ModifyContactGroupMembersRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -717,6 +723,17 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MiscKeyword
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :formatted_type, as: 'formattedType'
|
||||
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
|
||||
|
||||
property :type, as: 'type'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class ModifyContactGroupMembersRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -836,6 +853,8 @@ module Google
|
|||
|
||||
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::PersonMetadata, decorator: Google::Apis::PeopleV1::PersonMetadata::Representation
|
||||
|
||||
collection :misc_keywords, as: 'miscKeywords', class: Google::Apis::PeopleV1::MiscKeyword, decorator: Google::Apis::PeopleV1::MiscKeyword::Representation
|
||||
|
||||
collection :names, as: 'names', class: Google::Apis::PeopleV1::Name, decorator: Google::Apis::PeopleV1::Name::Representation
|
||||
|
||||
collection :nicknames, as: 'nicknames', class: Google::Apis::PeopleV1::Nickname, decorator: Google::Apis::PeopleV1::Nickname::Representation
|
||||
|
|
|
@ -393,8 +393,9 @@ module Google
|
|||
# all fields if not set. Valid values are: * addresses * ageRanges * biographies
|
||||
# * birthdays * calendarUrls * coverPhotos * emailAddresses * events *
|
||||
# externalIds * genders * imClients * interests * locales * memberships *
|
||||
# metadata * names * nicknames * occupations * organizations * phoneNumbers *
|
||||
# photos * relations * residences * sipAddresses * skills * urls * userDefined
|
||||
# metadata * miscKeywords * names * nicknames * occupations * organizations *
|
||||
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls *
|
||||
# userDefined
|
||||
# @param [Array<String>, String] sources
|
||||
# Optional. A mask of what source types to return. Defaults to ReadSourceType.
|
||||
# CONTACT and ReadSourceType.PROFILE if not set.
|
||||
|
@ -467,9 +468,9 @@ module Google
|
|||
# empty if not set, which will skip the post mutate get. Valid values are: *
|
||||
# addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos *
|
||||
# emailAddresses * events * externalIds * genders * imClients * interests *
|
||||
# locales * memberships * metadata * names * nicknames * occupations *
|
||||
# organizations * phoneNumbers * photos * relations * residences * sipAddresses *
|
||||
# skills * urls * userDefined
|
||||
# locales * memberships * metadata * miscKeywords * names * nicknames *
|
||||
# occupations * organizations * phoneNumbers * photos * relations * residences *
|
||||
# sipAddresses * skills * urls * userDefined
|
||||
# @param [Array<String>, String] sources
|
||||
# Optional. A mask of what source types to return. Defaults to ReadSourceType.
|
||||
# CONTACT and ReadSourceType.PROFILE if not set.
|
||||
|
@ -517,9 +518,9 @@ module Google
|
|||
# Multiple fields can be specified by separating them with commas. Valid values
|
||||
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
|
||||
# coverPhotos * emailAddresses * events * externalIds * genders * imClients *
|
||||
# interests * locales * memberships * metadata * names * nicknames * occupations
|
||||
# * organizations * phoneNumbers * photos * relations * residences *
|
||||
# sipAddresses * skills * urls * userDefined
|
||||
# interests * locales * memberships * metadata * miscKeywords * names *
|
||||
# nicknames * occupations * organizations * phoneNumbers * photos * relations *
|
||||
# residences * sipAddresses * skills * urls * userDefined
|
||||
# @param [String] request_mask_include_field
|
||||
# Required. Comma-separated list of person fields to be included in the response.
|
||||
# Each path should start with `person.`: for example, `person.names` or `person.
|
||||
|
@ -565,9 +566,9 @@ module Google
|
|||
# Multiple fields can be specified by separating them with commas. Valid values
|
||||
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
|
||||
# coverPhotos * emailAddresses * events * externalIds * genders * imClients *
|
||||
# interests * locales * memberships * metadata * names * nicknames * occupations
|
||||
# * organizations * phoneNumbers * photos * relations * residences *
|
||||
# sipAddresses * skills * urls * userDefined
|
||||
# interests * locales * memberships * metadata * miscKeywords * names *
|
||||
# nicknames * occupations * organizations * phoneNumbers * photos * relations *
|
||||
# residences * sipAddresses * skills * urls * userDefined
|
||||
# @param [String] request_mask_include_field
|
||||
# Required. Comma-separated list of person fields to be included in the response.
|
||||
# Each path should start with `person.`: for example, `person.names` or `person.
|
||||
|
@ -630,9 +631,9 @@ module Google
|
|||
# Multiple fields can be specified by separating them with commas. Valid values
|
||||
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
|
||||
# coverPhotos * emailAddresses * events * externalIds * genders * imClients *
|
||||
# interests * locales * memberships * metadata * names * nicknames * occupations
|
||||
# * organizations * phoneNumbers * photos * relations * residences *
|
||||
# sipAddresses * skills * urls * userDefined
|
||||
# interests * locales * memberships * metadata * miscKeywords * names *
|
||||
# nicknames * occupations * organizations * phoneNumbers * photos * relations *
|
||||
# residences * sipAddresses * skills * urls * userDefined
|
||||
# @param [Boolean] request_sync_token
|
||||
# Optional. Whether the response should include `next_sync_token`, which can be
|
||||
# used to get all changes since the last request. For subsequent sync requests
|
||||
|
@ -698,9 +699,9 @@ module Google
|
|||
# Multiple fields can be specified by separating them with commas. Valid values
|
||||
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
|
||||
# coverPhotos * emailAddresses * events * externalIds * genders * imClients *
|
||||
# interests * locales * memberships * metadata * names * nicknames * occupations
|
||||
# * organizations * phoneNumbers * photos * relations * residences *
|
||||
# sipAddresses * skills * urls * userDefined
|
||||
# interests * locales * memberships * metadata * miscKeywords * names *
|
||||
# nicknames * occupations * organizations * phoneNumbers * photos * relations *
|
||||
# residences * sipAddresses * skills * urls * userDefined
|
||||
# @param [Array<String>, String] sources
|
||||
# Required. Directory sources to return.
|
||||
# @param [String] fields
|
||||
|
@ -758,8 +759,9 @@ module Google
|
|||
# all fields if not set. Valid values are: * addresses * ageRanges * biographies
|
||||
# * birthdays * calendarUrls * coverPhotos * emailAddresses * events *
|
||||
# externalIds * genders * imClients * interests * locales * memberships *
|
||||
# metadata * names * nicknames * occupations * organizations * phoneNumbers *
|
||||
# photos * relations * residences * sipAddresses * skills * urls * userDefined
|
||||
# metadata * miscKeywords * names * nicknames * occupations * organizations *
|
||||
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls *
|
||||
# userDefined
|
||||
# @param [Array<String>, String] sources
|
||||
# Optional. A mask of what source types to return. Defaults to ReadSourceType.
|
||||
# CONTACT and ReadSourceType.PROFILE if not set.
|
||||
|
@ -768,9 +770,9 @@ module Google
|
|||
# Multiple fields can be specified by separating them with commas. All updated
|
||||
# fields will be replaced. Valid values are: * addresses * biographies *
|
||||
# birthdays * calendarUrls * emailAddresses * events * externalIds * genders *
|
||||
# imClients * interests * locales * memberships * names * nicknames *
|
||||
# occupations * organizations * phoneNumbers * relations * residences *
|
||||
# sipAddresses * urls * userDefined
|
||||
# imClients * interests * locales * memberships * miscKeywords * names *
|
||||
# nicknames * occupations * organizations * phoneNumbers * relations *
|
||||
# residences * sipAddresses * urls * userDefined
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -854,9 +856,9 @@ module Google
|
|||
# Multiple fields can be specified by separating them with commas. Valid values
|
||||
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
|
||||
# coverPhotos * emailAddresses * events * externalIds * genders * imClients *
|
||||
# interests * locales * memberships * metadata * names * nicknames * occupations
|
||||
# * organizations * phoneNumbers * photos * relations * residences *
|
||||
# sipAddresses * skills * urls * userDefined
|
||||
# interests * locales * memberships * metadata * miscKeywords * names *
|
||||
# nicknames * occupations * organizations * phoneNumbers * photos * relations *
|
||||
# residences * sipAddresses * skills * urls * userDefined
|
||||
# @param [String] request_mask_include_field
|
||||
# Required. Comma-separated list of person fields to be included in the response.
|
||||
# Each path should start with `person.`: for example, `person.names` or `person.
|
||||
|
|
|
@ -24,10 +24,10 @@ module Google
|
|||
# recommendation systems without requiring a high level of expertise in machine
|
||||
# learning, recommendation system, or Google Cloud.
|
||||
#
|
||||
# @see https://cloud.google.com/recommendations/docs/
|
||||
# @see https://cloud.google.com/recommendations-ai/docs
|
||||
module RecommendationengineV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200706'
|
||||
REVISION = '20200728'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -174,8 +174,10 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :dataset_id
|
||||
|
||||
# Required. Intermediate gcs dir used for the import.
|
||||
# .
|
||||
# Optional. Intermediate Cloud Storage directory used for the import. Can be
|
||||
# specified
|
||||
# if one wants to have the BigQuery export to a specific Cloud Storage
|
||||
# directory.
|
||||
# Corresponds to the JSON property `gcsStagingDir`
|
||||
# @return [String]
|
||||
attr_accessor :gcs_staging_dir
|
||||
|
@ -1056,9 +1058,9 @@ module Google
|
|||
# * tag=("Red" OR "Blue") tag="New-Arrival" tag=(NOT "promotional")
|
||||
# * filterOutOfStockItems tag=(-"promotional")
|
||||
# * filterOutOfStockItems
|
||||
# If your filter blocks all prediction results, generic (unfiltered) popular
|
||||
# items are returned. This behavior can be overridden by setting
|
||||
# `strictFiltering` to true in `PredictRequest.params`.
|
||||
# If your filter blocks all prediction results, nothing will be returned. If
|
||||
# you want generic (unfiltered) popular items to be returned instead, set
|
||||
# `strictFiltering` to false in `PredictRequest.params`.
|
||||
# Corresponds to the JSON property `filter`
|
||||
# @return [String]
|
||||
attr_accessor :filter
|
||||
|
@ -1097,9 +1099,9 @@ module Google
|
|||
# field in the prediction response. The given 'score' indicates the
|
||||
# probability of an item being clicked/purchased given the user's context
|
||||
# and history.
|
||||
# * `strictFiltering`: Boolean. If set to true, the service will return empty
|
||||
# instead of generic (unfiltered) popular items if your filter blocks all
|
||||
# prediction results.
|
||||
# * `strictFiltering`: Boolean. True by default. If set to false, the service
|
||||
# will return generic (unfiltered) popular items instead of empty if your
|
||||
# filter blocks all prediction results.
|
||||
# Corresponds to the JSON property `params`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :params
|
||||
|
|
|
@ -32,7 +32,7 @@ module Google
|
|||
# Recommendationengine = Google::Apis::RecommendationengineV1beta1 # Alias the module
|
||||
# service = Recommendationengine::RecommendationsAIService.new
|
||||
#
|
||||
# @see https://cloud.google.com/recommendations/docs/
|
||||
# @see https://cloud.google.com/recommendations-ai/docs
|
||||
class RecommendationsAIService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
# 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/servicecontrol_v2/service.rb'
|
||||
require 'google/apis/servicecontrol_v2/classes.rb'
|
||||
require 'google/apis/servicecontrol_v2/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Service Control API
|
||||
#
|
||||
# Provides control plane functionality to managed services, such as logging,
|
||||
# monitoring, and status checks.
|
||||
#
|
||||
# @see https://cloud.google.com/service-control/
|
||||
module ServicecontrolV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200727'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# Manage your Google Service Control data
|
||||
AUTH_SERVICECONTROL = 'https://www.googleapis.com/auth/servicecontrol'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,405 @@
|
|||
# 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 ServicecontrolV2
|
||||
|
||||
class Api
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AttributeContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditLog
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Auth
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthenticationInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthorizationInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FirstPartyPrincipal
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Peer
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Request
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RequestMetadata
|
||||
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 ResourceInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ResourceLocation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Response
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAccountDelegationInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SpanContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ThirdPartyPrincipal
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Api
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operation, as: 'operation'
|
||||
property :protocol, as: 'protocol'
|
||||
property :service, as: 'service'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class AttributeContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :api, as: 'api', class: Google::Apis::ServicecontrolV2::Api, decorator: Google::Apis::ServicecontrolV2::Api::Representation
|
||||
|
||||
property :destination, as: 'destination', class: Google::Apis::ServicecontrolV2::Peer, decorator: Google::Apis::ServicecontrolV2::Peer::Representation
|
||||
|
||||
collection :extensions, as: 'extensions'
|
||||
property :origin, as: 'origin', class: Google::Apis::ServicecontrolV2::Peer, decorator: Google::Apis::ServicecontrolV2::Peer::Representation
|
||||
|
||||
property :request, as: 'request', class: Google::Apis::ServicecontrolV2::Request, decorator: Google::Apis::ServicecontrolV2::Request::Representation
|
||||
|
||||
property :resource, as: 'resource', class: Google::Apis::ServicecontrolV2::Resource, decorator: Google::Apis::ServicecontrolV2::Resource::Representation
|
||||
|
||||
property :response, as: 'response', class: Google::Apis::ServicecontrolV2::Response, decorator: Google::Apis::ServicecontrolV2::Response::Representation
|
||||
|
||||
property :source, as: 'source', class: Google::Apis::ServicecontrolV2::Peer, decorator: Google::Apis::ServicecontrolV2::Peer::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AuditLog
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :authentication_info, as: 'authenticationInfo', class: Google::Apis::ServicecontrolV2::AuthenticationInfo, decorator: Google::Apis::ServicecontrolV2::AuthenticationInfo::Representation
|
||||
|
||||
collection :authorization_info, as: 'authorizationInfo', class: Google::Apis::ServicecontrolV2::AuthorizationInfo, decorator: Google::Apis::ServicecontrolV2::AuthorizationInfo::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :method_name, as: 'methodName'
|
||||
property :num_response_items, :numeric_string => true, as: 'numResponseItems'
|
||||
hash :request, as: 'request'
|
||||
property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV2::RequestMetadata, decorator: Google::Apis::ServicecontrolV2::RequestMetadata::Representation
|
||||
|
||||
property :resource_location, as: 'resourceLocation', class: Google::Apis::ServicecontrolV2::ResourceLocation, decorator: Google::Apis::ServicecontrolV2::ResourceLocation::Representation
|
||||
|
||||
property :resource_name, as: 'resourceName'
|
||||
hash :resource_original_state, as: 'resourceOriginalState'
|
||||
hash :response, as: 'response'
|
||||
hash :service_data, as: 'serviceData'
|
||||
property :service_name, as: 'serviceName'
|
||||
property :status, as: 'status', class: Google::Apis::ServicecontrolV2::Status, decorator: Google::Apis::ServicecontrolV2::Status::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Auth
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :access_levels, as: 'accessLevels'
|
||||
collection :audiences, as: 'audiences'
|
||||
hash :claims, as: 'claims'
|
||||
property :presenter, as: 'presenter'
|
||||
property :principal, as: 'principal'
|
||||
end
|
||||
end
|
||||
|
||||
class AuthenticationInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :authority_selector, as: 'authoritySelector'
|
||||
property :principal_email, as: 'principalEmail'
|
||||
property :principal_subject, as: 'principalSubject'
|
||||
collection :service_account_delegation_info, as: 'serviceAccountDelegationInfo', class: Google::Apis::ServicecontrolV2::ServiceAccountDelegationInfo, decorator: Google::Apis::ServicecontrolV2::ServiceAccountDelegationInfo::Representation
|
||||
|
||||
property :service_account_key_name, as: 'serviceAccountKeyName'
|
||||
hash :third_party_principal, as: 'thirdPartyPrincipal'
|
||||
end
|
||||
end
|
||||
|
||||
class AuthorizationInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :granted, as: 'granted'
|
||||
property :permission, as: 'permission'
|
||||
property :resource, as: 'resource'
|
||||
property :resource_attributes, as: 'resourceAttributes', class: Google::Apis::ServicecontrolV2::Resource, decorator: Google::Apis::ServicecontrolV2::Resource::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CheckRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :attributes, as: 'attributes', class: Google::Apis::ServicecontrolV2::AttributeContext, decorator: Google::Apis::ServicecontrolV2::AttributeContext::Representation
|
||||
|
||||
collection :resources, as: 'resources', class: Google::Apis::ServicecontrolV2::ResourceInfo, decorator: Google::Apis::ServicecontrolV2::ResourceInfo::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class CheckResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :headers, as: 'headers'
|
||||
property :status, as: 'status', class: Google::Apis::ServicecontrolV2::Status, decorator: Google::Apis::ServicecontrolV2::Status::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class FirstPartyPrincipal
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :principal_email, as: 'principalEmail'
|
||||
hash :service_metadata, as: 'serviceMetadata'
|
||||
end
|
||||
end
|
||||
|
||||
class Peer
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ip, as: 'ip'
|
||||
hash :labels, as: 'labels'
|
||||
property :port, :numeric_string => true, as: 'port'
|
||||
property :principal, as: 'principal'
|
||||
property :region_code, as: 'regionCode'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :operations, as: 'operations', class: Google::Apis::ServicecontrolV2::AttributeContext, decorator: Google::Apis::ServicecontrolV2::AttributeContext::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Request
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auth, as: 'auth', class: Google::Apis::ServicecontrolV2::Auth, decorator: Google::Apis::ServicecontrolV2::Auth::Representation
|
||||
|
||||
hash :headers, as: 'headers'
|
||||
property :host, as: 'host'
|
||||
property :id, as: 'id'
|
||||
property :method_prop, as: 'method'
|
||||
property :path, as: 'path'
|
||||
property :protocol, as: 'protocol'
|
||||
property :query, as: 'query'
|
||||
property :reason, as: 'reason'
|
||||
property :scheme, as: 'scheme'
|
||||
property :size, :numeric_string => true, as: 'size'
|
||||
property :time, as: 'time'
|
||||
end
|
||||
end
|
||||
|
||||
class RequestMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :caller_ip, as: 'callerIp'
|
||||
property :caller_network, as: 'callerNetwork'
|
||||
property :caller_supplied_user_agent, as: 'callerSuppliedUserAgent'
|
||||
property :destination_attributes, as: 'destinationAttributes', class: Google::Apis::ServicecontrolV2::Peer, decorator: Google::Apis::ServicecontrolV2::Peer::Representation
|
||||
|
||||
property :request_attributes, as: 'requestAttributes', class: Google::Apis::ServicecontrolV2::Request, decorator: Google::Apis::ServicecontrolV2::Request::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Resource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :service, as: 'service'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class ResourceInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :permission, as: 'permission'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class ResourceLocation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :current_locations, as: 'currentLocations'
|
||||
collection :original_locations, as: 'originalLocations'
|
||||
end
|
||||
end
|
||||
|
||||
class Response
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, :numeric_string => true, as: 'code'
|
||||
hash :headers, as: 'headers'
|
||||
property :size, :numeric_string => true, as: 'size'
|
||||
property :time, as: 'time'
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceAccountDelegationInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :first_party_principal, as: 'firstPartyPrincipal', class: Google::Apis::ServicecontrolV2::FirstPartyPrincipal, decorator: Google::Apis::ServicecontrolV2::FirstPartyPrincipal::Representation
|
||||
|
||||
property :third_party_principal, as: 'thirdPartyPrincipal', class: Google::Apis::ServicecontrolV2::ThirdPartyPrincipal, decorator: Google::Apis::ServicecontrolV2::ThirdPartyPrincipal::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SpanContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :span_name, as: 'spanName'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class ThirdPartyPrincipal
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :third_party_claims, as: 'thirdPartyClaims'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,165 @@
|
|||
# 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 ServicecontrolV2
|
||||
# Service Control API
|
||||
#
|
||||
# Provides control plane functionality to managed services, such as logging,
|
||||
# monitoring, and status checks.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/servicecontrol_v2'
|
||||
#
|
||||
# Servicecontrol = Google::Apis::ServicecontrolV2 # Alias the module
|
||||
# service = Servicecontrol::ServiceControlService.new
|
||||
#
|
||||
# @see https://cloud.google.com/service-control/
|
||||
class ServiceControlService < 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://servicecontrol.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Private Preview. This feature is only available for approved services.
|
||||
# This method provides admission control for services that are integrated
|
||||
# with [Service Infrastructure](/service-infrastructure). It checks whether
|
||||
# an operation should be allowed based on the service configuration and
|
||||
# relevant policies. It must be called before the operation is executed.
|
||||
# For more information, see
|
||||
# [Admission Control](/service-infrastructure/docs/admission-control).
|
||||
# NOTE: The admission control has an expected policy propagation delay of
|
||||
# 60s. The caller **must** not depend on the most recent policy changes.
|
||||
# NOTE: The admission control has a hard limit of 1 referenced resources
|
||||
# per call. If an operation refers to more than 1 resources, the caller
|
||||
# must call the Check method multiple times.
|
||||
# This method requires the `servicemanagement.services.check` permission
|
||||
# on the specified service. For more information, see
|
||||
# [Service Control API Access
|
||||
# Control](https://cloud.google.com/service-infrastructure/docs/service-control/
|
||||
# access-control).
|
||||
# @param [String] service_name
|
||||
# The service name as specified in its service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See
|
||||
# [google.api.Service](https://cloud.google.com/service-management/reference/rpc/
|
||||
# google.api#google.api.Service)
|
||||
# for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV2::CheckRequest] check_request_object
|
||||
# @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::ServicecontrolV2::CheckResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV2::CheckResponse]
|
||||
#
|
||||
# @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 check_service(service_name, check_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v2/services/{serviceName}:check', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV2::CheckRequest::Representation
|
||||
command.request_object = check_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV2::CheckResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV2::CheckResponse
|
||||
command.params['serviceName'] = service_name unless service_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Private Preview. This feature is only available for approved services.
|
||||
# This method provides telemetry reporting for services that are integrated
|
||||
# with [Service Infrastructure](/service-infrastructure). It reports a list
|
||||
# of operations that have occurred on a service. It must be called after the
|
||||
# operations have been executed. For more information, see
|
||||
# [Telemetry Reporting](/service-infrastructure/docs/telemetry-reporting).
|
||||
# NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB
|
||||
# per Report call. It is recommended to have no more than 100 operations per
|
||||
# call.
|
||||
# This method requires the `servicemanagement.services.report` permission
|
||||
# on the specified service. For more information, see
|
||||
# [Service Control API Access
|
||||
# Control](https://cloud.google.com/service-infrastructure/docs/service-control/
|
||||
# access-control).
|
||||
# @param [String] service_name
|
||||
# The service name as specified in its service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See
|
||||
# [google.api.Service](https://cloud.google.com/service-management/reference/rpc/
|
||||
# google.api#google.api.Service)
|
||||
# for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV2::ReportRequest] report_request_object
|
||||
# @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::ServicecontrolV2::ReportResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV2::ReportResponse]
|
||||
#
|
||||
# @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 report_service(service_name, report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v2/services/{serviceName}:report', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV2::ReportRequest::Representation
|
||||
command.request_object = report_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV2::ReportResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV2::ReportResponse
|
||||
command.params['serviceName'] = service_name unless service_name.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
|
Loading…
Reference in New Issue