Autogenerated update (2019-03-16)

Update:
- composer_v1
- ml_v1
- monitoring_v3
- servicecontrol_v1
- servicemanagement_v1
This commit is contained in:
Google APIs 2019-03-16 00:37:15 +00:00
parent 6c05a78d46
commit 2262b94ea4
16 changed files with 5361 additions and 77 deletions

View File

@ -82739,6 +82739,11 @@
"/ml:v1/GoogleCloudMlV1__AcceleratorConfig/type": type
"/ml:v1/GoogleCloudMlV1__AutoScaling": google_cloud_ml_v1__auto_scaling
"/ml:v1/GoogleCloudMlV1__AutoScaling/minNodes": min_nodes
"/ml:v1/GoogleCloudMlV1__BuiltInAlgorithmOutput": google_cloud_ml_v1__built_in_algorithm_output
"/ml:v1/GoogleCloudMlV1__BuiltInAlgorithmOutput/framework": framework
"/ml:v1/GoogleCloudMlV1__BuiltInAlgorithmOutput/modelPath": model_path
"/ml:v1/GoogleCloudMlV1__BuiltInAlgorithmOutput/pythonVersion": python_version
"/ml:v1/GoogleCloudMlV1__BuiltInAlgorithmOutput/runtimeVersion": runtime_version
"/ml:v1/GoogleCloudMlV1__CancelJobRequest": google_cloud_ml_v1__cancel_job_request
"/ml:v1/GoogleCloudMlV1__Capability": google_cloud_ml_v1__capability
"/ml:v1/GoogleCloudMlV1__Capability/availableAccelerators": available_accelerators
@ -82753,6 +82758,7 @@
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput": google_cloud_ml_v1__hyperparameter_output
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/allMetrics": all_metrics
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/allMetrics/all_metric": all_metric
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/builtInAlgorithmOutput": built_in_algorithm_output
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/finalMetric": final_metric
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/hyperparameters": hyperparameters
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/hyperparameters/hyperparameter": hyperparameter
@ -82883,8 +82889,10 @@
"/ml:v1/GoogleCloudMlV1__TrainingInput/workerCount": worker_count
"/ml:v1/GoogleCloudMlV1__TrainingInput/workerType": worker_type
"/ml:v1/GoogleCloudMlV1__TrainingOutput": google_cloud_ml_v1__training_output
"/ml:v1/GoogleCloudMlV1__TrainingOutput/builtInAlgorithmOutput": built_in_algorithm_output
"/ml:v1/GoogleCloudMlV1__TrainingOutput/completedTrialCount": completed_trial_count
"/ml:v1/GoogleCloudMlV1__TrainingOutput/consumedMLUnits": consumed_ml_units
"/ml:v1/GoogleCloudMlV1__TrainingOutput/isBuiltInAlgorithmJob": is_built_in_algorithm_job
"/ml:v1/GoogleCloudMlV1__TrainingOutput/isHyperparameterTuningJob": is_hyperparameter_tuning_job
"/ml:v1/GoogleCloudMlV1__TrainingOutput/trials": trials
"/ml:v1/GoogleCloudMlV1__TrainingOutput/trials/trial": trial
@ -92481,6 +92489,16 @@
"/servicemanagement:v1/servicemanagement.services.testIamPermissions/resource": resource
"/servicemanagement:v1/servicemanagement.services.undelete": undelete_service
"/servicemanagement:v1/servicemanagement.services.undelete/serviceName": service_name
"/servicenetworking:v1/AddSubnetworkRequest": add_subnetwork_request
"/servicenetworking:v1/AddSubnetworkRequest/consumer": consumer
"/servicenetworking:v1/AddSubnetworkRequest/consumerNetwork": consumer_network
"/servicenetworking:v1/AddSubnetworkRequest/description": description
"/servicenetworking:v1/AddSubnetworkRequest/ipPrefixLength": ip_prefix_length
"/servicenetworking:v1/AddSubnetworkRequest/region": region
"/servicenetworking:v1/AddSubnetworkRequest/requestedAddress": requested_address
"/servicenetworking:v1/AddSubnetworkRequest/subnetwork": subnetwork
"/servicenetworking:v1/AddSubnetworkRequest/subnetworkUsers": subnetwork_users
"/servicenetworking:v1/AddSubnetworkRequest/subnetworkUsers/subnetwork_user": subnetwork_user
"/servicenetworking:v1/AddSubnetworkResponse": add_subnetwork_response
"/servicenetworking:v1/AddSubnetworkResponse/ipCidrRange": ip_cidr_range
"/servicenetworking:v1/AddSubnetworkResponse/name": name
@ -92523,7 +92541,10 @@
"/servicenetworking:v1/BackendRule": backend_rule
"/servicenetworking:v1/BackendRule/address": address
"/servicenetworking:v1/BackendRule/deadline": deadline
"/servicenetworking:v1/BackendRule/jwtAudience": jwt_audience
"/servicenetworking:v1/BackendRule/minDeadline": min_deadline
"/servicenetworking:v1/BackendRule/operationDeadline": operation_deadline
"/servicenetworking:v1/BackendRule/pathTranslation": path_translation
"/servicenetworking:v1/BackendRule/selector": selector
"/servicenetworking:v1/Billing": billing
"/servicenetworking:v1/Billing/consumerDestinations": consumer_destinations
@ -92533,6 +92554,12 @@
"/servicenetworking:v1/BillingDestination/metrics/metric": metric
"/servicenetworking:v1/BillingDestination/monitoredResource": monitored_resource
"/servicenetworking:v1/CancelOperationRequest": cancel_operation_request
"/servicenetworking:v1/Connection": connection
"/servicenetworking:v1/Connection/network": network
"/servicenetworking:v1/Connection/peering": peering
"/servicenetworking:v1/Connection/reservedPeeringRanges": reserved_peering_ranges
"/servicenetworking:v1/Connection/reservedPeeringRanges/reserved_peering_range": reserved_peering_range
"/servicenetworking:v1/Connection/service": service
"/servicenetworking:v1/Context": context
"/servicenetworking:v1/Context/rules": rules
"/servicenetworking:v1/Context/rules/rule": rule
@ -92607,6 +92634,11 @@
"/servicenetworking:v1/Field/options/option": option
"/servicenetworking:v1/Field/packed": packed
"/servicenetworking:v1/Field/typeUrl": type_url
"/servicenetworking:v1/GoogleCloudServicenetworkingV1betaSubnetwork": google_cloud_servicenetworking_v1beta_subnetwork
"/servicenetworking:v1/GoogleCloudServicenetworkingV1betaSubnetwork/ipCidrRange": ip_cidr_range
"/servicenetworking:v1/GoogleCloudServicenetworkingV1betaSubnetwork/name": name
"/servicenetworking:v1/GoogleCloudServicenetworkingV1betaSubnetwork/network": network
"/servicenetworking:v1/GoogleCloudServicenetworkingV1betaSubnetwork/outsideAllocation": outside_allocation
"/servicenetworking:v1/Http": http
"/servicenetworking:v1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion
"/servicenetworking:v1/Http/rules": rules
@ -92627,6 +92659,9 @@
"/servicenetworking:v1/LabelDescriptor/description": description
"/servicenetworking:v1/LabelDescriptor/key": key
"/servicenetworking:v1/LabelDescriptor/valueType": value_type
"/servicenetworking:v1/ListConnectionsResponse": list_connections_response
"/servicenetworking:v1/ListConnectionsResponse/connections": connections
"/servicenetworking:v1/ListConnectionsResponse/connections/connection": connection
"/servicenetworking:v1/ListOperationsResponse": list_operations_response
"/servicenetworking:v1/ListOperationsResponse/nextPageToken": next_page_token
"/servicenetworking:v1/ListOperationsResponse/operations": operations
@ -92729,6 +92764,12 @@
"/servicenetworking:v1/QuotaLimit/unit": unit
"/servicenetworking:v1/QuotaLimit/values": values
"/servicenetworking:v1/QuotaLimit/values/value": value
"/servicenetworking:v1/Range": range
"/servicenetworking:v1/Range/ipCidrRange": ip_cidr_range
"/servicenetworking:v1/Range/network": network
"/servicenetworking:v1/SearchRangeRequest": search_range_request
"/servicenetworking:v1/SearchRangeRequest/ipPrefixLength": ip_prefix_length
"/servicenetworking:v1/SearchRangeRequest/network": network
"/servicenetworking:v1/Service": service
"/servicenetworking:v1/Service/apis": apis
"/servicenetworking:v1/Service/apis/api": api
@ -92781,6 +92822,8 @@
"/servicenetworking:v1/Subnetwork": subnetwork
"/servicenetworking:v1/Subnetwork/ipCidrRange": ip_cidr_range
"/servicenetworking:v1/Subnetwork/name": name
"/servicenetworking:v1/Subnetwork/network": network
"/servicenetworking:v1/Subnetwork/outsideAllocation": outside_allocation
"/servicenetworking:v1/SystemParameter": system_parameter
"/servicenetworking:v1/SystemParameter/httpHeader": http_header
"/servicenetworking:v1/SystemParameter/name": name
@ -92826,6 +92869,19 @@
"/servicenetworking:v1/servicenetworking.operations.list/name": name
"/servicenetworking:v1/servicenetworking.operations.list/pageSize": page_size
"/servicenetworking:v1/servicenetworking.operations.list/pageToken": page_token
"/servicenetworking:v1/servicenetworking.services.addSubnetwork": add_service_subnetwork
"/servicenetworking:v1/servicenetworking.services.addSubnetwork/parent": parent
"/servicenetworking:v1/servicenetworking.services.connections.create": create_service_connection
"/servicenetworking:v1/servicenetworking.services.connections.create/parent": parent
"/servicenetworking:v1/servicenetworking.services.connections.list": list_service_connections
"/servicenetworking:v1/servicenetworking.services.connections.list/network": network
"/servicenetworking:v1/servicenetworking.services.connections.list/parent": parent
"/servicenetworking:v1/servicenetworking.services.connections.patch": patch_service_connection
"/servicenetworking:v1/servicenetworking.services.connections.patch/force": force
"/servicenetworking:v1/servicenetworking.services.connections.patch/name": name
"/servicenetworking:v1/servicenetworking.services.connections.patch/updateMask": update_mask
"/servicenetworking:v1/servicenetworking.services.searchRange": search_service_range
"/servicenetworking:v1/servicenetworking.services.searchRange/parent": parent
"/servicenetworking:v1beta/AddSubnetworkRequest": add_subnetwork_request
"/servicenetworking:v1beta/AddSubnetworkRequest/consumer": consumer
"/servicenetworking:v1beta/AddSubnetworkRequest/consumerNetwork": consumer_network

