Autogenerated update (2018-06-29)
Update: - appengine_v1 - appengine_v1beta - chat_v1 - cloudfunctions_v1beta2 - container_v1 - container_v1beta1 - dialogflow_v2 - dialogflow_v2beta1 - iamcredentials_v1 - logging_v2 - logging_v2beta1 - monitoring_v3 - poly_v1
This commit is contained in:
parent
df0c8be3ff
commit
c0f72bf000
|
@ -7739,6 +7739,8 @@
|
|||
"/appengine:v1/EndpointsApiService/configId": config_id
|
||||
"/appengine:v1/EndpointsApiService/name": name
|
||||
"/appengine:v1/EndpointsApiService/rolloutStrategy": rollout_strategy
|
||||
"/appengine:v1/Entrypoint": entrypoint
|
||||
"/appengine:v1/Entrypoint/shell": shell
|
||||
"/appengine:v1/ErrorHandler": error_handler
|
||||
"/appengine:v1/ErrorHandler/errorCode": error_code
|
||||
"/appengine:v1/ErrorHandler/mimeType": mime_type
|
||||
|
@ -7996,6 +7998,7 @@
|
|||
"/appengine:v1/Version/deployment": deployment
|
||||
"/appengine:v1/Version/diskUsageBytes": disk_usage_bytes
|
||||
"/appengine:v1/Version/endpointsApiService": endpoints_api_service
|
||||
"/appengine:v1/Version/entrypoint": entrypoint
|
||||
"/appengine:v1/Version/env": env
|
||||
"/appengine:v1/Version/envVariables": env_variables
|
||||
"/appengine:v1/Version/envVariables/env_variable": env_variable
|
||||
|
@ -8485,6 +8488,8 @@
|
|||
"/appengine:v1beta/EndpointsApiService/configId": config_id
|
||||
"/appengine:v1beta/EndpointsApiService/name": name
|
||||
"/appengine:v1beta/EndpointsApiService/rolloutStrategy": rollout_strategy
|
||||
"/appengine:v1beta/Entrypoint": entrypoint
|
||||
"/appengine:v1beta/Entrypoint/shell": shell
|
||||
"/appengine:v1beta/ErrorHandler": error_handler
|
||||
"/appengine:v1beta/ErrorHandler/errorCode": error_code
|
||||
"/appengine:v1beta/ErrorHandler/mimeType": mime_type
|
||||
|
@ -8749,6 +8754,7 @@
|
|||
"/appengine:v1beta/Version/deployment": deployment
|
||||
"/appengine:v1beta/Version/diskUsageBytes": disk_usage_bytes
|
||||
"/appengine:v1beta/Version/endpointsApiService": endpoints_api_service
|
||||
"/appengine:v1beta/Version/entrypoint": entrypoint
|
||||
"/appengine:v1beta/Version/env": env
|
||||
"/appengine:v1beta/Version/envVariables": env_variables
|
||||
"/appengine:v1beta/Version/envVariables/env_variable": env_variable
|
||||
|
@ -14071,12 +14077,16 @@
|
|||
"/cloudfunctions:v1beta2/CloudFunction": cloud_function
|
||||
"/cloudfunctions:v1beta2/CloudFunction/availableMemoryMb": available_memory_mb
|
||||
"/cloudfunctions:v1beta2/CloudFunction/entryPoint": entry_point
|
||||
"/cloudfunctions:v1beta2/CloudFunction/environmentVariables": environment_variables
|
||||
"/cloudfunctions:v1beta2/CloudFunction/environmentVariables/environment_variable": environment_variable
|
||||
"/cloudfunctions:v1beta2/CloudFunction/eventTrigger": event_trigger
|
||||
"/cloudfunctions:v1beta2/CloudFunction/httpsTrigger": https_trigger
|
||||
"/cloudfunctions:v1beta2/CloudFunction/labels": labels
|
||||
"/cloudfunctions:v1beta2/CloudFunction/labels/label": label
|
||||
"/cloudfunctions:v1beta2/CloudFunction/latestOperation": latest_operation
|
||||
"/cloudfunctions:v1beta2/CloudFunction/maxInstances": max_instances
|
||||
"/cloudfunctions:v1beta2/CloudFunction/name": name
|
||||
"/cloudfunctions:v1beta2/CloudFunction/network": network
|
||||
"/cloudfunctions:v1beta2/CloudFunction/runtime": runtime
|
||||
"/cloudfunctions:v1beta2/CloudFunction/serviceAccount": service_account
|
||||
"/cloudfunctions:v1beta2/CloudFunction/sourceArchiveUrl": source_archive_url
|
||||
|
@ -32900,6 +32910,7 @@
|
|||
"/container:v1beta1/Cluster/currentNodeVersion": current_node_version
|
||||
"/container:v1beta1/Cluster/description": description
|
||||
"/container:v1beta1/Cluster/enableKubernetesAlpha": enable_kubernetes_alpha
|
||||
"/container:v1beta1/Cluster/enableTpu": enable_tpu
|
||||
"/container:v1beta1/Cluster/endpoint": endpoint
|
||||
"/container:v1beta1/Cluster/expireTime": expire_time
|
||||
"/container:v1beta1/Cluster/initialClusterVersion": initial_cluster_version
|
||||
|
@ -32935,6 +32946,7 @@
|
|||
"/container:v1beta1/Cluster/status": status
|
||||
"/container:v1beta1/Cluster/statusMessage": status_message
|
||||
"/container:v1beta1/Cluster/subnetwork": subnetwork
|
||||
"/container:v1beta1/Cluster/tpuIpv4CidrBlock": tpu_ipv4_cidr_block
|
||||
"/container:v1beta1/Cluster/zone": zone
|
||||
"/container:v1beta1/ClusterUpdate": cluster_update
|
||||
"/container:v1beta1/ClusterUpdate/desiredAddonsConfig": desired_addons_config
|
||||
|
@ -32969,6 +32981,24 @@
|
|||
"/container:v1beta1/DailyMaintenanceWindow/duration": duration
|
||||
"/container:v1beta1/DailyMaintenanceWindow/startTime": start_time
|
||||
"/container:v1beta1/Empty": empty
|
||||
"/container:v1beta1/GoogleIamV1Binding": google_iam_v1_binding
|
||||
"/container:v1beta1/GoogleIamV1Binding/members": members
|
||||
"/container:v1beta1/GoogleIamV1Binding/members/member": member
|
||||
"/container:v1beta1/GoogleIamV1Binding/role": role
|
||||
"/container:v1beta1/GoogleIamV1GetIamPolicyRequest": google_iam_v1_get_iam_policy_request
|
||||
"/container:v1beta1/GoogleIamV1Policy": google_iam_v1_policy
|
||||
"/container:v1beta1/GoogleIamV1Policy/bindings": bindings
|
||||
"/container:v1beta1/GoogleIamV1Policy/bindings/binding": binding
|
||||
"/container:v1beta1/GoogleIamV1Policy/etag": etag
|
||||
"/container:v1beta1/GoogleIamV1Policy/version": version
|
||||
"/container:v1beta1/GoogleIamV1SetIamPolicyRequest": google_iam_v1_set_iam_policy_request
|
||||
"/container:v1beta1/GoogleIamV1SetIamPolicyRequest/policy": policy
|
||||
"/container:v1beta1/GoogleIamV1TestIamPermissionsRequest": google_iam_v1_test_iam_permissions_request
|
||||
"/container:v1beta1/GoogleIamV1TestIamPermissionsRequest/permissions": permissions
|
||||
"/container:v1beta1/GoogleIamV1TestIamPermissionsRequest/permissions/permission": permission
|
||||
"/container:v1beta1/GoogleIamV1TestIamPermissionsResponse": google_iam_v1_test_iam_permissions_response
|
||||
"/container:v1beta1/GoogleIamV1TestIamPermissionsResponse/permissions": permissions
|
||||
"/container:v1beta1/GoogleIamV1TestIamPermissionsResponse/permissions/permission": permission
|
||||
"/container:v1beta1/HorizontalPodAutoscaling": horizontal_pod_autoscaling
|
||||
"/container:v1beta1/HorizontalPodAutoscaling/disabled": disabled
|
||||
"/container:v1beta1/HttpLoadBalancing": http_load_balancing
|
||||
|
@ -32985,6 +33015,7 @@
|
|||
"/container:v1beta1/IPAllocationPolicy/servicesIpv4CidrBlock": services_ipv4_cidr_block
|
||||
"/container:v1beta1/IPAllocationPolicy/servicesSecondaryRangeName": services_secondary_range_name
|
||||
"/container:v1beta1/IPAllocationPolicy/subnetworkName": subnetwork_name
|
||||
"/container:v1beta1/IPAllocationPolicy/tpuIpv4CidrBlock": tpu_ipv4_cidr_block
|
||||
"/container:v1beta1/IPAllocationPolicy/useIpAliases": use_ip_aliases
|
||||
"/container:v1beta1/KubernetesDashboard": kubernetes_dashboard
|
||||
"/container:v1beta1/KubernetesDashboard/disabled": disabled
|
||||
|
@ -33243,6 +33274,8 @@
|
|||
"/container:v1beta1/container.projects.aggregated.usableSubnetworks.list/pageToken": page_token
|
||||
"/container:v1beta1/container.projects.aggregated.usableSubnetworks.list/parent": parent
|
||||
"/container:v1beta1/container.projects.clusters.list": list_clusters
|
||||
"/container:v1beta1/container.projects.getIamPolicy": get_project_iam_policy
|
||||
"/container:v1beta1/container.projects.getIamPolicy/resource": resource
|
||||
"/container:v1beta1/container.projects.locations.clusters.completeIpRotation": complete_project_location_cluster_ip_rotation
|
||||
"/container:v1beta1/container.projects.locations.clusters.completeIpRotation/name": name
|
||||
"/container:v1beta1/container.projects.locations.clusters.create": create_project_location_cluster
|
||||
|
@ -33332,6 +33365,10 @@
|
|||
"/container:v1beta1/container.projects.locations.operations.list/projectId": project_id
|
||||
"/container:v1beta1/container.projects.locations.operations.list/zone": zone
|
||||
"/container:v1beta1/container.projects.operations.list": list_operations
|
||||
"/container:v1beta1/container.projects.setIamPolicy": set_project_iam_policy
|
||||
"/container:v1beta1/container.projects.setIamPolicy/resource": resource
|
||||
"/container:v1beta1/container.projects.testIamPermissions": test_project_iam_permissions
|
||||
"/container:v1beta1/container.projects.testIamPermissions/resource": resource
|
||||
"/container:v1beta1/container.projects.zones.clusters.addons": addons_project_zone_cluster
|
||||
"/container:v1beta1/container.projects.zones.clusters.addons/clusterId": cluster_id
|
||||
"/container:v1beta1/container.projects.zones.clusters.addons/projectId": project_id
|
||||
|
@ -60439,7 +60476,45 @@
|
|||
"/iam:v1/iam.roles.queryGrantableRoles": query_grantable_roles
|
||||
"/iam:v1/key": key
|
||||
"/iam:v1/quotaUser": quota_user
|
||||
"/iamcredentials:v1/GenerateAccessTokenRequest": generate_access_token_request
|
||||
"/iamcredentials:v1/GenerateAccessTokenRequest/delegates": delegates
|
||||
"/iamcredentials:v1/GenerateAccessTokenRequest/delegates/delegate": delegate
|
||||
"/iamcredentials:v1/GenerateAccessTokenRequest/lifetime": lifetime
|
||||
"/iamcredentials:v1/GenerateAccessTokenRequest/scope": scope
|
||||
"/iamcredentials:v1/GenerateAccessTokenRequest/scope/scope": scope
|
||||
"/iamcredentials:v1/GenerateAccessTokenResponse": generate_access_token_response
|
||||
"/iamcredentials:v1/GenerateAccessTokenResponse/accessToken": access_token
|
||||
"/iamcredentials:v1/GenerateAccessTokenResponse/expireTime": expire_time
|
||||
"/iamcredentials:v1/GenerateIdTokenRequest": generate_id_token_request
|
||||
"/iamcredentials:v1/GenerateIdTokenRequest/audience": audience
|
||||
"/iamcredentials:v1/GenerateIdTokenRequest/delegates": delegates
|
||||
"/iamcredentials:v1/GenerateIdTokenRequest/delegates/delegate": delegate
|
||||
"/iamcredentials:v1/GenerateIdTokenRequest/includeEmail": include_email
|
||||
"/iamcredentials:v1/GenerateIdTokenResponse": generate_id_token_response
|
||||
"/iamcredentials:v1/GenerateIdTokenResponse/token": token
|
||||
"/iamcredentials:v1/SignBlobRequest": sign_blob_request
|
||||
"/iamcredentials:v1/SignBlobRequest/delegates": delegates
|
||||
"/iamcredentials:v1/SignBlobRequest/delegates/delegate": delegate
|
||||
"/iamcredentials:v1/SignBlobRequest/payload": payload
|
||||
"/iamcredentials:v1/SignBlobResponse": sign_blob_response
|
||||
"/iamcredentials:v1/SignBlobResponse/keyId": key_id
|
||||
"/iamcredentials:v1/SignBlobResponse/signedBlob": signed_blob
|
||||
"/iamcredentials:v1/SignJwtRequest": sign_jwt_request
|
||||
"/iamcredentials:v1/SignJwtRequest/delegates": delegates
|
||||
"/iamcredentials:v1/SignJwtRequest/delegates/delegate": delegate
|
||||
"/iamcredentials:v1/SignJwtRequest/payload": payload
|
||||
"/iamcredentials:v1/SignJwtResponse": sign_jwt_response
|
||||
"/iamcredentials:v1/SignJwtResponse/keyId": key_id
|
||||
"/iamcredentials:v1/SignJwtResponse/signedJwt": signed_jwt
|
||||
"/iamcredentials:v1/fields": fields
|
||||
"/iamcredentials:v1/iamcredentials.projects.serviceAccounts.generateAccessToken": generate_service_account_access_token
|
||||
"/iamcredentials:v1/iamcredentials.projects.serviceAccounts.generateAccessToken/name": name
|
||||
"/iamcredentials:v1/iamcredentials.projects.serviceAccounts.generateIdToken": generate_service_account_id_token
|
||||
"/iamcredentials:v1/iamcredentials.projects.serviceAccounts.generateIdToken/name": name
|
||||
"/iamcredentials:v1/iamcredentials.projects.serviceAccounts.signBlob": sign_service_account_blob
|
||||
"/iamcredentials:v1/iamcredentials.projects.serviceAccounts.signBlob/name": name
|
||||
"/iamcredentials:v1/iamcredentials.projects.serviceAccounts.signJwt": sign_service_account_jwt
|
||||
"/iamcredentials:v1/iamcredentials.projects.serviceAccounts.signJwt/name": name
|
||||
"/iamcredentials:v1/key": key
|
||||
"/iamcredentials:v1/quotaUser": quota_user
|
||||
"/identitytoolkit:v3/CreateAuthUriResponse": create_auth_uri_response
|
||||
|
@ -61868,11 +61943,16 @@
|
|||
"/logging:v2/MetricDescriptor/displayName": display_name
|
||||
"/logging:v2/MetricDescriptor/labels": labels
|
||||
"/logging:v2/MetricDescriptor/labels/label": label
|
||||
"/logging:v2/MetricDescriptor/metadata": metadata
|
||||
"/logging:v2/MetricDescriptor/metricKind": metric_kind
|
||||
"/logging:v2/MetricDescriptor/name": name
|
||||
"/logging:v2/MetricDescriptor/type": type
|
||||
"/logging:v2/MetricDescriptor/unit": unit
|
||||
"/logging:v2/MetricDescriptor/valueType": value_type
|
||||
"/logging:v2/MetricDescriptorMetadata": metric_descriptor_metadata
|
||||
"/logging:v2/MetricDescriptorMetadata/ingestDelay": ingest_delay
|
||||
"/logging:v2/MetricDescriptorMetadata/launchStage": launch_stage
|
||||
"/logging:v2/MetricDescriptorMetadata/samplePeriod": sample_period
|
||||
"/logging:v2/MonitoredResource": monitored_resource
|
||||
"/logging:v2/MonitoredResource/labels": labels
|
||||
"/logging:v2/MonitoredResource/labels/label": label
|
||||
|
@ -62271,11 +62351,16 @@
|
|||
"/logging:v2beta1/MetricDescriptor/displayName": display_name
|
||||
"/logging:v2beta1/MetricDescriptor/labels": labels
|
||||
"/logging:v2beta1/MetricDescriptor/labels/label": label
|
||||
"/logging:v2beta1/MetricDescriptor/metadata": metadata
|
||||
"/logging:v2beta1/MetricDescriptor/metricKind": metric_kind
|
||||
"/logging:v2beta1/MetricDescriptor/name": name
|
||||
"/logging:v2beta1/MetricDescriptor/type": type
|
||||
"/logging:v2beta1/MetricDescriptor/unit": unit
|
||||
"/logging:v2beta1/MetricDescriptor/valueType": value_type
|
||||
"/logging:v2beta1/MetricDescriptorMetadata": metric_descriptor_metadata
|
||||
"/logging:v2beta1/MetricDescriptorMetadata/ingestDelay": ingest_delay
|
||||
"/logging:v2beta1/MetricDescriptorMetadata/launchStage": launch_stage
|
||||
"/logging:v2beta1/MetricDescriptorMetadata/samplePeriod": sample_period
|
||||
"/logging:v2beta1/MonitoredResource": monitored_resource
|
||||
"/logging:v2beta1/MonitoredResource/labels": labels
|
||||
"/logging:v2beta1/MonitoredResource/labels/label": label
|
||||
|
@ -63600,11 +63685,16 @@
|
|||
"/monitoring:v3/MetricDescriptor/displayName": display_name
|
||||
"/monitoring:v3/MetricDescriptor/labels": labels
|
||||
"/monitoring:v3/MetricDescriptor/labels/label": label
|
||||
"/monitoring:v3/MetricDescriptor/metadata": metadata
|
||||
"/monitoring:v3/MetricDescriptor/metricKind": metric_kind
|
||||
"/monitoring:v3/MetricDescriptor/name": name
|
||||
"/monitoring:v3/MetricDescriptor/type": type
|
||||
"/monitoring:v3/MetricDescriptor/unit": unit
|
||||
"/monitoring:v3/MetricDescriptor/valueType": value_type
|
||||
"/monitoring:v3/MetricDescriptorMetadata": metric_descriptor_metadata
|
||||
"/monitoring:v3/MetricDescriptorMetadata/ingestDelay": ingest_delay
|
||||
"/monitoring:v3/MetricDescriptorMetadata/launchStage": launch_stage
|
||||
"/monitoring:v3/MetricDescriptorMetadata/samplePeriod": sample_period
|
||||
"/monitoring:v3/MetricThreshold": metric_threshold
|
||||
"/monitoring:v3/MetricThreshold/aggregations": aggregations
|
||||
"/monitoring:v3/MetricThreshold/aggregations/aggregation": aggregation
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180615'
|
||||
REVISION = '20180623'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -854,6 +854,25 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The entrypoint for the application.
|
||||
class Entrypoint
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The format should be a shell command that can be fed to bash -c.
|
||||
# Corresponds to the JSON property `shell`
|
||||
# @return [String]
|
||||
attr_accessor :shell
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@shell = args[:shell] if args.key?(:shell)
|
||||
end
|
||||
end
|
||||
|
||||
# Custom static error page to be served when an error occurs.
|
||||
class ErrorHandler
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -2774,6 +2793,11 @@ module Google
|
|||
# @return [Google::Apis::AppengineV1::EndpointsApiService]
|
||||
attr_accessor :endpoints_api_service
|
||||
|
||||
# The entrypoint for the application.
|
||||
# Corresponds to the JSON property `entrypoint`
|
||||
# @return [Google::Apis::AppengineV1::Entrypoint]
|
||||
attr_accessor :entrypoint
|
||||
|
||||
# App Engine execution environment for this version.Defaults to standard.
|
||||
# Corresponds to the JSON property `env`
|
||||
# @return [String]
|
||||
|
@ -2937,6 +2961,7 @@ module Google
|
|||
@deployment = args[:deployment] if args.key?(:deployment)
|
||||
@disk_usage_bytes = args[:disk_usage_bytes] if args.key?(:disk_usage_bytes)
|
||||
@endpoints_api_service = args[:endpoints_api_service] if args.key?(:endpoints_api_service)
|
||||
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
|
||||
@env = args[:env] if args.key?(:env)
|
||||
@env_variables = args[:env_variables] if args.key?(:env_variables)
|
||||
@error_handlers = args[:error_handlers] if args.key?(:error_handlers)
|
||||
|
|
|
@ -154,6 +154,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Entrypoint
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ErrorHandler
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -659,6 +665,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Entrypoint
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :shell, as: 'shell'
|
||||
end
|
||||
end
|
||||
|
||||
class ErrorHandler
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1132,6 +1145,8 @@ module Google
|
|||
property :disk_usage_bytes, :numeric_string => true, as: 'diskUsageBytes'
|
||||
property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1::EndpointsApiService, decorator: Google::Apis::AppengineV1::EndpointsApiService::Representation
|
||||
|
||||
property :entrypoint, as: 'entrypoint', class: Google::Apis::AppengineV1::Entrypoint, decorator: Google::Apis::AppengineV1::Entrypoint::Representation
|
||||
|
||||
property :env, as: 'env'
|
||||
hash :env_variables, as: 'envVariables'
|
||||
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1::ErrorHandler, decorator: Google::Apis::AppengineV1::ErrorHandler::Representation
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20180615'
|
||||
REVISION = '20180623'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -933,6 +933,25 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The entrypoint for the application.
|
||||
class Entrypoint
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The format should be a shell command that can be fed to bash -c.
|
||||
# Corresponds to the JSON property `shell`
|
||||
# @return [String]
|
||||
attr_accessor :shell
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@shell = args[:shell] if args.key?(:shell)
|
||||
end
|
||||
end
|
||||
|
||||
# Custom static error page to be served when an error occurs.
|
||||
class ErrorHandler
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -2906,6 +2925,11 @@ module Google
|
|||
# @return [Google::Apis::AppengineV1beta::EndpointsApiService]
|
||||
attr_accessor :endpoints_api_service
|
||||
|
||||
# The entrypoint for the application.
|
||||
# Corresponds to the JSON property `entrypoint`
|
||||
# @return [Google::Apis::AppengineV1beta::Entrypoint]
|
||||
attr_accessor :entrypoint
|
||||
|
||||
# App Engine execution environment for this version.Defaults to standard.
|
||||
# Corresponds to the JSON property `env`
|
||||
# @return [String]
|
||||
|
@ -3069,6 +3093,7 @@ module Google
|
|||
@deployment = args[:deployment] if args.key?(:deployment)
|
||||
@disk_usage_bytes = args[:disk_usage_bytes] if args.key?(:disk_usage_bytes)
|
||||
@endpoints_api_service = args[:endpoints_api_service] if args.key?(:endpoints_api_service)
|
||||
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
|
||||
@env = args[:env] if args.key?(:env)
|
||||
@env_variables = args[:env_variables] if args.key?(:env_variables)
|
||||
@error_handlers = args[:error_handlers] if args.key?(:error_handlers)
|
||||
|
|
|
@ -166,6 +166,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Entrypoint
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ErrorHandler
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -699,6 +705,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Entrypoint
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :shell, as: 'shell'
|
||||
end
|
||||
end
|
||||
|
||||
class ErrorHandler
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1185,6 +1198,8 @@ module Google
|
|||
property :disk_usage_bytes, :numeric_string => true, as: 'diskUsageBytes'
|
||||
property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1beta::EndpointsApiService, decorator: Google::Apis::AppengineV1beta::EndpointsApiService::Representation
|
||||
|
||||
property :entrypoint, as: 'entrypoint', class: Google::Apis::AppengineV1beta::Entrypoint, decorator: Google::Apis::AppengineV1beta::Entrypoint::Representation
|
||||
|
||||
property :env, as: 'env'
|
||||
hash :env_variables, as: 'envVariables'
|
||||
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1beta::ErrorHandler, decorator: Google::Apis::AppengineV1beta::ErrorHandler::Representation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/hangouts/chat
|
||||
module ChatV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180606'
|
||||
REVISION = '20180623'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/functions
|
||||
module CloudfunctionsV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20180619'
|
||||
REVISION = '20180622'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -95,6 +95,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :entry_point
|
||||
|
||||
# **Beta Feature**
|
||||
# Environment variables that shall be available during function execution.
|
||||
# Corresponds to the JSON property `environmentVariables`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :environment_variables
|
||||
|
||||
# Describes EventTrigger, used to request events be sent from another
|
||||
# service.
|
||||
# Corresponds to the JSON property `eventTrigger`
|
||||
|
@ -118,12 +124,34 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :latest_operation
|
||||
|
||||
# The limit on the maximum number of function instances that may coexist at a
|
||||
# given time. This feature is currently in alpha, available only for
|
||||
# whitelisted users.
|
||||
# Corresponds to the JSON property `maxInstances`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_instances
|
||||
|
||||
# A user-defined name of the function. Function names must be unique
|
||||
# globally and match pattern `projects/*/locations/*/functions/*`
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The Google Compute Engine network that this function can connect to.
|
||||
# Either the fully-qualified URI of the network resource, or
|
||||
# the short name of the network must be specified. If the network belongs to
|
||||
# another project, the URI of the resource must be specified
|
||||
# e.g.,
|
||||
# `https://www.googleapis.com/compute/v1/projects/`project`/global/networks/`
|
||||
# network``
|
||||
# or `my-network`.
|
||||
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
|
||||
# more information on connecting Cloud projects.
|
||||
# This feature is currently in alpha, available only for whitelisted users.
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# The runtime in which the function is going to run. If empty, defaults to
|
||||
# Node.js 6.
|
||||
# Corresponds to the JSON property `runtime`
|
||||
|
@ -201,11 +229,14 @@ module Google
|
|||
def update!(**args)
|
||||
@available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb)
|
||||
@entry_point = args[:entry_point] if args.key?(:entry_point)
|
||||
@environment_variables = args[:environment_variables] if args.key?(:environment_variables)
|
||||
@event_trigger = args[:event_trigger] if args.key?(:event_trigger)
|
||||
@https_trigger = args[:https_trigger] if args.key?(:https_trigger)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@latest_operation = args[:latest_operation] if args.key?(:latest_operation)
|
||||
@max_instances = args[:max_instances] if args.key?(:max_instances)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
@runtime = args[:runtime] if args.key?(:runtime)
|
||||
@service_account = args[:service_account] if args.key?(:service_account)
|
||||
@source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
|
||||
|
|
|
@ -163,13 +163,16 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :available_memory_mb, as: 'availableMemoryMb'
|
||||
property :entry_point, as: 'entryPoint'
|
||||
hash :environment_variables, as: 'environmentVariables'
|
||||
property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV1beta2::EventTrigger, decorator: Google::Apis::CloudfunctionsV1beta2::EventTrigger::Representation
|
||||
|
||||
property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1beta2::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1beta2::HttpsTrigger::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :latest_operation, as: 'latestOperation'
|
||||
property :max_instances, as: 'maxInstances'
|
||||
property :name, as: 'name'
|
||||
property :network, as: 'network'
|
||||
property :runtime, as: 'runtime'
|
||||
property :service_account, as: 'serviceAccount'
|
||||
property :source_archive_url, as: 'sourceArchiveUrl'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180607'
|
||||
REVISION = '20180616'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -724,7 +724,7 @@ module Google
|
|||
|
||||
# The parent (project, location, cluster id) where the node pool will be
|
||||
# created. Specified in the format
|
||||
# 'projects/*/locations/*/clusters/*/nodePools/*'.
|
||||
# 'projects/*/locations/*/clusters/*'.
|
||||
# Corresponds to the JSON property `parent`
|
||||
# @return [String]
|
||||
attr_accessor :parent
|
||||
|
|
|
@ -723,7 +723,7 @@ module Google
|
|||
# @param [String] parent
|
||||
# The parent (project, location, cluster id) where the node pool will be
|
||||
# created. Specified in the format
|
||||
# 'projects/*/locations/*/clusters/*/nodePools/*'.
|
||||
# 'projects/*/locations/*/clusters/*'.
|
||||
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20180607'
|
||||
REVISION = '20180616'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -291,6 +291,12 @@ module Google
|
|||
attr_accessor :enable_kubernetes_alpha
|
||||
alias_method :enable_kubernetes_alpha?, :enable_kubernetes_alpha
|
||||
|
||||
# Enable the ability to use Cloud TPUs in this cluster.
|
||||
# Corresponds to the JSON property `enableTpu`
|
||||
# @return [Boolean]
|
||||
attr_accessor :enable_tpu
|
||||
alias_method :enable_tpu?, :enable_tpu
|
||||
|
||||
# [Output only] The IP address of this cluster's master endpoint.
|
||||
# The endpoint can be accessed from the internet at
|
||||
# `https://username:password@endpoint/`.
|
||||
|
@ -514,6 +520,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :subnetwork
|
||||
|
||||
# [Output only] The IP address range of the Cloud TPUs in this cluster, in
|
||||
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
||||
# notation (e.g. `1.2.3.4/29`).
|
||||
# Corresponds to the JSON property `tpuIpv4CidrBlock`
|
||||
# @return [String]
|
||||
attr_accessor :tpu_ipv4_cidr_block
|
||||
|
||||
# [Output only] The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
|
@ -537,6 +550,7 @@ module Google
|
|||
@current_node_version = args[:current_node_version] if args.key?(:current_node_version)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@enable_kubernetes_alpha = args[:enable_kubernetes_alpha] if args.key?(:enable_kubernetes_alpha)
|
||||
@enable_tpu = args[:enable_tpu] if args.key?(:enable_tpu)
|
||||
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
||||
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
||||
@initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version)
|
||||
|
@ -568,6 +582,7 @@ module Google
|
|||
@status = args[:status] if args.key?(:status)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
||||
@tpu_ipv4_cidr_block = args[:tpu_ipv4_cidr_block] if args.key?(:tpu_ipv4_cidr_block)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
end
|
||||
end
|
||||
|
@ -795,7 +810,7 @@ module Google
|
|||
|
||||
# The parent (project, location, cluster id) where the node pool will be
|
||||
# created. Specified in the format
|
||||
# 'projects/*/locations/*/clusters/*/nodePools/*'.
|
||||
# 'projects/*/locations/*/clusters/*'.
|
||||
# Corresponds to the JSON property `parent`
|
||||
# @return [String]
|
||||
attr_accessor :parent
|
||||
|
@ -875,6 +890,233 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Associates `members` with a `role`.
|
||||
class GoogleIamV1Binding
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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@gmail.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`.
|
||||
# * `domain:`domain``: A Google Apps domain name 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`.
|
||||
# Required
|
||||
# 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)
|
||||
@members = args[:members] if args.key?(:members)
|
||||
@role = args[:role] if args.key?(:role)
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for `GetIamPolicy` method.
|
||||
class GoogleIamV1GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||
# specify access control policies for Cloud Platform resources.
|
||||
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
||||
# `members` to a `role`, where the members can be user accounts, Google groups,
|
||||
# Google domains, and service accounts. A `role` is a named list of permissions
|
||||
# defined by IAM.
|
||||
# **JSON Example**
|
||||
# `
|
||||
# "bindings": [
|
||||
# `
|
||||
# "role": "roles/owner",
|
||||
# "members": [
|
||||
# "user:mike@example.com",
|
||||
# "group:admins@example.com",
|
||||
# "domain:google.com",
|
||||
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "role": "roles/viewer",
|
||||
# "members": ["user:sean@example.com"]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# **YAML Example**
|
||||
# bindings:
|
||||
# - members:
|
||||
# - user:mike@example.com
|
||||
# - group:admins@example.com
|
||||
# - domain:google.com
|
||||
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
|
||||
# role: roles/owner
|
||||
# - members:
|
||||
# - user:sean@example.com
|
||||
# role: roles/viewer
|
||||
# For a description of IAM and its features, see the
|
||||
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||
class GoogleIamV1Policy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Associates a list of `members` to a `role`.
|
||||
# `bindings` with no members will result in an error.
|
||||
# Corresponds to the JSON property `bindings`
|
||||
# @return [Array<Google::Apis::ContainerV1beta1::GoogleIamV1Binding>]
|
||||
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.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten blindly.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Deprecated.
|
||||
# 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)
|
||||
@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 GoogleIamV1SetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||
# specify access control policies for Cloud Platform resources.
|
||||
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
||||
# `members` to a `role`, where the members can be user accounts, Google groups,
|
||||
# Google domains, and service accounts. A `role` is a named list of permissions
|
||||
# defined by IAM.
|
||||
# **JSON Example**
|
||||
# `
|
||||
# "bindings": [
|
||||
# `
|
||||
# "role": "roles/owner",
|
||||
# "members": [
|
||||
# "user:mike@example.com",
|
||||
# "group:admins@example.com",
|
||||
# "domain:google.com",
|
||||
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "role": "roles/viewer",
|
||||
# "members": ["user:sean@example.com"]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# **YAML Example**
|
||||
# bindings:
|
||||
# - members:
|
||||
# - user:mike@example.com
|
||||
# - group:admins@example.com
|
||||
# - domain:google.com
|
||||
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
|
||||
# role: roles/owner
|
||||
# - members:
|
||||
# - user:sean@example.com
|
||||
# role: roles/viewer
|
||||
# For a description of IAM and its features, see the
|
||||
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||
# Corresponds to the JSON property `policy`
|
||||
# @return [Google::Apis::ContainerV1beta1::GoogleIamV1Policy]
|
||||
attr_accessor :policy
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@policy = args[:policy] if args.key?(:policy)
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for `TestIamPermissions` method.
|
||||
class GoogleIamV1TestIamPermissionsRequest
|
||||
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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@permissions = args[:permissions] if args.key?(:permissions)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for `TestIamPermissions` method.
|
||||
class GoogleIamV1TestIamPermissionsResponse
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
||||
# Configuration options for the horizontal pod autoscaling feature, which
|
||||
# increases or decreases the number of replica pods a replication controller
|
||||
# has based on the resource usage of the existing pods.
|
||||
|
@ -1035,6 +1277,21 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :subnetwork_name
|
||||
|
||||
# The IP address range of the Cloud TPUs in this cluster. If unspecified, a
|
||||
# range will be automatically chosen with the default size.
|
||||
# This field is only applicable when `use_ip_aliases` is true.
|
||||
# If unspecified, the range will use the default size.
|
||||
# Set to /netmask (e.g. `/14`) to have a range chosen with a specific
|
||||
# netmask.
|
||||
# Set to a
|
||||
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
||||
# notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
|
||||
# `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
|
||||
# to use.
|
||||
# Corresponds to the JSON property `tpuIpv4CidrBlock`
|
||||
# @return [String]
|
||||
attr_accessor :tpu_ipv4_cidr_block
|
||||
|
||||
# Whether alias IPs will be used for pod IPs in the cluster.
|
||||
# Corresponds to the JSON property `useIpAliases`
|
||||
# @return [Boolean]
|
||||
|
@ -1058,6 +1315,7 @@ module Google
|
|||
@services_ipv4_cidr_block = args[:services_ipv4_cidr_block] if args.key?(:services_ipv4_cidr_block)
|
||||
@services_secondary_range_name = args[:services_secondary_range_name] if args.key?(:services_secondary_range_name)
|
||||
@subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name)
|
||||
@tpu_ipv4_cidr_block = args[:tpu_ipv4_cidr_block] if args.key?(:tpu_ipv4_cidr_block)
|
||||
@use_ip_aliases = args[:use_ip_aliases] if args.key?(:use_ip_aliases)
|
||||
end
|
||||
end
|
||||
|
@ -1242,7 +1500,7 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Contains the name of the resource requested.
|
||||
# Specific in the format 'projects/*/locations/*'.
|
||||
# Specified in the format 'projects/*/locations/*'.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
|
|
@ -106,6 +106,42 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleIamV1Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleIamV1GetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleIamV1Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleIamV1SetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleIamV1TestIamPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleIamV1TestIamPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HorizontalPodAutoscaling
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -464,6 +500,7 @@ module Google
|
|||
property :current_node_version, as: 'currentNodeVersion'
|
||||
property :description, as: 'description'
|
||||
property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
|
||||
property :enable_tpu, as: 'enableTpu'
|
||||
property :endpoint, as: 'endpoint'
|
||||
property :expire_time, as: 'expireTime'
|
||||
property :initial_cluster_version, as: 'initialClusterVersion'
|
||||
|
@ -505,6 +542,7 @@ module Google
|
|||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :subnetwork, as: 'subnetwork'
|
||||
property :tpu_ipv4_cidr_block, as: 'tpuIpv4CidrBlock'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
@ -578,6 +616,52 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleIamV1Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleIamV1GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleIamV1Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::ContainerV1beta1::GoogleIamV1Binding, decorator: Google::Apis::ContainerV1beta1::GoogleIamV1Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleIamV1SetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::ContainerV1beta1::GoogleIamV1Policy, decorator: Google::Apis::ContainerV1beta1::GoogleIamV1Policy::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleIamV1TestIamPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleIamV1TestIamPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class HorizontalPodAutoscaling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -606,6 +690,7 @@ module Google
|
|||
property :services_ipv4_cidr_block, as: 'servicesIpv4CidrBlock'
|
||||
property :services_secondary_range_name, as: 'servicesSecondaryRangeName'
|
||||
property :subnetwork_name, as: 'subnetworkName'
|
||||
property :tpu_ipv4_cidr_block, as: 'tpuIpv4CidrBlock'
|
||||
property :use_ip_aliases, as: 'useIpAliases'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -48,6 +48,118 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets the access control policy for a resource. Returns NOT_FOUND error if
|
||||
# the resource does not exist. Returns an empty policy if the resource exists
|
||||
# but does not have a policy set.
|
||||
# Authorization requires the Google IAM permission
|
||||
# `container.clusters.getIamPolicy` on the specified resource.
|
||||
# @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 [Google::Apis::ContainerV1beta1::GoogleIamV1GetIamPolicyRequest] google_iam_v1_get_iam_policy_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::ContainerV1beta1::GoogleIamV1Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1beta1::GoogleIamV1Policy]
|
||||
#
|
||||
# @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_iam_policy(resource, google_iam_v1_get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
|
||||
command.request_representation = Google::Apis::ContainerV1beta1::GoogleIamV1GetIamPolicyRequest::Representation
|
||||
command.request_object = google_iam_v1_get_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1beta1::GoogleIamV1Policy::Representation
|
||||
command.response_class = Google::Apis::ContainerV1beta1::GoogleIamV1Policy
|
||||
command.params['resource'] = resource unless resource.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 for a resource. Replaces any existing
|
||||
# policy.
|
||||
# Authorization requires the Google IAM permission
|
||||
# 'container.clusters.setIamPolicy' on the specified resource.
|
||||
# @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::ContainerV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::ContainerV1beta1::GoogleIamV1Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1beta1::GoogleIamV1Policy]
|
||||
#
|
||||
# @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_project_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::ContainerV1beta1::GoogleIamV1SetIamPolicyRequest::Representation
|
||||
command.request_object = google_iam_v1_set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1beta1::GoogleIamV1Policy::Representation
|
||||
command.response_class = Google::Apis::ContainerV1beta1::GoogleIamV1Policy
|
||||
command.params['resource'] = resource unless resource.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.
|
||||
# There is no permission required to make this API call.
|
||||
# @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::ContainerV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_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::ContainerV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1beta1::GoogleIamV1TestIamPermissionsResponse]
|
||||
#
|
||||
# @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_project_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::ContainerV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation
|
||||
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1beta1::GoogleIamV1TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.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 subnetworks that are usable for creating clusters in a project.
|
||||
# @param [String] parent
|
||||
# The parent project where subnetworks are usable.
|
||||
|
@ -139,7 +251,7 @@ module Google
|
|||
#
|
||||
# @param [String] parent
|
||||
# Contains the name of the resource requested.
|
||||
# Specific in the format 'projects/*/locations'.
|
||||
# Specified in the format 'projects/*'.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -802,7 +914,7 @@ module Google
|
|||
# @param [String] parent
|
||||
# The parent (project, location, cluster id) where the node pool will be
|
||||
# created. Specified in the format
|
||||
# 'projects/*/locations/*/clusters/*/nodePools/*'.
|
||||
# 'projects/*/locations/*/clusters/*'.
|
||||
# @param [Google::Apis::ContainerV1beta1::CreateNodePoolRequest] create_node_pool_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow-enterprise/
|
||||
module DialogflowV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180611'
|
||||
REVISION = '20180623'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -2431,11 +2431,9 @@ module Google
|
|||
|
||||
# Required. The unique identifier of the context. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
||||
# or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||
# users are under construction and will be available soon. The `Context ID`
|
||||
# is always converted to lowercase. If `Environment ID` is not specified, we
|
||||
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is
|
||||
# always converted to lowercase. If `Environment ID` is not specified, we
|
||||
# assume default 'draft' environment. If `User ID` is not specified, we
|
||||
# assume default '-' user.
|
||||
# Corresponds to the JSON property `name`
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow-enterprise/
|
||||
module DialogflowV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20180611'
|
||||
REVISION = '20180623'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1816,11 +1816,9 @@ module Google
|
|||
|
||||
# Required. The unique identifier of the context. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
||||
# or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||
# users are under construction and will be available soon. The `Context ID`
|
||||
# is always converted to lowercase. If `Environment ID` is not specified, we
|
||||
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is
|
||||
# always converted to lowercase. If `Environment ID` is not specified, we
|
||||
# assume default 'draft' environment. If `User ID` is not specified, we
|
||||
# assume default '-' user.
|
||||
# Corresponds to the JSON property `name`
|
||||
|
@ -3671,10 +3669,8 @@ module Google
|
|||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
# Display Name>`, or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions
|
||||
# /<Session ID>/entityTypes/<Entity Type Display Name>`.
|
||||
# Note: Environments and users are under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
|
||||
# If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
|
|
|
@ -659,10 +659,8 @@ module Google
|
|||
# Required. The name of the session to delete all contexts from. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
||||
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
|
||||
# ID>`. Note: Environments and users are under construction and will be
|
||||
# available soon. If `Environment ID` is not specified we assume default
|
||||
# 'draft' environment. If `User ID` is not specified, we assume default
|
||||
# '-' user.
|
||||
# ID>`. If `Environment ID` is not specified we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -698,13 +696,12 @@ module Google
|
|||
# Required. The name of the session this query is sent to. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>`. Note: Environments and users are under
|
||||
# construction and will be available soon. If `Environment ID` is not
|
||||
# specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we are using "-". It’s up to the API caller to choose an
|
||||
# appropriate `Session ID` and `User Id`. They can be a random numbers or
|
||||
# some type of user and session identifiers (preferably hashed). The length
|
||||
# of the `Session ID` and `User ID` must not exceed 36 characters.
|
||||
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we are using
|
||||
# "-". It’s up to the API caller to choose an appropriate `Session ID` and
|
||||
# `User Id`. They can be a random numbers or some type of user and session
|
||||
# identifiers (preferably hashed). The length of the `Session ID` and
|
||||
# `User ID` must not exceed 36 characters.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -740,10 +737,9 @@ module Google
|
|||
# Required. The session to create a context for.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>`. Note: Environments and users are under
|
||||
# construction and will be available soon. If `Environment ID` is not
|
||||
# specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we assume default '-' user.
|
||||
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we assume
|
||||
# default '-' user.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -779,11 +775,9 @@ module Google
|
|||
# Required. The name of the context to delete. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
||||
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||
# users are under construction and will be available soon. If `Environment
|
||||
# ID` is not specified, we assume default 'draft' environment. If `User ID`
|
||||
# is not specified, we assume default
|
||||
# '-' user.
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
||||
# not specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -816,10 +810,9 @@ module Google
|
|||
# Required. The name of the context. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
||||
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||
# users are under construction and will be available soon. If `Environment
|
||||
# ID` is not specified, we assume default 'draft' environment. If `User ID`
|
||||
# is not specified, we assume default '-' user.
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
||||
# not specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -852,10 +845,9 @@ module Google
|
|||
# Required. The session to list all contexts from.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>`. Note: Environments and users are under
|
||||
# construction and will be available soon. If `Environment ID` is not
|
||||
# specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we assume default '-' user.
|
||||
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we assume
|
||||
# default '-' user.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The maximum number of items to return in a single page. By
|
||||
# default 100 and at most 1000.
|
||||
|
@ -894,11 +886,9 @@ module Google
|
|||
# @param [String] name
|
||||
# Required. The unique identifier of the context. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
||||
# or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||
# users are under construction and will be available soon. The `Context ID`
|
||||
# is always converted to lowercase. If `Environment ID` is not specified, we
|
||||
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is
|
||||
# always converted to lowercase. If `Environment ID` is not specified, we
|
||||
# assume default 'draft' environment. If `User ID` is not specified, we
|
||||
# assume default '-' user.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
|
||||
|
@ -939,10 +929,9 @@ module Google
|
|||
# Required. The session to create a session entity type for.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
||||
# sessions/<Session ID>`.
|
||||
# Note: Environments and users are under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we assume
|
||||
# default '-' user.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -979,9 +968,7 @@ module Google
|
|||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
||||
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
||||
# Name>`.
|
||||
# Note: Environments and users are under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1015,10 +1002,8 @@ module Google
|
|||
# Required. The name of the session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
||||
# ID>/users/<User ID>/sessions/<Session ID>/
|
||||
# entityTypes/<Entity Type Display Name>`.
|
||||
# Note: Environments and users re under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
||||
# Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1053,8 +1038,7 @@ module Google
|
|||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
||||
# sessions/<Session ID>`.
|
||||
# Note: Environments and users are under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The maximum number of items to return in a single page. By
|
||||
|
@ -1096,10 +1080,8 @@ module Google
|
|||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
# Display Name>`, or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions
|
||||
# /<Session ID>/entityTypes/<Entity Type Display Name>`.
|
||||
# Note: Environments and users are under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
|
||||
# If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
|
||||
# @param [String] update_mask
|
||||
|
@ -1422,10 +1404,8 @@ module Google
|
|||
# Required. The name of the session to delete all contexts from. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
||||
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
|
||||
# ID>`. Note: Environments and users are under construction and will be
|
||||
# available soon. If `Environment ID` is not specified we assume default
|
||||
# 'draft' environment. If `User ID` is not specified, we assume default
|
||||
# '-' user.
|
||||
# ID>`. If `Environment ID` is not specified we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1461,13 +1441,12 @@ module Google
|
|||
# Required. The name of the session this query is sent to. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>`. Note: Environments and users are under
|
||||
# construction and will be available soon. If `Environment ID` is not
|
||||
# specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we are using "-". It’s up to the API caller to choose an
|
||||
# appropriate `Session ID` and `User Id`. They can be a random numbers or
|
||||
# some type of user and session identifiers (preferably hashed). The length
|
||||
# of the `Session ID` and `User ID` must not exceed 36 characters.
|
||||
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we are using
|
||||
# "-". It’s up to the API caller to choose an appropriate `Session ID` and
|
||||
# `User Id`. They can be a random numbers or some type of user and session
|
||||
# identifiers (preferably hashed). The length of the `Session ID` and
|
||||
# `User ID` must not exceed 36 characters.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1503,10 +1482,9 @@ module Google
|
|||
# Required. The session to create a context for.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>`. Note: Environments and users are under
|
||||
# construction and will be available soon. If `Environment ID` is not
|
||||
# specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we assume default '-' user.
|
||||
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we assume
|
||||
# default '-' user.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1542,11 +1520,9 @@ module Google
|
|||
# Required. The name of the context to delete. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
||||
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||
# users are under construction and will be available soon. If `Environment
|
||||
# ID` is not specified, we assume default 'draft' environment. If `User ID`
|
||||
# is not specified, we assume default
|
||||
# '-' user.
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
||||
# not specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1579,10 +1555,9 @@ module Google
|
|||
# Required. The name of the context. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
||||
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||
# users are under construction and will be available soon. If `Environment
|
||||
# ID` is not specified, we assume default 'draft' environment. If `User ID`
|
||||
# is not specified, we assume default '-' user.
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
||||
# not specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1615,10 +1590,9 @@ module Google
|
|||
# Required. The session to list all contexts from.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>`. Note: Environments and users are under
|
||||
# construction and will be available soon. If `Environment ID` is not
|
||||
# specified, we assume default 'draft' environment. If `User ID` is not
|
||||
# specified, we assume default '-' user.
|
||||
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we assume
|
||||
# default '-' user.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The maximum number of items to return in a single page. By
|
||||
# default 100 and at most 1000.
|
||||
|
@ -1657,11 +1631,9 @@ module Google
|
|||
# @param [String] name
|
||||
# Required. The unique identifier of the context. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
||||
# or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||
# users are under construction and will be available soon. The `Context ID`
|
||||
# is always converted to lowercase. If `Environment ID` is not specified, we
|
||||
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is
|
||||
# always converted to lowercase. If `Environment ID` is not specified, we
|
||||
# assume default 'draft' environment. If `User ID` is not specified, we
|
||||
# assume default '-' user.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
|
||||
|
@ -1702,10 +1674,9 @@ module Google
|
|||
# Required. The session to create a session entity type for.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
||||
# sessions/<Session ID>`.
|
||||
# Note: Environments and users are under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we assume
|
||||
# default '-' user.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1742,9 +1713,7 @@ module Google
|
|||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
||||
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
||||
# Name>`.
|
||||
# Note: Environments and users are under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1778,10 +1747,8 @@ module Google
|
|||
# Required. The name of the session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
||||
# ID>/users/<User ID>/sessions/<Session ID>/
|
||||
# entityTypes/<Entity Type Display Name>`.
|
||||
# Note: Environments and users re under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
||||
# Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1816,8 +1783,7 @@ module Google
|
|||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
||||
# sessions/<Session ID>`.
|
||||
# Note: Environments and users are under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The maximum number of items to return in a single page. By
|
||||
|
@ -1859,10 +1825,8 @@ module Google
|
|||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
# Display Name>`, or
|
||||
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
# ID>/sessions
|
||||
# /<Session ID>/entityTypes/<Entity Type Display Name>`.
|
||||
# Note: Environments and users are under construction and will be available
|
||||
# soon. If `Environment ID` is not specified, we assume default 'draft'
|
||||
# ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
|
||||
# If `Environment ID` is not specified, we assume default 'draft'
|
||||
# environment. If `User ID` is not specified, we assume default '-' user.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
|
||||
# @param [String] update_mask
|
||||
|
|
|
@ -25,7 +25,10 @@ module Google
|
|||
# @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount
|
||||
module IamcredentialsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180608'
|
||||
REVISION = '20180627'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,6 +21,252 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module IamcredentialsV1
|
||||
|
||||
#
|
||||
class GenerateAccessTokenRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The sequence of service accounts in a delegation chain. Each service
|
||||
# account must be granted the `roles/iam.serviceAccountTokenCreator` role
|
||||
# on its next service account in the chain. The last service account in the
|
||||
# chain must be granted the `roles/iam.serviceAccountTokenCreator` role
|
||||
# on the service account that is specified in the `name` field of the
|
||||
# request.
|
||||
# The delegates must have the following format:
|
||||
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``
|
||||
# Corresponds to the JSON property `delegates`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :delegates
|
||||
|
||||
# The desired lifetime duration of the access token in seconds.
|
||||
# Must be set to a value less than or equal to 3600 (1 hour). If a value is
|
||||
# not specified, the token's lifetime will be set to a default value of one
|
||||
# hour.
|
||||
# Corresponds to the JSON property `lifetime`
|
||||
# @return [String]
|
||||
attr_accessor :lifetime
|
||||
|
||||
# Code to identify ApiScope (OAuth scope to be precise) to be included in the
|
||||
# OAuth token.
|
||||
# See https://developers.google.com/identity/protocols/googlescopes for more
|
||||
# information.
|
||||
# At least one value required.
|
||||
# Corresponds to the JSON property `scope`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :scope
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@delegates = args[:delegates] if args.key?(:delegates)
|
||||
@lifetime = args[:lifetime] if args.key?(:lifetime)
|
||||
@scope = args[:scope] if args.key?(:scope)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GenerateAccessTokenResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The OAuth 2.0 access token.
|
||||
# Corresponds to the JSON property `accessToken`
|
||||
# @return [String]
|
||||
attr_accessor :access_token
|
||||
|
||||
# Token expiration time.
|
||||
# Corresponds to the JSON property `expireTime`
|
||||
# @return [String]
|
||||
attr_accessor :expire_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@access_token = args[:access_token] if args.key?(:access_token)
|
||||
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GenerateIdTokenRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The audience for the token, such as the API or account that this token
|
||||
# grants access to.
|
||||
# Corresponds to the JSON property `audience`
|
||||
# @return [String]
|
||||
attr_accessor :audience
|
||||
|
||||
# The sequence of service accounts in a delegation chain. Each service
|
||||
# account must be granted the `roles/iam.serviceAccountTokenCreator` role
|
||||
# on its next service account in the chain. The last service account in the
|
||||
# chain must be granted the `roles/iam.serviceAccountTokenCreator` role
|
||||
# on the service account that is specified in the `name` field of the
|
||||
# request.
|
||||
# The delegates must have the following format:
|
||||
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``
|
||||
# Corresponds to the JSON property `delegates`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :delegates
|
||||
|
||||
# Include the service account email in the token. If set to `true`, the
|
||||
# token will contain `email` and `email_verified` claims.
|
||||
# Corresponds to the JSON property `includeEmail`
|
||||
# @return [Boolean]
|
||||
attr_accessor :include_email
|
||||
alias_method :include_email?, :include_email
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@audience = args[:audience] if args.key?(:audience)
|
||||
@delegates = args[:delegates] if args.key?(:delegates)
|
||||
@include_email = args[:include_email] if args.key?(:include_email)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GenerateIdTokenResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The OpenId Connect ID token.
|
||||
# Corresponds to the JSON property `token`
|
||||
# @return [String]
|
||||
attr_accessor :token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@token = args[:token] if args.key?(:token)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SignBlobRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The sequence of service accounts in a delegation chain. Each service
|
||||
# account must be granted the `roles/iam.serviceAccountTokenCreator` role
|
||||
# on its next service account in the chain. The last service account in the
|
||||
# chain must be granted the `roles/iam.serviceAccountTokenCreator` role
|
||||
# on the service account that is specified in the `name` field of the
|
||||
# request.
|
||||
# The delegates must have the following format:
|
||||
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``
|
||||
# Corresponds to the JSON property `delegates`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :delegates
|
||||
|
||||
# The bytes to sign.
|
||||
# Corresponds to the JSON property `payload`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :payload
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@delegates = args[:delegates] if args.key?(:delegates)
|
||||
@payload = args[:payload] if args.key?(:payload)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SignBlobResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the key used to sign the blob.
|
||||
# Corresponds to the JSON property `keyId`
|
||||
# @return [String]
|
||||
attr_accessor :key_id
|
||||
|
||||
# The signed blob.
|
||||
# Corresponds to the JSON property `signedBlob`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :signed_blob
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@key_id = args[:key_id] if args.key?(:key_id)
|
||||
@signed_blob = args[:signed_blob] if args.key?(:signed_blob)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SignJwtRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The sequence of service accounts in a delegation chain. Each service
|
||||
# account must be granted the `roles/iam.serviceAccountTokenCreator` role
|
||||
# on its next service account in the chain. The last service account in the
|
||||
# chain must be granted the `roles/iam.serviceAccountTokenCreator` role
|
||||
# on the service account that is specified in the `name` field of the
|
||||
# request.
|
||||
# The delegates must have the following format:
|
||||
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``
|
||||
# Corresponds to the JSON property `delegates`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :delegates
|
||||
|
||||
# The JWT payload to sign: a JSON object that contains a JWT Claims Set.
|
||||
# Corresponds to the JSON property `payload`
|
||||
# @return [String]
|
||||
attr_accessor :payload
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@delegates = args[:delegates] if args.key?(:delegates)
|
||||
@payload = args[:payload] if args.key?(:payload)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SignJwtResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the key used to sign the JWT.
|
||||
# Corresponds to the JSON property `keyId`
|
||||
# @return [String]
|
||||
attr_accessor :key_id
|
||||
|
||||
# The signed JWT.
|
||||
# Corresponds to the JSON property `signedJwt`
|
||||
# @return [String]
|
||||
attr_accessor :signed_jwt
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@key_id = args[:key_id] if args.key?(:key_id)
|
||||
@signed_jwt = args[:signed_jwt] if args.key?(:signed_jwt)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,6 +21,119 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module IamcredentialsV1
|
||||
|
||||
class GenerateAccessTokenRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GenerateAccessTokenResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GenerateIdTokenRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GenerateIdTokenResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignBlobRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignBlobResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignJwtRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignJwtResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GenerateAccessTokenRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :delegates, as: 'delegates'
|
||||
property :lifetime, as: 'lifetime'
|
||||
collection :scope, as: 'scope'
|
||||
end
|
||||
end
|
||||
|
||||
class GenerateAccessTokenResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :access_token, as: 'accessToken'
|
||||
property :expire_time, as: 'expireTime'
|
||||
end
|
||||
end
|
||||
|
||||
class GenerateIdTokenRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :audience, as: 'audience'
|
||||
collection :delegates, as: 'delegates'
|
||||
property :include_email, as: 'includeEmail'
|
||||
end
|
||||
end
|
||||
|
||||
class GenerateIdTokenResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :token, as: 'token'
|
||||
end
|
||||
end
|
||||
|
||||
class SignBlobRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :delegates, as: 'delegates'
|
||||
property :payload, :base64 => true, as: 'payload'
|
||||
end
|
||||
end
|
||||
|
||||
class SignBlobResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key_id, as: 'keyId'
|
||||
property :signed_blob, :base64 => true, as: 'signedBlob'
|
||||
end
|
||||
end
|
||||
|
||||
class SignJwtRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :delegates, as: 'delegates'
|
||||
property :payload, as: 'payload'
|
||||
end
|
||||
end
|
||||
|
||||
class SignJwtResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key_id, as: 'keyId'
|
||||
property :signed_jwt, as: 'signedJwt'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -46,6 +46,154 @@ module Google
|
|||
super('https://iamcredentials.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Generates an OAuth 2.0 access token for a service account.
|
||||
# @param [String] name
|
||||
# The resource name of the service account for which the credentials
|
||||
# are requested, in the following format:
|
||||
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account.
|
||||
# @param [Google::Apis::IamcredentialsV1::GenerateAccessTokenRequest] generate_access_token_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::IamcredentialsV1::GenerateAccessTokenResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamcredentialsV1::GenerateAccessTokenResponse]
|
||||
#
|
||||
# @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 generate_service_account_access_token(name, generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:generateAccessToken', options)
|
||||
command.request_representation = Google::Apis::IamcredentialsV1::GenerateAccessTokenRequest::Representation
|
||||
command.request_object = generate_access_token_request_object
|
||||
command.response_representation = Google::Apis::IamcredentialsV1::GenerateAccessTokenResponse::Representation
|
||||
command.response_class = Google::Apis::IamcredentialsV1::GenerateAccessTokenResponse
|
||||
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
|
||||
|
||||
# Generates an OpenID Connect ID token for a service account.
|
||||
# @param [String] name
|
||||
# The resource name of the service account for which the credentials
|
||||
# are requested, in the following format:
|
||||
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account.
|
||||
# @param [Google::Apis::IamcredentialsV1::GenerateIdTokenRequest] generate_id_token_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::IamcredentialsV1::GenerateIdTokenResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamcredentialsV1::GenerateIdTokenResponse]
|
||||
#
|
||||
# @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 generate_service_account_id_token(name, generate_id_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:generateIdToken', options)
|
||||
command.request_representation = Google::Apis::IamcredentialsV1::GenerateIdTokenRequest::Representation
|
||||
command.request_object = generate_id_token_request_object
|
||||
command.response_representation = Google::Apis::IamcredentialsV1::GenerateIdTokenResponse::Representation
|
||||
command.response_class = Google::Apis::IamcredentialsV1::GenerateIdTokenResponse
|
||||
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
|
||||
|
||||
# Signs a blob using a service account's system-managed private key.
|
||||
# @param [String] name
|
||||
# The resource name of the service account for which the credentials
|
||||
# are requested, in the following format:
|
||||
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account.
|
||||
# @param [Google::Apis::IamcredentialsV1::SignBlobRequest] sign_blob_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::IamcredentialsV1::SignBlobResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamcredentialsV1::SignBlobResponse]
|
||||
#
|
||||
# @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 sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
|
||||
command.request_representation = Google::Apis::IamcredentialsV1::SignBlobRequest::Representation
|
||||
command.request_object = sign_blob_request_object
|
||||
command.response_representation = Google::Apis::IamcredentialsV1::SignBlobResponse::Representation
|
||||
command.response_class = Google::Apis::IamcredentialsV1::SignBlobResponse
|
||||
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
|
||||
|
||||
# Signs a JWT using a service account's system-managed private key.
|
||||
# @param [String] name
|
||||
# The resource name of the service account for which the credentials
|
||||
# are requested, in the following format:
|
||||
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account.
|
||||
# @param [Google::Apis::IamcredentialsV1::SignJwtRequest] sign_jwt_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::IamcredentialsV1::SignJwtResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamcredentialsV1::SignJwtResponse]
|
||||
#
|
||||
# @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 sign_service_account_jwt(name, sign_jwt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:signJwt', options)
|
||||
command.request_representation = Google::Apis::IamcredentialsV1::SignJwtRequest::Representation
|
||||
command.request_object = sign_jwt_request_object
|
||||
command.response_representation = Google::Apis::IamcredentialsV1::SignJwtResponse::Representation
|
||||
command.response_class = Google::Apis::IamcredentialsV1::SignJwtResponse
|
||||
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
|
||||
|
||||
protected
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/logging/docs/
|
||||
module LoggingV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180604'
|
||||
REVISION = '20180625'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1159,6 +1159,11 @@ module Google
|
|||
# @return [Array<Google::Apis::LoggingV2::LabelDescriptor>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::LoggingV2::MetricDescriptorMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Whether the metric records instantaneous values, changes to a value, etc. Some
|
||||
# combinations of metric_kind and value_type might not be supported.
|
||||
# Corresponds to the JSON property `metricKind`
|
||||
|
@ -1246,6 +1251,7 @@ module Google
|
|||
@description = args[:description] if args.key?(:description)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
|
@ -1254,6 +1260,42 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
class MetricDescriptorMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The delay of data points caused by ingestion. Data points older than this age
|
||||
# are guaranteed to be ingested and available to be read, excluding data loss
|
||||
# due to errors.
|
||||
# Corresponds to the JSON property `ingestDelay`
|
||||
# @return [String]
|
||||
attr_accessor :ingest_delay
|
||||
|
||||
# The launch stage of the metric definition.
|
||||
# Corresponds to the JSON property `launchStage`
|
||||
# @return [String]
|
||||
attr_accessor :launch_stage
|
||||
|
||||
# The sampling period of metric data points. For metrics which are written
|
||||
# periodically, consecutive data points are stored at this time interval,
|
||||
# excluding data loss due to errors. Metrics with a higher granularity have a
|
||||
# smaller sampling period.
|
||||
# Corresponds to the JSON property `samplePeriod`
|
||||
# @return [String]
|
||||
attr_accessor :sample_period
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@ingest_delay = args[:ingest_delay] if args.key?(:ingest_delay)
|
||||
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
||||
@sample_period = args[:sample_period] if args.key?(:sample_period)
|
||||
end
|
||||
end
|
||||
|
||||
# An object representing a resource that can be used for monitoring, logging,
|
||||
# billing, or other purposes. Examples include virtual machine instances,
|
||||
# databases, and storage devices such as disks. The type field identifies a
|
||||
|
|
|
@ -154,6 +154,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MonitoredResource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -444,6 +450,8 @@ module Google
|
|||
property :display_name, as: 'displayName'
|
||||
collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
|
||||
|
||||
property :metadata, as: 'metadata', class: Google::Apis::LoggingV2::MetricDescriptorMetadata, decorator: Google::Apis::LoggingV2::MetricDescriptorMetadata::Representation
|
||||
|
||||
property :metric_kind, as: 'metricKind'
|
||||
property :name, as: 'name'
|
||||
property :type, as: 'type'
|
||||
|
@ -452,6 +460,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ingest_delay, as: 'ingestDelay'
|
||||
property :launch_stage, as: 'launchStage'
|
||||
property :sample_period, as: 'samplePeriod'
|
||||
end
|
||||
end
|
||||
|
||||
class MonitoredResource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/logging/docs/
|
||||
module LoggingV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20180604'
|
||||
REVISION = '20180625'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1082,6 +1082,11 @@ module Google
|
|||
# @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::LoggingV2beta1::MetricDescriptorMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Whether the metric records instantaneous values, changes to a value, etc. Some
|
||||
# combinations of metric_kind and value_type might not be supported.
|
||||
# Corresponds to the JSON property `metricKind`
|
||||
|
@ -1169,6 +1174,7 @@ module Google
|
|||
@description = args[:description] if args.key?(:description)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
|
@ -1177,6 +1183,42 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
class MetricDescriptorMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The delay of data points caused by ingestion. Data points older than this age
|
||||
# are guaranteed to be ingested and available to be read, excluding data loss
|
||||
# due to errors.
|
||||
# Corresponds to the JSON property `ingestDelay`
|
||||
# @return [String]
|
||||
attr_accessor :ingest_delay
|
||||
|
||||
# The launch stage of the metric definition.
|
||||
# Corresponds to the JSON property `launchStage`
|
||||
# @return [String]
|
||||
attr_accessor :launch_stage
|
||||
|
||||
# The sampling period of metric data points. For metrics which are written
|
||||
# periodically, consecutive data points are stored at this time interval,
|
||||
# excluding data loss due to errors. Metrics with a higher granularity have a
|
||||
# smaller sampling period.
|
||||
# Corresponds to the JSON property `samplePeriod`
|
||||
# @return [String]
|
||||
attr_accessor :sample_period
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@ingest_delay = args[:ingest_delay] if args.key?(:ingest_delay)
|
||||
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
||||
@sample_period = args[:sample_period] if args.key?(:sample_period)
|
||||
end
|
||||
end
|
||||
|
||||
# An object representing a resource that can be used for monitoring, logging,
|
||||
# billing, or other purposes. Examples include virtual machine instances,
|
||||
# databases, and storage devices such as disks. The type field identifies a
|
||||
|
|
|
@ -142,6 +142,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MonitoredResource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -413,6 +419,8 @@ module Google
|
|||
property :display_name, as: 'displayName'
|
||||
collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation
|
||||
|
||||
property :metadata, as: 'metadata', class: Google::Apis::LoggingV2beta1::MetricDescriptorMetadata, decorator: Google::Apis::LoggingV2beta1::MetricDescriptorMetadata::Representation
|
||||
|
||||
property :metric_kind, as: 'metricKind'
|
||||
property :name, as: 'name'
|
||||
property :type, as: 'type'
|
||||
|
@ -421,6 +429,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ingest_delay, as: 'ingestDelay'
|
||||
property :launch_stage, as: 'launchStage'
|
||||
property :sample_period, as: 'samplePeriod'
|
||||
end
|
||||
end
|
||||
|
||||
class MonitoredResource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/monitoring/api/
|
||||
module MonitoringV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20180603'
|
||||
REVISION = '20180626'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1691,6 +1691,11 @@ module Google
|
|||
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::MonitoringV3::MetricDescriptorMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Whether the metric records instantaneous values, changes to a value, etc. Some
|
||||
# combinations of metric_kind and value_type might not be supported.
|
||||
# Corresponds to the JSON property `metricKind`
|
||||
|
@ -1711,11 +1716,54 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# Optional. The unit in which the metric value is reported. For example, kBy/s
|
||||
# means kilobytes/sec, and 1 is the dimensionless unit. The supported units are
|
||||
# a subset of The Unified Code for Units of Measure standard (http://
|
||||
# unitsofmeasure.org/ucum.html).<br><br> This field is part of the metric's
|
||||
# documentation, but it is ignored by Stackdriver.
|
||||
# The unit in which the metric value is reported. It is only applicable if the
|
||||
# value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
|
||||
# of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
|
||||
# standard:Basic units (UNIT)
|
||||
# bit bit
|
||||
# By byte
|
||||
# s second
|
||||
# min minute
|
||||
# h hour
|
||||
# d dayPrefixes (PREFIX)
|
||||
# k kilo (10**3)
|
||||
# M mega (10**6)
|
||||
# G giga (10**9)
|
||||
# T tera (10**12)
|
||||
# P peta (10**15)
|
||||
# E exa (10**18)
|
||||
# Z zetta (10**21)
|
||||
# Y yotta (10**24)
|
||||
# m milli (10**-3)
|
||||
# u micro (10**-6)
|
||||
# n nano (10**-9)
|
||||
# p pico (10**-12)
|
||||
# f femto (10**-15)
|
||||
# a atto (10**-18)
|
||||
# z zepto (10**-21)
|
||||
# y yocto (10**-24)
|
||||
# Ki kibi (2**10)
|
||||
# Mi mebi (2**20)
|
||||
# Gi gibi (2**30)
|
||||
# Ti tebi (2**40)GrammarThe grammar also includes these connectors:
|
||||
# / division (as an infix operator, e.g. 1/s).
|
||||
# . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
|
||||
# as follows:
|
||||
# Expression = Component ` "." Component ` ` "/" Component ` ;
|
||||
# Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
||||
# | Annotation
|
||||
# | "1"
|
||||
# ;
|
||||
# Annotation = "`" NAME "`" ;
|
||||
# Notes:
|
||||
# Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
|
||||
# it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
|
||||
# s.
|
||||
# NAME is a sequence of non-blank printable ASCII characters not containing '`'
|
||||
# or '`'.
|
||||
# 1 represents dimensionless value 1, such as in 1/s.
|
||||
# % represents dimensionless value 1/100, and annotates values giving a
|
||||
# percentage.
|
||||
# Corresponds to the JSON property `unit`
|
||||
# @return [String]
|
||||
attr_accessor :unit
|
||||
|
@ -1735,6 +1783,7 @@ module Google
|
|||
@description = args[:description] if args.key?(:description)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
|
@ -1743,6 +1792,42 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
class MetricDescriptorMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The delay of data points caused by ingestion. Data points older than this age
|
||||
# are guaranteed to be ingested and available to be read, excluding data loss
|
||||
# due to errors.
|
||||
# Corresponds to the JSON property `ingestDelay`
|
||||
# @return [String]
|
||||
attr_accessor :ingest_delay
|
||||
|
||||
# The launch stage of the metric definition.
|
||||
# Corresponds to the JSON property `launchStage`
|
||||
# @return [String]
|
||||
attr_accessor :launch_stage
|
||||
|
||||
# The sampling period of metric data points. For metrics which are written
|
||||
# periodically, consecutive data points are stored at this time interval,
|
||||
# excluding data loss due to errors. Metrics with a higher granularity have a
|
||||
# smaller sampling period.
|
||||
# Corresponds to the JSON property `samplePeriod`
|
||||
# @return [String]
|
||||
attr_accessor :sample_period
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@ingest_delay = args[:ingest_delay] if args.key?(:ingest_delay)
|
||||
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
||||
@sample_period = args[:sample_period] if args.key?(:sample_period)
|
||||
end
|
||||
end
|
||||
|
||||
# A condition type that compares a collection of time series against a threshold.
|
||||
class MetricThreshold
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -262,6 +262,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricThreshold
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -803,6 +809,8 @@ module Google
|
|||
property :display_name, as: 'displayName'
|
||||
collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
|
||||
|
||||
property :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::MetricDescriptorMetadata, decorator: Google::Apis::MonitoringV3::MetricDescriptorMetadata::Representation
|
||||
|
||||
property :metric_kind, as: 'metricKind'
|
||||
property :name, as: 'name'
|
||||
property :type, as: 'type'
|
||||
|
@ -811,6 +819,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MetricDescriptorMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ingest_delay, as: 'ingestDelay'
|
||||
property :launch_stage, as: 'launchStage'
|
||||
property :sample_period, as: 'samplePeriod'
|
||||
end
|
||||
end
|
||||
|
||||
class MetricThreshold
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/poly/
|
||||
module PolyV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180610'
|
||||
REVISION = '20180623'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -531,14 +531,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A response message from a request to list.
|
||||
# A response message from a request to startImport.
|
||||
# This is returned in the response field of the Operation.
|
||||
class StartAssetImportResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The id of newly created asset. If this is empty when the operation is
|
||||
# complete it means the import failed. Please refer to the
|
||||
# asset_import_message field to understand what went wrong.
|
||||
# assetImportMessages field to understand what went wrong.
|
||||
# Corresponds to the JSON property `assetId`
|
||||
# @return [String]
|
||||
attr_accessor :asset_id
|
||||
|
|
Loading…
Reference in New Issue