google-cloud-network_security-v1beta1 0.2.0 → 0.4.0
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/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/network_security/v1beta1/bindings_override.rb +183 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/client.rb +86 -62
- data/lib/google/cloud/network_security/v1beta1/network_security/operations.rb +12 -14
- data/lib/google/cloud/network_security/v1beta1/network_security/rest/client.rb +1451 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/rest/operations.rb +793 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/rest/service_stub.rb +939 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/rest.rb +56 -0
- data/lib/google/cloud/network_security/v1beta1/network_security.rb +7 -1
- data/lib/google/cloud/network_security/v1beta1/rest.rb +38 -0
- data/lib/google/cloud/network_security/v1beta1/version.rb +1 -1
- data/lib/google/cloud/network_security/v1beta1.rb +7 -2
- data/lib/google/cloud/networksecurity/v1beta1/authorization_policy_pb.rb +0 -1
- data/lib/google/cloud/networksecurity/v1beta1/client_tls_policy_pb.rb +0 -1
- data/lib/google/cloud/networksecurity/v1beta1/common_pb.rb +0 -1
- data/lib/google/cloud/networksecurity/v1beta1/server_tls_policy_pb.rb +0 -1
- data/lib/google/cloud/networksecurity/v1beta1/tls_pb.rb +0 -1
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb +38 -35
- data/proto_docs/google/cloud/networksecurity/v1beta1/client_tls_policy.rb +10 -8
- data/proto_docs/google/cloud/networksecurity/v1beta1/common.rb +3 -2
- data/proto_docs/google/cloud/networksecurity/v1beta1/server_tls_policy.rb +7 -3
- data/proto_docs/google/cloud/networksecurity/v1beta1/tls.rb +5 -5
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +56 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f115238b504c1926a7bf623a6b0b341e1e8bc8e26801f6029eceeb886814200
|
4
|
+
data.tar.gz: 57e2037c9a8c7444f3b77d566b8a39ffc745569e58abd73f93bb689fca152d4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a080627d2a0e1f89ee15793046d8e49c190d768e1e4d0b86e72bc8a457e57928fff45cd7f271fb20994b4927e4f477c11cdd4d2aef5d8ef465c0485204fa2fcb
|
7
|
+
data.tar.gz: 80bed47092f5d0a5574c20107b71967dd8559a4f784cf8b898765bdf23e4d87039feb43e475fcf458d47bea93e86b881c654bb06637837ff4e7b01e83a0c652a
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -0,0 +1,183 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module NetworkSecurity
|
24
|
+
##
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
26
|
+
#
|
27
|
+
# require "google/cloud/network_security/v1beta1/rest"
|
28
|
+
# client = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1beta1
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "NetworkSecurity"]
|
38
|
+
parent_config = while namespace.any?
|
39
|
+
parent_name = namespace.join "::"
|
40
|
+
parent_const = const_get parent_name
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
42
|
+
namespace.pop
|
43
|
+
end
|
44
|
+
|
45
|
+
default_config = Configuration.new parent_config
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
|
+
uri_method: :get,
|
49
|
+
uri_template: "/v1beta1/{name}",
|
50
|
+
matches: [
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
52
|
+
],
|
53
|
+
body: nil
|
54
|
+
)
|
55
|
+
]
|
56
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
57
|
+
|
58
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
59
|
+
uri_method: :get,
|
60
|
+
uri_template: "/v1beta1/{name}/locations",
|
61
|
+
matches: [
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
63
|
+
],
|
64
|
+
body: nil
|
65
|
+
)
|
66
|
+
]
|
67
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
|
68
|
+
|
69
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
70
|
+
uri_method: :get,
|
71
|
+
uri_template: "/v1beta1/{resource}:getIamPolicy",
|
72
|
+
matches: [
|
73
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/authorizationPolicies/[^/]+/?$}, false]
|
74
|
+
],
|
75
|
+
body: nil
|
76
|
+
),
|
77
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
78
|
+
uri_method: :get,
|
79
|
+
uri_template: "/v1beta1/{resource}:getIamPolicy",
|
80
|
+
matches: [
|
81
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+/?$}, false]
|
82
|
+
],
|
83
|
+
body: nil
|
84
|
+
),
|
85
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
86
|
+
uri_method: :get,
|
87
|
+
uri_template: "/v1beta1/{resource}:getIamPolicy",
|
88
|
+
matches: [
|
89
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/clientTlsPolicies/[^/]+/?$}, false]
|
90
|
+
],
|
91
|
+
body: nil
|
92
|
+
)
|
93
|
+
]
|
94
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
|
95
|
+
|
96
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
97
|
+
uri_method: :post,
|
98
|
+
uri_template: "/v1beta1/{resource}:setIamPolicy",
|
99
|
+
matches: [
|
100
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/authorizationPolicies/[^/]+/?$}, false]
|
101
|
+
],
|
102
|
+
body: "*"
|
103
|
+
),
|
104
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
105
|
+
uri_method: :post,
|
106
|
+
uri_template: "/v1beta1/{resource}:setIamPolicy",
|
107
|
+
matches: [
|
108
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+/?$}, false]
|
109
|
+
],
|
110
|
+
body: "*"
|
111
|
+
),
|
112
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
113
|
+
uri_method: :post,
|
114
|
+
uri_template: "/v1beta1/{resource}:setIamPolicy",
|
115
|
+
matches: [
|
116
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/clientTlsPolicies/[^/]+/?$}, false]
|
117
|
+
],
|
118
|
+
body: "*"
|
119
|
+
)
|
120
|
+
]
|
121
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
|
122
|
+
|
123
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
124
|
+
uri_method: :post,
|
125
|
+
uri_template: "/v1beta1/{resource}:testIamPermissions",
|
126
|
+
matches: [
|
127
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/authorizationPolicies/[^/]+/?$}, false]
|
128
|
+
],
|
129
|
+
body: "*"
|
130
|
+
),
|
131
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
132
|
+
uri_method: :post,
|
133
|
+
uri_template: "/v1beta1/{resource}:testIamPermissions",
|
134
|
+
matches: [
|
135
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+/?$}, false]
|
136
|
+
],
|
137
|
+
body: "*"
|
138
|
+
),
|
139
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
140
|
+
uri_method: :post,
|
141
|
+
uri_template: "/v1beta1/{resource}:testIamPermissions",
|
142
|
+
matches: [
|
143
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/clientTlsPolicies/[^/]+/?$}, false]
|
144
|
+
],
|
145
|
+
body: "*"
|
146
|
+
)
|
147
|
+
]
|
148
|
+
default_config
|
149
|
+
end
|
150
|
+
yield @configure if block_given?
|
151
|
+
@configure
|
152
|
+
end
|
153
|
+
|
154
|
+
##
|
155
|
+
# @private
|
156
|
+
# Configuration class for the google.cloud.networksecurity.v1beta1 package.
|
157
|
+
#
|
158
|
+
# This class contains common configuration for all services
|
159
|
+
# of the google.cloud.networksecurity.v1beta1 package.
|
160
|
+
#
|
161
|
+
# This configuration is for internal use of the client library classes,
|
162
|
+
# and it is not intended that the end-users will read or change it.
|
163
|
+
#
|
164
|
+
class Configuration
|
165
|
+
extend ::Gapic::Config
|
166
|
+
|
167
|
+
# @private
|
168
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
169
|
+
# Services in this package should use these when creating clients for the mixin services.
|
170
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
171
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
172
|
+
|
173
|
+
# @private
|
174
|
+
def initialize parent_config = nil
|
175
|
+
@parent_config = parent_config unless parent_config.nil?
|
176
|
+
|
177
|
+
yield self if block_given?
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/networksecurity/v1beta1/network_security_pb"
|
21
|
+
require "google/cloud/location"
|
22
|
+
require "google/iam/v1"
|
21
23
|
|
22
24
|
module Google
|
23
25
|
module Cloud
|
@@ -143,6 +145,18 @@ module Google
|
|
143
145
|
config.endpoint = @config.endpoint
|
144
146
|
end
|
145
147
|
|
148
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
149
|
+
config.credentials = credentials
|
150
|
+
config.quota_project = @quota_project_id
|
151
|
+
config.endpoint = @config.endpoint
|
152
|
+
end
|
153
|
+
|
154
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
155
|
+
config.credentials = credentials
|
156
|
+
config.quota_project = @quota_project_id
|
157
|
+
config.endpoint = @config.endpoint
|
158
|
+
end
|
159
|
+
|
146
160
|
@network_security_stub = ::Gapic::ServiceStub.new(
|
147
161
|
::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Stub,
|
148
162
|
credentials: credentials,
|
@@ -159,6 +173,20 @@ module Google
|
|
159
173
|
#
|
160
174
|
attr_reader :operations_client
|
161
175
|
|
176
|
+
##
|
177
|
+
# Get the associated client for mix-in of the Locations.
|
178
|
+
#
|
179
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
180
|
+
#
|
181
|
+
attr_reader :location_client
|
182
|
+
|
183
|
+
##
|
184
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
185
|
+
#
|
186
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
187
|
+
#
|
188
|
+
attr_reader :iam_policy_client
|
189
|
+
|
162
190
|
# Service calls
|
163
191
|
|
164
192
|
##
|
@@ -211,13 +239,11 @@ module Google
|
|
211
239
|
# # Call the list_authorization_policies method.
|
212
240
|
# result = client.list_authorization_policies request
|
213
241
|
#
|
214
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
215
|
-
# #
|
216
|
-
#
|
217
|
-
# # methods are also available for managing paging directly.
|
218
|
-
# result.each do |response|
|
242
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
243
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
244
|
+
# result.each do |item|
|
219
245
|
# # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy.
|
220
|
-
# p
|
246
|
+
# p item
|
221
247
|
# end
|
222
248
|
#
|
223
249
|
def list_authorization_policies request, options = nil
|
@@ -397,14 +423,14 @@ module Google
|
|
397
423
|
# # Call the create_authorization_policy method.
|
398
424
|
# result = client.create_authorization_policy request
|
399
425
|
#
|
400
|
-
# # The returned object is of type Gapic::Operation. You can use
|
401
|
-
# #
|
402
|
-
# #
|
426
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
427
|
+
# # check the status of an operation, cancel it, or wait for results.
|
428
|
+
# # Here is how to wait for a response.
|
403
429
|
# result.wait_until_done! timeout: 60
|
404
430
|
# if result.response?
|
405
431
|
# p result.response
|
406
432
|
# else
|
407
|
-
# puts "
|
433
|
+
# puts "No response received."
|
408
434
|
# end
|
409
435
|
#
|
410
436
|
def create_authorization_policy request, options = nil
|
@@ -496,14 +522,14 @@ module Google
|
|
496
522
|
# # Call the update_authorization_policy method.
|
497
523
|
# result = client.update_authorization_policy request
|
498
524
|
#
|
499
|
-
# # The returned object is of type Gapic::Operation. You can use
|
500
|
-
# #
|
501
|
-
# #
|
525
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
526
|
+
# # check the status of an operation, cancel it, or wait for results.
|
527
|
+
# # Here is how to wait for a response.
|
502
528
|
# result.wait_until_done! timeout: 60
|
503
529
|
# if result.response?
|
504
530
|
# p result.response
|
505
531
|
# else
|
506
|
-
# puts "
|
532
|
+
# puts "No response received."
|
507
533
|
# end
|
508
534
|
#
|
509
535
|
def update_authorization_policy request, options = nil
|
@@ -567,8 +593,8 @@ module Google
|
|
567
593
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
568
594
|
#
|
569
595
|
# @param name [::String]
|
570
|
-
# Required. A name of the AuthorizationPolicy to delete. Must be in the
|
571
|
-
# `projects/{project}/locations/{location}/authorizationPolicies/*`.
|
596
|
+
# Required. A name of the AuthorizationPolicy to delete. Must be in the
|
597
|
+
# format `projects/{project}/locations/{location}/authorizationPolicies/*`.
|
572
598
|
#
|
573
599
|
# @yield [response, operation] Access the result along with the RPC operation
|
574
600
|
# @yieldparam response [::Gapic::Operation]
|
@@ -590,14 +616,14 @@ module Google
|
|
590
616
|
# # Call the delete_authorization_policy method.
|
591
617
|
# result = client.delete_authorization_policy request
|
592
618
|
#
|
593
|
-
# # The returned object is of type Gapic::Operation. You can use
|
594
|
-
# #
|
595
|
-
# #
|
619
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
620
|
+
# # check the status of an operation, cancel it, or wait for results.
|
621
|
+
# # Here is how to wait for a response.
|
596
622
|
# result.wait_until_done! timeout: 60
|
597
623
|
# if result.response?
|
598
624
|
# p result.response
|
599
625
|
# else
|
600
|
-
# puts "
|
626
|
+
# puts "No response received."
|
601
627
|
# end
|
602
628
|
#
|
603
629
|
def delete_authorization_policy request, options = nil
|
@@ -691,13 +717,11 @@ module Google
|
|
691
717
|
# # Call the list_server_tls_policies method.
|
692
718
|
# result = client.list_server_tls_policies request
|
693
719
|
#
|
694
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
695
|
-
# #
|
696
|
-
#
|
697
|
-
# # methods are also available for managing paging directly.
|
698
|
-
# result.each do |response|
|
720
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
721
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
722
|
+
# result.each do |item|
|
699
723
|
# # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy.
|
700
|
-
# p
|
724
|
+
# p item
|
701
725
|
# end
|
702
726
|
#
|
703
727
|
def list_server_tls_policies request, options = nil
|
@@ -850,9 +874,10 @@ module Google
|
|
850
874
|
# Required. The parent resource of the ServerTlsPolicy. Must be in
|
851
875
|
# the format `projects/*/locations/{location}`.
|
852
876
|
# @param server_tls_policy_id [::String]
|
853
|
-
# Required. Short name of the ServerTlsPolicy resource to be created. This
|
854
|
-
# be 1-63 characters long, containing only letters, numbers,
|
855
|
-
# underscores, and should not start with a number. E.g.
|
877
|
+
# Required. Short name of the ServerTlsPolicy resource to be created. This
|
878
|
+
# value should be 1-63 characters long, containing only letters, numbers,
|
879
|
+
# hyphens, and underscores, and should not start with a number. E.g.
|
880
|
+
# "server_mtls_policy".
|
856
881
|
# @param server_tls_policy [::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy, ::Hash]
|
857
882
|
# Required. ServerTlsPolicy resource to be created.
|
858
883
|
#
|
@@ -876,14 +901,14 @@ module Google
|
|
876
901
|
# # Call the create_server_tls_policy method.
|
877
902
|
# result = client.create_server_tls_policy request
|
878
903
|
#
|
879
|
-
# # The returned object is of type Gapic::Operation. You can use
|
880
|
-
# #
|
881
|
-
# #
|
904
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
905
|
+
# # check the status of an operation, cancel it, or wait for results.
|
906
|
+
# # Here is how to wait for a response.
|
882
907
|
# result.wait_until_done! timeout: 60
|
883
908
|
# if result.response?
|
884
909
|
# p result.response
|
885
910
|
# else
|
886
|
-
# puts "
|
911
|
+
# puts "No response received."
|
887
912
|
# end
|
888
913
|
#
|
889
914
|
def create_server_tls_policy request, options = nil
|
@@ -976,14 +1001,14 @@ module Google
|
|
976
1001
|
# # Call the update_server_tls_policy method.
|
977
1002
|
# result = client.update_server_tls_policy request
|
978
1003
|
#
|
979
|
-
# # The returned object is of type Gapic::Operation. You can use
|
980
|
-
# #
|
981
|
-
# #
|
1004
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1005
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1006
|
+
# # Here is how to wait for a response.
|
982
1007
|
# result.wait_until_done! timeout: 60
|
983
1008
|
# if result.response?
|
984
1009
|
# p result.response
|
985
1010
|
# else
|
986
|
-
# puts "
|
1011
|
+
# puts "No response received."
|
987
1012
|
# end
|
988
1013
|
#
|
989
1014
|
def update_server_tls_policy request, options = nil
|
@@ -1070,14 +1095,14 @@ module Google
|
|
1070
1095
|
# # Call the delete_server_tls_policy method.
|
1071
1096
|
# result = client.delete_server_tls_policy request
|
1072
1097
|
#
|
1073
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1074
|
-
# #
|
1075
|
-
# #
|
1098
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1099
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1100
|
+
# # Here is how to wait for a response.
|
1076
1101
|
# result.wait_until_done! timeout: 60
|
1077
1102
|
# if result.response?
|
1078
1103
|
# p result.response
|
1079
1104
|
# else
|
1080
|
-
# puts "
|
1105
|
+
# puts "No response received."
|
1081
1106
|
# end
|
1082
1107
|
#
|
1083
1108
|
def delete_server_tls_policy request, options = nil
|
@@ -1171,13 +1196,11 @@ module Google
|
|
1171
1196
|
# # Call the list_client_tls_policies method.
|
1172
1197
|
# result = client.list_client_tls_policies request
|
1173
1198
|
#
|
1174
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1175
|
-
# #
|
1176
|
-
#
|
1177
|
-
# # methods are also available for managing paging directly.
|
1178
|
-
# result.each do |response|
|
1199
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1200
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1201
|
+
# result.each do |item|
|
1179
1202
|
# # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy.
|
1180
|
-
# p
|
1203
|
+
# p item
|
1181
1204
|
# end
|
1182
1205
|
#
|
1183
1206
|
def list_client_tls_policies request, options = nil
|
@@ -1330,9 +1353,10 @@ module Google
|
|
1330
1353
|
# Required. The parent resource of the ClientTlsPolicy. Must be in
|
1331
1354
|
# the format `projects/*/locations/{location}`.
|
1332
1355
|
# @param client_tls_policy_id [::String]
|
1333
|
-
# Required. Short name of the ClientTlsPolicy resource to be created. This
|
1334
|
-
# be 1-63 characters long, containing only letters, numbers,
|
1335
|
-
# underscores, and should not start with a number. E.g.
|
1356
|
+
# Required. Short name of the ClientTlsPolicy resource to be created. This
|
1357
|
+
# value should be 1-63 characters long, containing only letters, numbers,
|
1358
|
+
# hyphens, and underscores, and should not start with a number. E.g.
|
1359
|
+
# "client_mtls_policy".
|
1336
1360
|
# @param client_tls_policy [::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy, ::Hash]
|
1337
1361
|
# Required. ClientTlsPolicy resource to be created.
|
1338
1362
|
#
|
@@ -1356,14 +1380,14 @@ module Google
|
|
1356
1380
|
# # Call the create_client_tls_policy method.
|
1357
1381
|
# result = client.create_client_tls_policy request
|
1358
1382
|
#
|
1359
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1360
|
-
# #
|
1361
|
-
# #
|
1383
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1384
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1385
|
+
# # Here is how to wait for a response.
|
1362
1386
|
# result.wait_until_done! timeout: 60
|
1363
1387
|
# if result.response?
|
1364
1388
|
# p result.response
|
1365
1389
|
# else
|
1366
|
-
# puts "
|
1390
|
+
# puts "No response received."
|
1367
1391
|
# end
|
1368
1392
|
#
|
1369
1393
|
def create_client_tls_policy request, options = nil
|
@@ -1456,14 +1480,14 @@ module Google
|
|
1456
1480
|
# # Call the update_client_tls_policy method.
|
1457
1481
|
# result = client.update_client_tls_policy request
|
1458
1482
|
#
|
1459
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1460
|
-
# #
|
1461
|
-
# #
|
1483
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1484
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1485
|
+
# # Here is how to wait for a response.
|
1462
1486
|
# result.wait_until_done! timeout: 60
|
1463
1487
|
# if result.response?
|
1464
1488
|
# p result.response
|
1465
1489
|
# else
|
1466
|
-
# puts "
|
1490
|
+
# puts "No response received."
|
1467
1491
|
# end
|
1468
1492
|
#
|
1469
1493
|
def update_client_tls_policy request, options = nil
|
@@ -1550,14 +1574,14 @@ module Google
|
|
1550
1574
|
# # Call the delete_client_tls_policy method.
|
1551
1575
|
# result = client.delete_client_tls_policy request
|
1552
1576
|
#
|
1553
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1554
|
-
# #
|
1555
|
-
# #
|
1577
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1578
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1579
|
+
# # Here is how to wait for a response.
|
1556
1580
|
# result.wait_until_done! timeout: 60
|
1557
1581
|
# if result.response?
|
1558
1582
|
# p result.response
|
1559
1583
|
# else
|
1560
|
-
# puts "
|
1584
|
+
# puts "No response received."
|
1561
1585
|
# end
|
1562
1586
|
#
|
1563
1587
|
def delete_client_tls_policy request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|