View File

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

View File

@ -399,14 +399,14 @@ module Google
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
@ -639,14 +639,14 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing

View File

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

View File

@ -183,6 +183,44 @@ module Google
end
end
# Represents output related to a built-in algorithm Job.
class GoogleCloudMlV1BuiltInAlgorithmOutput
include Google::Apis::Core::Hashable
# Framework on which the built-in algorithm was trained on.
# Corresponds to the JSON property `framework`
# @return [String]
attr_accessor :framework
# Built-in algorithm's saved model path.
# Only set for non-hptuning succeeded jobs.
# Corresponds to the JSON property `modelPath`
# @return [String]
attr_accessor :model_path
# Python version on which the built-in algorithm was trained on.
# Corresponds to the JSON property `pythonVersion`
# @return [String]
attr_accessor :python_version
# CMLE runtime version on which the built-in algorithm was trained on.
# Corresponds to the JSON property `runtimeVersion`
# @return [String]
attr_accessor :runtime_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@framework = args[:framework] if args.key?(:framework)
@model_path = args[:model_path] if args.key?(:model_path)
@python_version = args[:python_version] if args.key?(:python_version)
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
end
end
# Request message for the CancelJob method.
class GoogleCloudMlV1CancelJobRequest
include Google::Apis::Core::Hashable
@ -284,6 +322,11 @@ module Google
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>]
attr_accessor :all_metrics
# Represents output related to a built-in algorithm Job.
# Corresponds to the JSON property `builtInAlgorithmOutput`
# @return [Google::Apis::MlV1::GoogleCloudMlV1BuiltInAlgorithmOutput]
attr_accessor :built_in_algorithm_output
# An observed value of a metric.
# Corresponds to the JSON property `finalMetric`
# @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric]
@ -312,6 +355,7 @@ module Google
# Update properties of this object
def update!(**args)
@all_metrics = args[:all_metrics] if args.key?(:all_metrics)
@built_in_algorithm_output = args[:built_in_algorithm_output] if args.key?(:built_in_algorithm_output)
@final_metric = args[:final_metric] if args.key?(:final_metric)
@hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
@is_trial_stopped_early = args[:is_trial_stopped_early] if args.key?(:is_trial_stopped_early)
@ -412,7 +456,7 @@ module Google
end
end
# Represents a training, prediction or explanation job.
# Represents a training or prediction job.
class GoogleCloudMlV1Job
include Google::Apis::Core::Hashable
@ -678,7 +722,7 @@ module Google
# information about all of the versions of a given model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
# versions/list).
# Next ID: 30
# Next ID: 29
# Corresponds to the JSON property `defaultVersion`
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
attr_accessor :default_version
@ -805,7 +849,7 @@ module Google
# information about all of the versions of a given model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
# versions/list).
# Next ID: 30
# Next ID: 29
# Corresponds to the JSON property `version`
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
attr_accessor :version
@ -959,8 +1003,7 @@ module Google
attr_accessor :data_format
# Required. The Google Cloud Storage location of the input data files.
# May contain wildcards. See <a href="https://cloud.google.com/storage/docs/
# gsutil/addlhelp/WildcardNames</a>
# May contain wildcards.
# Corresponds to the JSON property `inputPaths`
# @return [Array<String>]
attr_accessor :input_paths
@ -1404,6 +1447,11 @@ module Google
class GoogleCloudMlV1TrainingOutput
include Google::Apis::Core::Hashable
# Represents output related to a built-in algorithm Job.
# Corresponds to the JSON property `builtInAlgorithmOutput`
# @return [Google::Apis::MlV1::GoogleCloudMlV1BuiltInAlgorithmOutput]
attr_accessor :built_in_algorithm_output
# The number of hyperparameter tuning trials that completed successfully.
# Only set for hyperparameter tuning jobs.
# Corresponds to the JSON property `completedTrialCount`
@ -1415,6 +1463,12 @@ module Google
# @return [Float]
attr_accessor :consumed_ml_units
# Whether this job is a built-in Algorithm job.
# Corresponds to the JSON property `isBuiltInAlgorithmJob`
# @return [Boolean]
attr_accessor :is_built_in_algorithm_job
alias_method :is_built_in_algorithm_job?, :is_built_in_algorithm_job
# Whether this job is a hyperparameter tuning job.
# Corresponds to the JSON property `isHyperparameterTuningJob`
# @return [Boolean]
@ -1433,8 +1487,10 @@ module Google
# Update properties of this object
def update!(**args)
@built_in_algorithm_output = args[:built_in_algorithm_output] if args.key?(:built_in_algorithm_output)
@completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
@consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
@is_built_in_algorithm_job = args[:is_built_in_algorithm_job] if args.key?(:is_built_in_algorithm_job)
@is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
@trials = args[:trials] if args.key?(:trials)
end
@ -1446,7 +1502,7 @@ module Google
# information about all of the versions of a given model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
# versions/list).
# Next ID: 30
# Next ID: 29
class GoogleCloudMlV1Version
include Google::Apis::Core::Hashable

