google-api-client 0.37.2 → 0.37.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +74 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +11 -1
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +1 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +6 -5
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +2 -1
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +7 -71
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +0 -31
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +111 -9
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +56 -0
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +151 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +2 -2
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +11 -0
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +4 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +23 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -5
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +2 -2
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +30 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2.rb +4 -4
- data/generated/google/apis/cloudtrace_v2/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2beta1.rb +4 -4
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +3 -3
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +2 -2
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +224 -66
- data/generated/google/apis/container_v1/representations.rb +70 -0
- data/generated/google/apis/container_v1/service.rb +116 -116
- data/generated/google/apis/container_v1beta1/classes.rb +18 -4
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +18 -2
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +51 -0
- data/generated/google/apis/content_v2_1/representations.rb +15 -0
- data/generated/google/apis/content_v2_1/service.rb +73 -1
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +27 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +15 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +43 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +15 -0
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +11 -3
- data/generated/google/apis/dialogflow_v2/service.rb +555 -16
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +11 -3
- data/generated/google/apis/dialogflow_v2beta1/service.rb +26 -42
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +417 -2
- data/generated/google/apis/dlp_v2/representations.rb +175 -0
- data/generated/google/apis/dlp_v2/service.rb +116 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +1 -145
- data/generated/google/apis/file_v1/representations.rb +0 -34
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +1 -145
- data/generated/google/apis/file_v1beta1/representations.rb +0 -34
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/service.rb +3 -3
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -0
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/logging_v2.rb +6 -7
- data/generated/google/apis/logging_v2/service.rb +5 -6
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +966 -21
- data/generated/google/apis/ml_v1/representations.rb +477 -0
- data/generated/google/apis/ml_v1/service.rb +491 -0
- data/generated/google/apis/{toolresults_v1.rb → networkmanagement_v1beta1.rb} +13 -9
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1856 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
- data/generated/google/apis/networkmanagement_v1beta1/service.rb +664 -0
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +214 -0
- data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
- data/generated/google/apis/recommender_v1beta1/service.rb +123 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +84 -0
- data/generated/google/apis/run_v1/representations.rb +44 -0
- data/generated/google/apis/run_v1/service.rb +138 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +154 -6
- data/generated/google/apis/securitycenter_v1/representations.rb +61 -0
- data/generated/google/apis/securitycenter_v1/service.rb +194 -6
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +171 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +171 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +183 -6
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -6
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -7
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +58 -1
- data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +8 -7
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +280 -7
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +117 -0
- data/generated/google/apis/serviceusage_v1beta1/service.rb +515 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +7 -1
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +6 -3
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +13 -13
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -7
- data/generated/google/apis/toolresults_v1/classes.rb +0 -696
- data/generated/google/apis/toolresults_v1/representations.rb +0 -438
- data/generated/google/apis/toolresults_v1/service.rb +0 -59
|
@@ -0,0 +1,664 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module NetworkmanagementV1beta1
|
|
23
|
+
# Network Management API
|
|
24
|
+
#
|
|
25
|
+
# The Network Management API provides a collection of network performance
|
|
26
|
+
# monitoring and diagnostic capabilities.
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
# require 'google/apis/networkmanagement_v1beta1'
|
|
30
|
+
#
|
|
31
|
+
# Networkmanagement = Google::Apis::NetworkmanagementV1beta1 # Alias the module
|
|
32
|
+
# service = Networkmanagement::NetworkManagementService.new
|
|
33
|
+
#
|
|
34
|
+
# @see https://cloud.google.com/
|
|
35
|
+
class NetworkManagementService < Google::Apis::Core::BaseService
|
|
36
|
+
# @return [String]
|
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
39
|
+
attr_accessor :key
|
|
40
|
+
|
|
41
|
+
# @return [String]
|
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
44
|
+
attr_accessor :quota_user
|
|
45
|
+
|
|
46
|
+
def initialize
|
|
47
|
+
super('https://networkmanagement.googleapis.com/', '')
|
|
48
|
+
@batch_path = 'batch'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Gets information about a location.
|
|
52
|
+
# @param [String] name
|
|
53
|
+
# Resource name for the location.
|
|
54
|
+
# @param [String] fields
|
|
55
|
+
# Selector specifying which fields to include in a partial response.
|
|
56
|
+
# @param [String] quota_user
|
|
57
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
58
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
59
|
+
# @param [Google::Apis::RequestOptions] options
|
|
60
|
+
# Request-specific options
|
|
61
|
+
#
|
|
62
|
+
# @yield [result, err] Result & error if block supplied
|
|
63
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Location] parsed result object
|
|
64
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
65
|
+
#
|
|
66
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Location]
|
|
67
|
+
#
|
|
68
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
69
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
70
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
71
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
72
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
73
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Location::Representation
|
|
74
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Location
|
|
75
|
+
command.params['name'] = name unless name.nil?
|
|
76
|
+
command.query['fields'] = fields unless fields.nil?
|
|
77
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
78
|
+
execute_or_queue_command(command, &block)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Lists information about the supported locations for this service.
|
|
82
|
+
# @param [String] name
|
|
83
|
+
# The resource that owns the locations collection, if applicable.
|
|
84
|
+
# @param [String] filter
|
|
85
|
+
# The standard list filter.
|
|
86
|
+
# @param [Fixnum] page_size
|
|
87
|
+
# The standard list page size.
|
|
88
|
+
# @param [String] page_token
|
|
89
|
+
# The standard list page token.
|
|
90
|
+
# @param [String] fields
|
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
|
92
|
+
# @param [String] quota_user
|
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
|
96
|
+
# Request-specific options
|
|
97
|
+
#
|
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
|
99
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::ListLocationsResponse] parsed result object
|
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
101
|
+
#
|
|
102
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::ListLocationsResponse]
|
|
103
|
+
#
|
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
107
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
108
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
|
|
109
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::ListLocationsResponse::Representation
|
|
110
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::ListLocationsResponse
|
|
111
|
+
command.params['name'] = name unless name.nil?
|
|
112
|
+
command.query['filter'] = filter unless filter.nil?
|
|
113
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
114
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
117
|
+
execute_or_queue_command(command, &block)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Creates a new Connectivity Test.
|
|
121
|
+
# After you create a test, the reachability analysis is performed as part
|
|
122
|
+
# of the long running operation, which completes when the analysis completes.
|
|
123
|
+
# If the endpoint specifications in `ConnectivityTest` are invalid
|
|
124
|
+
# (for example, containing non-existent resources in the network, or you
|
|
125
|
+
# don't have read permissions to the network configurations of listed
|
|
126
|
+
# projects), then the reachability result returns a value of `UNKNOWN`.
|
|
127
|
+
# If the endpoint specifications in `ConnectivityTest` are
|
|
128
|
+
# incomplete, the reachability result returns a value of
|
|
129
|
+
# <code>AMBIGUOUS</code>. For more information,
|
|
130
|
+
# see the Connectivity Test documentation.
|
|
131
|
+
# @param [String] parent
|
|
132
|
+
# Required. The parent resource of the Connectivity Test to create:
|
|
133
|
+
# `projects/`project_id`/locations/global`
|
|
134
|
+
# @param [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest] connectivity_test_object
|
|
135
|
+
# @param [String] test_id
|
|
136
|
+
# Required. The logical name of the Connectivity Test in your project
|
|
137
|
+
# with the following restrictions:
|
|
138
|
+
# * Must contain only lowercase letters, numbers, and hyphens.
|
|
139
|
+
# * Must start with a letter.
|
|
140
|
+
# * Must be between 1-40 characters.
|
|
141
|
+
# * Must end with a number or a letter.
|
|
142
|
+
# * Must be unique within the customer project
|
|
143
|
+
# @param [String] fields
|
|
144
|
+
# Selector specifying which fields to include in a partial response.
|
|
145
|
+
# @param [String] quota_user
|
|
146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
148
|
+
# @param [Google::Apis::RequestOptions] options
|
|
149
|
+
# Request-specific options
|
|
150
|
+
#
|
|
151
|
+
# @yield [result, err] Result & error if block supplied
|
|
152
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Operation] parsed result object
|
|
153
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
154
|
+
#
|
|
155
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
|
|
156
|
+
#
|
|
157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
160
|
+
def create_project_location_global_connectivity_test(parent, connectivity_test_object = nil, test_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
161
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/connectivityTests', options)
|
|
162
|
+
command.request_representation = Google::Apis::NetworkmanagementV1beta1::ConnectivityTest::Representation
|
|
163
|
+
command.request_object = connectivity_test_object
|
|
164
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
|
|
165
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
|
|
166
|
+
command.params['parent'] = parent unless parent.nil?
|
|
167
|
+
command.query['testId'] = test_id unless test_id.nil?
|
|
168
|
+
command.query['fields'] = fields unless fields.nil?
|
|
169
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
170
|
+
execute_or_queue_command(command, &block)
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Deletes a specific `ConnectivityTest`.
|
|
174
|
+
# @param [String] name
|
|
175
|
+
# Required. Connectivity Test resource name using the form:
|
|
176
|
+
# `projects/`project_id`/connectivityTests/`test_id``
|
|
177
|
+
# @param [String] fields
|
|
178
|
+
# Selector specifying which fields to include in a partial response.
|
|
179
|
+
# @param [String] quota_user
|
|
180
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
181
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
182
|
+
# @param [Google::Apis::RequestOptions] options
|
|
183
|
+
# Request-specific options
|
|
184
|
+
#
|
|
185
|
+
# @yield [result, err] Result & error if block supplied
|
|
186
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Operation] parsed result object
|
|
187
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
188
|
+
#
|
|
189
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
|
|
190
|
+
#
|
|
191
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
192
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
193
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
194
|
+
def delete_project_location_global_connectivity_test(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
195
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
|
196
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
|
|
197
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
|
|
198
|
+
command.params['name'] = name unless name.nil?
|
|
199
|
+
command.query['fields'] = fields unless fields.nil?
|
|
200
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
201
|
+
execute_or_queue_command(command, &block)
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Gets the details of a specific Connectivity Test.
|
|
205
|
+
# @param [String] name
|
|
206
|
+
# Required. `ConnectivityTest` resource name using the form:
|
|
207
|
+
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
|
|
208
|
+
# @param [String] fields
|
|
209
|
+
# Selector specifying which fields to include in a partial response.
|
|
210
|
+
# @param [String] quota_user
|
|
211
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
212
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
213
|
+
# @param [Google::Apis::RequestOptions] options
|
|
214
|
+
# Request-specific options
|
|
215
|
+
#
|
|
216
|
+
# @yield [result, err] Result & error if block supplied
|
|
217
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest] parsed result object
|
|
218
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
219
|
+
#
|
|
220
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest]
|
|
221
|
+
#
|
|
222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
225
|
+
def get_project_location_global_connectivity_test(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
226
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
227
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::ConnectivityTest::Representation
|
|
228
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::ConnectivityTest
|
|
229
|
+
command.params['name'] = name unless name.nil?
|
|
230
|
+
command.query['fields'] = fields unless fields.nil?
|
|
231
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
232
|
+
execute_or_queue_command(command, &block)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Gets the access control policy for a resource.
|
|
236
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
237
|
+
# set.
|
|
238
|
+
# @param [String] resource
|
|
239
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
240
|
+
# See the operation documentation for the appropriate value for this field.
|
|
241
|
+
# @param [Fixnum] options_requested_policy_version
|
|
242
|
+
# Optional. The policy format version to be returned.
|
|
243
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
|
244
|
+
# rejected.
|
|
245
|
+
# Requests for policies with any conditional bindings must specify version 3.
|
|
246
|
+
# Policies without any conditional bindings may specify any valid value or
|
|
247
|
+
# leave the field unset.
|
|
248
|
+
# @param [String] fields
|
|
249
|
+
# Selector specifying which fields to include in a partial response.
|
|
250
|
+
# @param [String] quota_user
|
|
251
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
252
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
253
|
+
# @param [Google::Apis::RequestOptions] options
|
|
254
|
+
# Request-specific options
|
|
255
|
+
#
|
|
256
|
+
# @yield [result, err] Result & error if block supplied
|
|
257
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Policy] parsed result object
|
|
258
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
259
|
+
#
|
|
260
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Policy]
|
|
261
|
+
#
|
|
262
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
263
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
264
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
265
|
+
def get_project_location_global_connectivity_test_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
266
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
|
267
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Policy::Representation
|
|
268
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Policy
|
|
269
|
+
command.params['resource'] = resource unless resource.nil?
|
|
270
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
271
|
+
command.query['fields'] = fields unless fields.nil?
|
|
272
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
273
|
+
execute_or_queue_command(command, &block)
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# Lists all Connectivity Tests owned by a project.
|
|
277
|
+
# @param [String] parent
|
|
278
|
+
# Required. The parent resource of the Connectivity Tests:
|
|
279
|
+
# `projects/`project_id`/locations/global`
|
|
280
|
+
# @param [String] filter
|
|
281
|
+
# Lists the `ConnectivityTests` that match the filter expression. A filter
|
|
282
|
+
# expression filters the resources listed in the response. The expression
|
|
283
|
+
# must be of the form `<field> <operator> <value>` where operators: `<`, `>`,
|
|
284
|
+
# `<=`,
|
|
285
|
+
# `>=`,
|
|
286
|
+
# `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is
|
|
287
|
+
# roughly synonymous with equality). <field> can refer to a proto or JSON
|
|
288
|
+
# field, or a synthetic field. Field names can be camelCase or snake_case.
|
|
289
|
+
# Examples:
|
|
290
|
+
# - Filter by name:
|
|
291
|
+
# name = "projects/proj-1/connectivityTests/test-1
|
|
292
|
+
# - Filter by labels:
|
|
293
|
+
# - Resources that have a key called `foo`
|
|
294
|
+
# labels.foo:*
|
|
295
|
+
# - Resources that have a key called `foo` whose value is `bar`
|
|
296
|
+
# labels.foo = bar
|
|
297
|
+
# @param [String] order_by
|
|
298
|
+
# Field to use to sort the list.
|
|
299
|
+
# @param [Fixnum] page_size
|
|
300
|
+
# Number of `ConnectivityTests` to return.
|
|
301
|
+
# @param [String] page_token
|
|
302
|
+
# Page token from an earlier query, as returned in `next_page_token`.
|
|
303
|
+
# @param [String] fields
|
|
304
|
+
# Selector specifying which fields to include in a partial response.
|
|
305
|
+
# @param [String] quota_user
|
|
306
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
307
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
308
|
+
# @param [Google::Apis::RequestOptions] options
|
|
309
|
+
# Request-specific options
|
|
310
|
+
#
|
|
311
|
+
# @yield [result, err] Result & error if block supplied
|
|
312
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::ListConnectivityTestsResponse] parsed result object
|
|
313
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
314
|
+
#
|
|
315
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::ListConnectivityTestsResponse]
|
|
316
|
+
#
|
|
317
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
318
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
319
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
320
|
+
def list_project_location_global_connectivity_tests(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
321
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/connectivityTests', options)
|
|
322
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::ListConnectivityTestsResponse::Representation
|
|
323
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::ListConnectivityTestsResponse
|
|
324
|
+
command.params['parent'] = parent unless parent.nil?
|
|
325
|
+
command.query['filter'] = filter unless filter.nil?
|
|
326
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
327
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
328
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
329
|
+
command.query['fields'] = fields unless fields.nil?
|
|
330
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
331
|
+
execute_or_queue_command(command, &block)
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Updates the configuration of an existing `ConnectivityTest`.
|
|
335
|
+
# After you update a test, the reachability analysis is performed as part
|
|
336
|
+
# of the long running operation, which completes when the analysis completes.
|
|
337
|
+
# The Reachability state in the test resource is updated with the new result.
|
|
338
|
+
# If the endpoint specifications in `ConnectivityTest` are invalid
|
|
339
|
+
# (for example, they contain non-existent resources in the network, or the
|
|
340
|
+
# user does not have read permissions to the network configurations of
|
|
341
|
+
# listed projects), then the reachability result returns a value of
|
|
342
|
+
# <code>UNKNOWN</code>.
|
|
343
|
+
# If the endpoint specifications in `ConnectivityTest` are incomplete, the
|
|
344
|
+
# reachability result returns a value of `AMBIGUOUS`. See the documentation
|
|
345
|
+
# in `ConnectivityTest` for for more details.
|
|
346
|
+
# @param [String] name
|
|
347
|
+
# Required. Unique name of the resource using the form:
|
|
348
|
+
# `projects/`project_id`/tests/`test_id``
|
|
349
|
+
# @param [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest] connectivity_test_object
|
|
350
|
+
# @param [String] update_mask
|
|
351
|
+
# Required. Mask of fields to update. At least one path must be supplied in
|
|
352
|
+
# this field.
|
|
353
|
+
# @param [String] fields
|
|
354
|
+
# Selector specifying which fields to include in a partial response.
|
|
355
|
+
# @param [String] quota_user
|
|
356
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
357
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
358
|
+
# @param [Google::Apis::RequestOptions] options
|
|
359
|
+
# Request-specific options
|
|
360
|
+
#
|
|
361
|
+
# @yield [result, err] Result & error if block supplied
|
|
362
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Operation] parsed result object
|
|
363
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
364
|
+
#
|
|
365
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
|
|
366
|
+
#
|
|
367
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
368
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
369
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
370
|
+
def patch_project_location_global_connectivity_test(name, connectivity_test_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
371
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
|
372
|
+
command.request_representation = Google::Apis::NetworkmanagementV1beta1::ConnectivityTest::Representation
|
|
373
|
+
command.request_object = connectivity_test_object
|
|
374
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
|
|
375
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
|
|
376
|
+
command.params['name'] = name unless name.nil?
|
|
377
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
378
|
+
command.query['fields'] = fields unless fields.nil?
|
|
379
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
380
|
+
execute_or_queue_command(command, &block)
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Rerun an existing `ConnectivityTest`.
|
|
384
|
+
# After the user triggers the rerun, the reachability analysis is performed
|
|
385
|
+
# as part of the long running operation, which completes when the analysis
|
|
386
|
+
# completes.
|
|
387
|
+
# Even though the test configuration remains the same, the reachability
|
|
388
|
+
# result may change due to underlying network configuration changes.
|
|
389
|
+
# If the endpoint specifications in `ConnectivityTest` become invalid (for
|
|
390
|
+
# example, specified resources are deleted in the network, or you lost
|
|
391
|
+
# read permissions to the network configurations of listed projects), then
|
|
392
|
+
# the reachability result returns a value of `UNKNOWN`.
|
|
393
|
+
# @param [String] name
|
|
394
|
+
# Required. Connectivity Test resource name using the form:
|
|
395
|
+
# `projects/`project_id`/connectivityTests/`test_id``
|
|
396
|
+
# @param [Google::Apis::NetworkmanagementV1beta1::RerunConnectivityTestRequest] rerun_connectivity_test_request_object
|
|
397
|
+
# @param [String] fields
|
|
398
|
+
# Selector specifying which fields to include in a partial response.
|
|
399
|
+
# @param [String] quota_user
|
|
400
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
401
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
402
|
+
# @param [Google::Apis::RequestOptions] options
|
|
403
|
+
# Request-specific options
|
|
404
|
+
#
|
|
405
|
+
# @yield [result, err] Result & error if block supplied
|
|
406
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Operation] parsed result object
|
|
407
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
408
|
+
#
|
|
409
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
|
|
410
|
+
#
|
|
411
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
412
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
413
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
414
|
+
def rerun_connectivity_test(name, rerun_connectivity_test_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
415
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:rerun', options)
|
|
416
|
+
command.request_representation = Google::Apis::NetworkmanagementV1beta1::RerunConnectivityTestRequest::Representation
|
|
417
|
+
command.request_object = rerun_connectivity_test_request_object
|
|
418
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
|
|
419
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
|
|
420
|
+
command.params['name'] = name unless name.nil?
|
|
421
|
+
command.query['fields'] = fields unless fields.nil?
|
|
422
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
423
|
+
execute_or_queue_command(command, &block)
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
427
|
+
# existing policy.
|
|
428
|
+
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
|
429
|
+
# @param [String] resource
|
|
430
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
431
|
+
# See the operation documentation for the appropriate value for this field.
|
|
432
|
+
# @param [Google::Apis::NetworkmanagementV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
433
|
+
# @param [String] fields
|
|
434
|
+
# Selector specifying which fields to include in a partial response.
|
|
435
|
+
# @param [String] quota_user
|
|
436
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
437
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
438
|
+
# @param [Google::Apis::RequestOptions] options
|
|
439
|
+
# Request-specific options
|
|
440
|
+
#
|
|
441
|
+
# @yield [result, err] Result & error if block supplied
|
|
442
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Policy] parsed result object
|
|
443
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
444
|
+
#
|
|
445
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Policy]
|
|
446
|
+
#
|
|
447
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
448
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
449
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
450
|
+
def set_connectivity_test_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
451
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
|
452
|
+
command.request_representation = Google::Apis::NetworkmanagementV1beta1::SetIamPolicyRequest::Representation
|
|
453
|
+
command.request_object = set_iam_policy_request_object
|
|
454
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Policy::Representation
|
|
455
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Policy
|
|
456
|
+
command.params['resource'] = resource unless resource.nil?
|
|
457
|
+
command.query['fields'] = fields unless fields.nil?
|
|
458
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
459
|
+
execute_or_queue_command(command, &block)
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# Returns permissions that a caller has on the specified resource.
|
|
463
|
+
# If the resource does not exist, this will return an empty set of
|
|
464
|
+
# permissions, not a NOT_FOUND error.
|
|
465
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
466
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
467
|
+
# may "fail open" without warning.
|
|
468
|
+
# @param [String] resource
|
|
469
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
470
|
+
# See the operation documentation for the appropriate value for this field.
|
|
471
|
+
# @param [Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
472
|
+
# @param [String] fields
|
|
473
|
+
# Selector specifying which fields to include in a partial response.
|
|
474
|
+
# @param [String] quota_user
|
|
475
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
476
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
477
|
+
# @param [Google::Apis::RequestOptions] options
|
|
478
|
+
# Request-specific options
|
|
479
|
+
#
|
|
480
|
+
# @yield [result, err] Result & error if block supplied
|
|
481
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsResponse] parsed result object
|
|
482
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
483
|
+
#
|
|
484
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsResponse]
|
|
485
|
+
#
|
|
486
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
487
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
488
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
489
|
+
def test_connectivity_test_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
490
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
|
491
|
+
command.request_representation = Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsRequest::Representation
|
|
492
|
+
command.request_object = test_iam_permissions_request_object
|
|
493
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsResponse::Representation
|
|
494
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsResponse
|
|
495
|
+
command.params['resource'] = resource unless resource.nil?
|
|
496
|
+
command.query['fields'] = fields unless fields.nil?
|
|
497
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
498
|
+
execute_or_queue_command(command, &block)
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
|
502
|
+
# makes a best effort to cancel the operation, but success is not
|
|
503
|
+
# guaranteed. If the server doesn't support this method, it returns
|
|
504
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
505
|
+
# Operations.GetOperation or
|
|
506
|
+
# other methods to check whether the cancellation succeeded or whether the
|
|
507
|
+
# operation completed despite cancellation. On successful cancellation,
|
|
508
|
+
# the operation is not deleted; instead, it becomes an operation with
|
|
509
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
|
510
|
+
# corresponding to `Code.CANCELLED`.
|
|
511
|
+
# @param [String] name
|
|
512
|
+
# The name of the operation resource to be cancelled.
|
|
513
|
+
# @param [Google::Apis::NetworkmanagementV1beta1::CancelOperationRequest] cancel_operation_request_object
|
|
514
|
+
# @param [String] fields
|
|
515
|
+
# Selector specifying which fields to include in a partial response.
|
|
516
|
+
# @param [String] quota_user
|
|
517
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
518
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
519
|
+
# @param [Google::Apis::RequestOptions] options
|
|
520
|
+
# Request-specific options
|
|
521
|
+
#
|
|
522
|
+
# @yield [result, err] Result & error if block supplied
|
|
523
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Empty] parsed result object
|
|
524
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
525
|
+
#
|
|
526
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Empty]
|
|
527
|
+
#
|
|
528
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
529
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
530
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
531
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
532
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
|
533
|
+
command.request_representation = Google::Apis::NetworkmanagementV1beta1::CancelOperationRequest::Representation
|
|
534
|
+
command.request_object = cancel_operation_request_object
|
|
535
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Empty::Representation
|
|
536
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Empty
|
|
537
|
+
command.params['name'] = name unless name.nil?
|
|
538
|
+
command.query['fields'] = fields unless fields.nil?
|
|
539
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
540
|
+
execute_or_queue_command(command, &block)
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# Deletes a long-running operation. This method indicates that the client is
|
|
544
|
+
# no longer interested in the operation result. It does not cancel the
|
|
545
|
+
# operation. If the server doesn't support this method, it returns
|
|
546
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
547
|
+
# @param [String] name
|
|
548
|
+
# The name of the operation resource to be deleted.
|
|
549
|
+
# @param [String] fields
|
|
550
|
+
# Selector specifying which fields to include in a partial response.
|
|
551
|
+
# @param [String] quota_user
|
|
552
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
553
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
554
|
+
# @param [Google::Apis::RequestOptions] options
|
|
555
|
+
# Request-specific options
|
|
556
|
+
#
|
|
557
|
+
# @yield [result, err] Result & error if block supplied
|
|
558
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Empty] parsed result object
|
|
559
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
560
|
+
#
|
|
561
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Empty]
|
|
562
|
+
#
|
|
563
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
564
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
565
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
566
|
+
def delete_project_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
567
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
|
568
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Empty::Representation
|
|
569
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Empty
|
|
570
|
+
command.params['name'] = name unless name.nil?
|
|
571
|
+
command.query['fields'] = fields unless fields.nil?
|
|
572
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
573
|
+
execute_or_queue_command(command, &block)
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
|
577
|
+
# method to poll the operation result at intervals as recommended by the API
|
|
578
|
+
# service.
|
|
579
|
+
# @param [String] name
|
|
580
|
+
# The name of the operation resource.
|
|
581
|
+
# @param [String] fields
|
|
582
|
+
# Selector specifying which fields to include in a partial response.
|
|
583
|
+
# @param [String] quota_user
|
|
584
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
585
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
586
|
+
# @param [Google::Apis::RequestOptions] options
|
|
587
|
+
# Request-specific options
|
|
588
|
+
#
|
|
589
|
+
# @yield [result, err] Result & error if block supplied
|
|
590
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::Operation] parsed result object
|
|
591
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
592
|
+
#
|
|
593
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
|
|
594
|
+
#
|
|
595
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
596
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
597
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
598
|
+
def get_project_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
599
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
600
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
|
|
601
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
|
|
602
|
+
command.params['name'] = name unless name.nil?
|
|
603
|
+
command.query['fields'] = fields unless fields.nil?
|
|
604
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
605
|
+
execute_or_queue_command(command, &block)
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# Lists operations that match the specified filter in the request. If the
|
|
609
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
610
|
+
# NOTE: the `name` binding allows API services to override the binding
|
|
611
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
|
612
|
+
# override the binding, API services can add a binding such as
|
|
613
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
|
614
|
+
# For backwards compatibility, the default name includes the operations
|
|
615
|
+
# collection id, however overriding users must ensure the name binding
|
|
616
|
+
# is the parent resource, without the operations collection id.
|
|
617
|
+
# @param [String] name
|
|
618
|
+
# The name of the operation's parent resource.
|
|
619
|
+
# @param [String] filter
|
|
620
|
+
# The standard list filter.
|
|
621
|
+
# @param [Fixnum] page_size
|
|
622
|
+
# The standard list page size.
|
|
623
|
+
# @param [String] page_token
|
|
624
|
+
# The standard list page token.
|
|
625
|
+
# @param [String] fields
|
|
626
|
+
# Selector specifying which fields to include in a partial response.
|
|
627
|
+
# @param [String] quota_user
|
|
628
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
629
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
630
|
+
# @param [Google::Apis::RequestOptions] options
|
|
631
|
+
# Request-specific options
|
|
632
|
+
#
|
|
633
|
+
# @yield [result, err] Result & error if block supplied
|
|
634
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::ListOperationsResponse] parsed result object
|
|
635
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
636
|
+
#
|
|
637
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::ListOperationsResponse]
|
|
638
|
+
#
|
|
639
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
640
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
641
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
642
|
+
def list_project_location_global_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
643
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
|
644
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::ListOperationsResponse::Representation
|
|
645
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::ListOperationsResponse
|
|
646
|
+
command.params['name'] = name unless name.nil?
|
|
647
|
+
command.query['filter'] = filter unless filter.nil?
|
|
648
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
649
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
650
|
+
command.query['fields'] = fields unless fields.nil?
|
|
651
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
652
|
+
execute_or_queue_command(command, &block)
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
protected
|
|
656
|
+
|
|
657
|
+
def apply_command_defaults(command)
|
|
658
|
+
command.query['key'] = key unless key.nil?
|
|
659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
660
|
+
end
|
|
661
|
+
end
|
|
662
|
+
end
|
|
663
|
+
end
|
|
664
|
+
end
|