View File

@ -46,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1BuiltInAlgorithmOutput
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1CancelJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -294,6 +300,16 @@ module Google
end
end
class GoogleCloudMlV1BuiltInAlgorithmOutput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :framework, as: 'framework'
property :model_path, as: 'modelPath'
property :python_version, as: 'pythonVersion'
property :runtime_version, as: 'runtimeVersion'
end
end
class GoogleCloudMlV1CancelJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -330,6 +346,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :all_metrics, as: 'allMetrics', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::Representation
property :built_in_algorithm_output, as: 'builtInAlgorithmOutput', class: Google::Apis::MlV1::GoogleCloudMlV1BuiltInAlgorithmOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1BuiltInAlgorithmOutput::Representation
property :final_metric, as: 'finalMetric', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::Representation
hash :hyperparameters, as: 'hyperparameters'
@ -552,8 +570,11 @@ module Google
class GoogleCloudMlV1TrainingOutput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :built_in_algorithm_output, as: 'builtInAlgorithmOutput', class: Google::Apis::MlV1::GoogleCloudMlV1BuiltInAlgorithmOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1BuiltInAlgorithmOutput::Representation
property :completed_trial_count, :numeric_string => true, as: 'completedTrialCount'
property :consumed_ml_units, as: 'consumedMLUnits'
property :is_built_in_algorithm_job, as: 'isBuiltInAlgorithmJob'
property :is_hyperparameter_tuning_job, as: 'isHyperparameterTuningJob'
collection :trials, as: 'trials', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput::Representation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20190304'
REVISION = '20190312'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -838,11 +838,11 @@ module Google
class Exemplar
include Google::Apis::Core::Hashable
# Contextual information about the example value. Examples are:Trace ID: type.
# googleapis.com/google.devtools.cloudtrace.v1.TraceLiteral string: type.
# googleapis.com/google.protobuf.StringValueLabels dropped during aggregation:
# type.googleapis.com/google.monitoring.v3.DroppedLabelsThere may be only a
# single attachment of any given message type in a single exemplar, and this is
# Contextual information about the example value. Examples are:Trace: type.
# googleapis.com/google.monitoring.v3.SpanContextLiteral string: type.googleapis.
# com/google.protobuf.StringValueLabels dropped during aggregation: type.
# googleapis.com/google.monitoring.v3.DroppedLabelsThere may be only a single
# attachment of any given message type in a single exemplar, and this is
# enforced by the system.
# Corresponds to the JSON property `attachments`
# @return [Array<Hash<String,Object>>]

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-control/
module ServicecontrolV1
VERSION = 'V1'
REVISION = '20190217'
REVISION = '20190309'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -222,14 +222,14 @@ module Google
# @return [String]
attr_accessor :service_name
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
@ -484,14 +484,14 @@ module Google
# @return [String]
attr_accessor :detail
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
@ -1711,14 +1711,14 @@ module Google
# @return [String]
attr_accessor :operation_id
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
@ -2201,14 +2201,14 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/
module ServicemanagementV1
VERSION = 'V1'
REVISION = '20190227'
REVISION = '20190308'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -240,8 +240,8 @@ module Google
end
# Configuration for an anthentication provider, including support for
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
# token-32).
# [JSON Web Token
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
class AuthProvider
include Google::Apis::Core::Hashable
@ -285,15 +285,16 @@ module Google
attr_accessor :issuer
# URL of the provider's public key set to validate signature of the JWT. See
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
# [OpenID
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
# ProviderMetadata).
# Optional if the key set document:
# - can be retrieved from
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
# html
# of the issuer.
# - can be inferred from the email domain of the issuer (e.g. a Google service
# account).
# [OpenID
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of
# the issuer.
# - can be inferred from the email domain of the issuer (e.g. a Google
# service account).
# Example: https://www.googleapis.com/oauth2/v1/certs
# Corresponds to the JSON property `jwksUri`
# @return [String]
@ -314,8 +315,8 @@ module Google
end
# User-defined authentication requirements, including support for
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
# token-32).
# [JSON Web Token
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
class AuthRequirement
include Google::Apis::Core::Hashable
@ -721,8 +722,8 @@ module Google
# used for the index (usually selector, name, or id). For maps, the term
# 'key' is used. If the field has no unique identifier, the numeric index
# is used.
# Examples:
# - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction
# ## Examples:
# visibility.rules[selector=="google.LibraryService.CreateBook"].restriction
# - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
# - logging.producer_destinations[0]
# Corresponds to the JSON property `element`
@ -1218,8 +1219,8 @@ module Google
class DocumentationRule
include Google::Apis::Core::Hashable
# Deprecation description of the selected element(s). It can be provided if an
# element is marked as `deprecated`.
# Deprecation description of the selected element(s). It can be provided if
# an element is marked as `deprecated`.
# Corresponds to the JSON property `deprecationDescription`
# @return [String]
attr_accessor :deprecation_description
@ -1323,10 +1324,10 @@ module Google
attr_accessor :name
# The specification of an Internet routable address of API frontend that will
# handle requests to this [API Endpoint](https://cloud.google.com/apis/design/
# glossary).
# It should be either a valid IPv4 address or a fully-qualified domain name.
# For example, "8.8.8.8" or "myservice.appspot.com".
# handle requests to this [API
# Endpoint](https://cloud.google.com/apis/design/glossary). It should be
# either a valid IPv4 address or a fully-qualified domain name. For example,
# "8.8.8.8" or "myservice.appspot.com".
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
@ -2843,14 +2844,14 @@ module Google
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
@ -3002,9 +3003,8 @@ module Google
class Page
include Google::Apis::Core::Hashable
# The Markdown content of the page. You can use <code>&#40;== include `path` ==&#
# 41;</code>
# to include content from a Markdown file.
# The Markdown content of the page. You can use <code>&#40;== include `path`
# ==&#41;</code> to include content from a Markdown file.
# Corresponds to the JSON property `content`
# @return [String]
attr_accessor :content
@ -3878,14 +3878,14 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing

View File

@ -0,0 +1,38 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/servicenetworking_v1/service.rb'
require 'google/apis/servicenetworking_v1/classes.rb'
require 'google/apis/servicenetworking_v1/representations.rb'
module Google
module Apis
# Service Networking API
#
# Provides automatic management of network configurations necessary for certain
# services.
#
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1
VERSION = 'V1'
REVISION = '20190313'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Manage your Google API service configuration
AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,440 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ServicenetworkingV1
# Service Networking API
#
# Provides automatic management of network configurations necessary for certain
# services.
#
# @example
# require 'google/apis/servicenetworking_v1'
#
# Servicenetworking = Google::Apis::ServicenetworkingV1 # Alias the module
# service = Servicenetworking::ServiceNetworkingService.new
#
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
class ServiceNetworkingService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://servicenetworking.googleapis.com/', '')
@batch_path = 'batch'
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
# @param [Google::Apis::ServicenetworkingV1::CancelOperationRequest] cancel_operation_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::ServicenetworkingV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::Empty]
#
# @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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.request_representation = Google::Apis::ServicenetworkingV1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::ServicenetworkingV1::Empty::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Empty
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
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# @param [String] name
# The name of the operation resource to be deleted.
# @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::ServicenetworkingV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::Empty]
#
# @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 delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::ServicenetworkingV1::Empty::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @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::ServicenetworkingV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ServicenetworkingV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::ServicenetworkingV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# For service producers, provisions a new subnet in a
# peered service's shared VPC network in the requested region and with the
# requested size that's expressed as a CIDR range (number of leading bits of
# ipV4 network mask). The method checks against the assigned allocated ranges
# to find a non-conflicting IP address range. The method will reuse a subnet
# if subsequent calls contain the same subnet name, region, and prefix
# length. This method will make producer's tenant project to be a shared VPC
# service project as needed. The response from the `get` operation will be of
# type `Subnetwork` if the operation successfully completes.
# @param [String] parent
# Required. A tenant project in the service producer organization, in the
# following format: services/`service`/`collection-id`/`resource-id`.
# `collection-id` is the cloud resource collection type that represents the
# tenant project. Only `projects` are supported.
# `resource-id` is the tenant project numeric id, such as
# `123456`. `service` the name of the peering service, such as
# `service-peering.example.com`. This service must already be
# enabled in the service consumer's project.
# @param [Google::Apis::ServicenetworkingV1::AddSubnetworkRequest] add_subnetwork_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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def add_service_subnetwork(parent, add_subnetwork_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:addSubnetwork', options)
command.request_representation = Google::Apis::ServicenetworkingV1::AddSubnetworkRequest::Representation
command.request_object = add_subnetwork_request_object
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Service producers can use this method to find a currently unused range
# within consumer allocated ranges. This returned range is not reserved,
# and not guaranteed to remain unused.
# It will validate previously provided allocated ranges, find
# non-conflicting sub-range of requested size (expressed in
# number of leading bits of ipv4 network mask, as in CIDR range
# notation).
# Operation<response: Range>
# @param [String] parent
# Required. This is in a form services/`service`.
# `service` the name of the private access management service, for example
# 'service-peering.example.com'.
# @param [Google::Apis::ServicenetworkingV1::SearchRangeRequest] search_range_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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def search_service_range(parent, search_range_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:searchRange', options)
command.request_representation = Google::Apis::ServicenetworkingV1::SearchRangeRequest::Representation
command.request_object = search_range_request_object
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a private connection that establishes a VPC Network Peering
# connection to a VPC network in the service producer's organization.
# The administrator of the service consumer's VPC network invokes this
# method. The administrator must assign one or more allocated IP ranges for
# provisioning subnetworks in the service producer's VPC network. This
# connection is used for all supported services in the service producer's
# organization, so it only needs to be invoked once. The response from the
# `get` operation will be of type `Connection` if the operation successfully
# completes.
# @param [String] parent
# The service that is managing peering connectivity for a service producer's
# organization. For Google services that support this functionality, this
# value is `services/servicenetworking.googleapis.com`.
# @param [Google::Apis::ServicenetworkingV1::Connection] connection_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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_service_connection(parent, connection_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/connections', options)
command.request_representation = Google::Apis::ServicenetworkingV1::Connection::Representation
command.request_object = connection_object
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List the private connections that are configured in a service consumer's
# VPC network.
# @param [String] parent
# The service that is managing peering connectivity for a service producer's
# organization. For Google services that support this functionality, this
# value is `services/servicenetworking.googleapis.com`.
# If you specify `services/-` as the parameter value, all configured peering
# services are listed.
# @param [String] network
# The name of service consumer's VPC network that's connected with service
# producer network through a private connection. The network name must be in
# the following format:
# `projects/`project`/global/networks/`network``. `project` is a
# project number, such as in `12345` that includes the VPC service
# consumer's VPC network. `network` is the name of the service consumer's VPC
# network.
# @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::ServicenetworkingV1::ListConnectionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::ListConnectionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_service_connections(parent, network: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/connections', options)
command.response_representation = Google::Apis::ServicenetworkingV1::ListConnectionsResponse::Representation
command.response_class = Google::Apis::ServicenetworkingV1::ListConnectionsResponse
command.params['parent'] = parent unless parent.nil?
command.query['network'] = network unless network.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the allocated ranges that are assigned to a connection.
# The response from the `get` operation will be of type `Connection` if the
# operation successfully completes.
# @param [String] name
# The private service connection that connects to a service producer
# organization. The name includes both the private service name and the VPC
# network peering name in the format of
# `services/`peering_service_name`/connections/`vpc_peering_name``. For
# Google services that support this functionality, this is
# `services/servicenetworking.googleapis.com/connections/servicenetworking-
# googleapis-com`.
# @param [Google::Apis::ServicenetworkingV1::Connection] connection_object
# @param [Boolean] force
# If a previously defined allocated range is removed, force flag must be
# set to true.
# @param [String] update_mask
# The update mask. If this is omitted, it defaults to "*". You can only
# update the listed peering ranges.
# @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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_service_connection(name, connection_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::ServicenetworkingV1::Connection::Representation
command.request_object = connection_object
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
command.params['name'] = name unless name.nil?
command.query['force'] = force unless force.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end