google-cloud-network_connectivity-v1alpha1 0.1.0 → 0.4.2
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 +8 -8
- data/LICENSE.md +188 -190
- data/README.md +67 -3
- data/lib/google/cloud/network_connectivity/v1alpha1/hub_service.rb +4 -3
- data/lib/google/cloud/network_connectivity/v1alpha1/hub_service/client.rb +26 -22
- data/lib/google/cloud/network_connectivity/v1alpha1/hub_service/operations.rb +95 -10
- data/lib/google/cloud/network_connectivity/v1alpha1/version.rb +1 -1
- data/lib/google/cloud/networkconnectivity/v1alpha1/hub_pb.rb +9 -0
- data/lib/google/cloud/networkconnectivity/v1alpha1/hub_services_pb.rb +4 -3
- data/proto_docs/google/api/field_behavior.rb +12 -0
- data/proto_docs/google/cloud/networkconnectivity/v1alpha1/hub.rb +26 -4
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +21 -11
@@ -32,9 +32,10 @@ module Google
|
|
32
32
|
module NetworkConnectivity
|
33
33
|
module V1alpha1
|
34
34
|
##
|
35
|
-
# Connectivity
|
36
|
-
# management in Google Cloud.
|
37
|
-
# through a simple, centralized connectivity management
|
35
|
+
# Network Connectivity Center is a hub-and-spoke abstraction for
|
36
|
+
# network connectivity management in Google Cloud. It reduces
|
37
|
+
# operational complexity through a simple, centralized connectivity management
|
38
|
+
# model.
|
38
39
|
#
|
39
40
|
# To load this service and instantiate a client:
|
40
41
|
#
|
@@ -27,9 +27,10 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Client for the HubService service.
|
29
29
|
#
|
30
|
-
# Connectivity
|
31
|
-
# management in Google Cloud.
|
32
|
-
# through a simple, centralized connectivity management
|
30
|
+
# Network Connectivity Center is a hub-and-spoke abstraction for
|
31
|
+
# network connectivity management in Google Cloud. It reduces
|
32
|
+
# operational complexity through a simple, centralized connectivity management
|
33
|
+
# model.
|
33
34
|
#
|
34
35
|
class Client
|
35
36
|
include Paths
|
@@ -62,17 +63,14 @@ module Google
|
|
62
63
|
parent_config = while namespace.any?
|
63
64
|
parent_name = namespace.join "::"
|
64
65
|
parent_const = const_get parent_name
|
65
|
-
break parent_const.configure if parent_const
|
66
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
66
67
|
namespace.pop
|
67
68
|
end
|
68
69
|
default_config = Client::Configuration.new parent_config
|
69
70
|
|
70
71
|
default_config.timeout = 60.0
|
71
72
|
default_config.retry_policy = {
|
72
|
-
initial_delay: 1.0,
|
73
|
-
max_delay: 10.0,
|
74
|
-
multiplier: 1.3,
|
75
|
-
retry_codes: [14]
|
73
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
76
74
|
}
|
77
75
|
|
78
76
|
default_config.rpcs.create_hub.timeout = 60.0
|
@@ -148,8 +146,14 @@ module Google
|
|
148
146
|
|
149
147
|
# Create credentials
|
150
148
|
credentials = @config.credentials
|
151
|
-
|
152
|
-
if
|
149
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
150
|
+
# but only if the default endpoint does not have a region prefix.
|
151
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
152
|
+
@config.endpoint == Client.configure.endpoint &&
|
153
|
+
!@config.endpoint.split(".").first.include?("-")
|
154
|
+
credentials ||= Credentials.default scope: @config.scope,
|
155
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
156
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
153
157
|
credentials = Credentials.new credentials, scope: @config.scope
|
154
158
|
end
|
155
159
|
@quota_project_id = @config.quota_project
|
@@ -1058,7 +1062,7 @@ module Google
|
|
1058
1062
|
config_attr :scope, nil, ::String, ::Array, nil
|
1059
1063
|
config_attr :lib_name, nil, ::String, nil
|
1060
1064
|
config_attr :lib_version, nil, ::String, nil
|
1061
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1065
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
1062
1066
|
config_attr :interceptors, nil, ::Array, nil
|
1063
1067
|
config_attr :timeout, nil, ::Numeric, nil
|
1064
1068
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -1079,7 +1083,7 @@ module Google
|
|
1079
1083
|
def rpcs
|
1080
1084
|
@rpcs ||= begin
|
1081
1085
|
parent_rpcs = nil
|
1082
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
1086
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1083
1087
|
Rpcs.new parent_rpcs
|
1084
1088
|
end
|
1085
1089
|
end
|
@@ -1155,25 +1159,25 @@ module Google
|
|
1155
1159
|
|
1156
1160
|
# @private
|
1157
1161
|
def initialize parent_rpcs = nil
|
1158
|
-
list_hubs_config = parent_rpcs
|
1162
|
+
list_hubs_config = parent_rpcs.list_hubs if parent_rpcs.respond_to? :list_hubs
|
1159
1163
|
@list_hubs = ::Gapic::Config::Method.new list_hubs_config
|
1160
|
-
get_hub_config = parent_rpcs
|
1164
|
+
get_hub_config = parent_rpcs.get_hub if parent_rpcs.respond_to? :get_hub
|
1161
1165
|
@get_hub = ::Gapic::Config::Method.new get_hub_config
|
1162
|
-
create_hub_config = parent_rpcs
|
1166
|
+
create_hub_config = parent_rpcs.create_hub if parent_rpcs.respond_to? :create_hub
|
1163
1167
|
@create_hub = ::Gapic::Config::Method.new create_hub_config
|
1164
|
-
update_hub_config = parent_rpcs
|
1168
|
+
update_hub_config = parent_rpcs.update_hub if parent_rpcs.respond_to? :update_hub
|
1165
1169
|
@update_hub = ::Gapic::Config::Method.new update_hub_config
|
1166
|
-
delete_hub_config = parent_rpcs
|
1170
|
+
delete_hub_config = parent_rpcs.delete_hub if parent_rpcs.respond_to? :delete_hub
|
1167
1171
|
@delete_hub = ::Gapic::Config::Method.new delete_hub_config
|
1168
|
-
list_spokes_config = parent_rpcs
|
1172
|
+
list_spokes_config = parent_rpcs.list_spokes if parent_rpcs.respond_to? :list_spokes
|
1169
1173
|
@list_spokes = ::Gapic::Config::Method.new list_spokes_config
|
1170
|
-
get_spoke_config = parent_rpcs
|
1174
|
+
get_spoke_config = parent_rpcs.get_spoke if parent_rpcs.respond_to? :get_spoke
|
1171
1175
|
@get_spoke = ::Gapic::Config::Method.new get_spoke_config
|
1172
|
-
create_spoke_config = parent_rpcs
|
1176
|
+
create_spoke_config = parent_rpcs.create_spoke if parent_rpcs.respond_to? :create_spoke
|
1173
1177
|
@create_spoke = ::Gapic::Config::Method.new create_spoke_config
|
1174
|
-
update_spoke_config = parent_rpcs
|
1178
|
+
update_spoke_config = parent_rpcs.update_spoke if parent_rpcs.respond_to? :update_spoke
|
1175
1179
|
@update_spoke = ::Gapic::Config::Method.new update_spoke_config
|
1176
|
-
delete_spoke_config = parent_rpcs
|
1180
|
+
delete_spoke_config = parent_rpcs.delete_spoke if parent_rpcs.respond_to? :delete_spoke
|
1177
1181
|
@delete_spoke = ::Gapic::Config::Method.new delete_spoke_config
|
1178
1182
|
|
1179
1183
|
yield self if block_given?
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create credentials
|
83
83
|
credentials = @config.credentials
|
84
84
|
credentials ||= Credentials.default scope: @config.scope
|
85
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
85
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
88
|
@quota_project_id = @config.quota_project
|
@@ -103,8 +103,13 @@ module Google
|
|
103
103
|
# Lists operations that match the specified filter in the request. If the
|
104
104
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
105
105
|
#
|
106
|
-
# NOTE: the `name` binding
|
107
|
-
# to use different resource name schemes, such as `users/*/operations`.
|
106
|
+
# NOTE: the `name` binding allows API services to override the binding
|
107
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
108
|
+
# override the binding, API services can add a binding such as
|
109
|
+
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
110
|
+
# For backwards compatibility, the default name includes the operations
|
111
|
+
# collection id, however overriding users must ensure the name binding
|
112
|
+
# is the parent resource, without the operations collection id.
|
108
113
|
#
|
109
114
|
# @overload list_operations(request, options = nil)
|
110
115
|
# Pass arguments to `list_operations` via a request object, either of type
|
@@ -122,7 +127,7 @@ module Google
|
|
122
127
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
123
128
|
#
|
124
129
|
# @param name [::String]
|
125
|
-
# The name of the operation
|
130
|
+
# The name of the operation's parent resource.
|
126
131
|
# @param filter [::String]
|
127
132
|
# The standard list filter.
|
128
133
|
# @param page_size [::Integer]
|
@@ -390,6 +395,79 @@ module Google
|
|
390
395
|
raise ::Google::Cloud::Error.from_error(e)
|
391
396
|
end
|
392
397
|
|
398
|
+
##
|
399
|
+
# Waits until the specified long-running operation is done or reaches at most
|
400
|
+
# a specified timeout, returning the latest state. If the operation is
|
401
|
+
# already done, the latest state is immediately returned. If the timeout
|
402
|
+
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
403
|
+
# timeout is used. If the server does not support this method, it returns
|
404
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
405
|
+
# Note that this method is on a best-effort basis. It may return the latest
|
406
|
+
# state before the specified timeout (including immediately), meaning even an
|
407
|
+
# immediate response is no guarantee that the operation is done.
|
408
|
+
#
|
409
|
+
# @overload wait_operation(request, options = nil)
|
410
|
+
# Pass arguments to `wait_operation` via a request object, either of type
|
411
|
+
# {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash.
|
412
|
+
#
|
413
|
+
# @param request [::Google::Longrunning::WaitOperationRequest, ::Hash]
|
414
|
+
# A request object representing the call parameters. Required. To specify no
|
415
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
416
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
417
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
418
|
+
#
|
419
|
+
# @overload wait_operation(name: nil, timeout: nil)
|
420
|
+
# Pass arguments to `wait_operation` via keyword arguments. Note that at
|
421
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
422
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
423
|
+
#
|
424
|
+
# @param name [::String]
|
425
|
+
# The name of the operation resource to wait on.
|
426
|
+
# @param timeout [::Google::Protobuf::Duration, ::Hash]
|
427
|
+
# The maximum duration to wait before timing out. If left blank, the wait
|
428
|
+
# will be at most the time permitted by the underlying HTTP/RPC protocol.
|
429
|
+
# If RPC context deadline is also specified, the shorter one will be used.
|
430
|
+
#
|
431
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
432
|
+
# @yieldparam response [::Gapic::Operation]
|
433
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
434
|
+
#
|
435
|
+
# @return [::Gapic::Operation]
|
436
|
+
#
|
437
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
438
|
+
#
|
439
|
+
def wait_operation request, options = nil
|
440
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
441
|
+
|
442
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest
|
443
|
+
|
444
|
+
# Converts hash and nil to an options object
|
445
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
446
|
+
|
447
|
+
# Customize the options with defaults
|
448
|
+
metadata = @config.rpcs.wait_operation.metadata.to_h
|
449
|
+
|
450
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
451
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
452
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
453
|
+
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
454
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
455
|
+
|
456
|
+
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
|
+
metadata: metadata,
|
458
|
+
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
+
options.apply_defaults metadata: @config.metadata,
|
460
|
+
retry_policy: @config.retry_policy
|
461
|
+
|
462
|
+
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
463
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
464
|
+
yield response, operation if block_given?
|
465
|
+
return response
|
466
|
+
end
|
467
|
+
rescue ::GRPC::BadStatus => e
|
468
|
+
raise ::Google::Cloud::Error.from_error(e)
|
469
|
+
end
|
470
|
+
|
393
471
|
##
|
394
472
|
# Configuration class for the Operations API.
|
395
473
|
#
|
@@ -482,7 +560,7 @@ module Google
|
|
482
560
|
config_attr :scope, nil, ::String, ::Array, nil
|
483
561
|
config_attr :lib_name, nil, ::String, nil
|
484
562
|
config_attr :lib_version, nil, ::String, nil
|
485
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
563
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
486
564
|
config_attr :interceptors, nil, ::Array, nil
|
487
565
|
config_attr :timeout, nil, ::Numeric, nil
|
488
566
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -503,7 +581,7 @@ module Google
|
|
503
581
|
def rpcs
|
504
582
|
@rpcs ||= begin
|
505
583
|
parent_rpcs = nil
|
506
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
584
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
507
585
|
Rpcs.new parent_rpcs
|
508
586
|
end
|
509
587
|
end
|
@@ -546,17 +624,24 @@ module Google
|
|
546
624
|
# @return [::Gapic::Config::Method]
|
547
625
|
#
|
548
626
|
attr_reader :cancel_operation
|
627
|
+
##
|
628
|
+
# RPC-specific configuration for `wait_operation`
|
629
|
+
# @return [::Gapic::Config::Method]
|
630
|
+
#
|
631
|
+
attr_reader :wait_operation
|
549
632
|
|
550
633
|
# @private
|
551
634
|
def initialize parent_rpcs = nil
|
552
|
-
list_operations_config = parent_rpcs
|
635
|
+
list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
|
553
636
|
@list_operations = ::Gapic::Config::Method.new list_operations_config
|
554
|
-
get_operation_config = parent_rpcs
|
637
|
+
get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
|
555
638
|
@get_operation = ::Gapic::Config::Method.new get_operation_config
|
556
|
-
delete_operation_config = parent_rpcs
|
639
|
+
delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation
|
557
640
|
@delete_operation = ::Gapic::Config::Method.new delete_operation_config
|
558
|
-
cancel_operation_config = parent_rpcs
|
641
|
+
cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
|
559
642
|
@cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
|
643
|
+
wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation
|
644
|
+
@wait_operation = ::Gapic::Config::Method.new wait_operation_config
|
560
645
|
|
561
646
|
yield self if block_given?
|
562
647
|
end
|
@@ -20,6 +20,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
20
|
optional :description, :string, 5
|
21
21
|
repeated :spokes, :string, 6
|
22
22
|
optional :unique_id, :string, 8
|
23
|
+
optional :state, :enum, 9, "google.cloud.networkconnectivity.v1alpha1.State"
|
23
24
|
end
|
24
25
|
add_message "google.cloud.networkconnectivity.v1alpha1.Spoke" do
|
25
26
|
optional :name, :string, 1
|
@@ -32,6 +33,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
33
|
repeated :linked_interconnect_attachments, :string, 13
|
33
34
|
repeated :linked_router_appliance_instances, :message, 14, "google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance"
|
34
35
|
optional :unique_id, :string, 11
|
36
|
+
optional :state, :enum, 15, "google.cloud.networkconnectivity.v1alpha1.State"
|
35
37
|
end
|
36
38
|
add_message "google.cloud.networkconnectivity.v1alpha1.ListHubsRequest" do
|
37
39
|
optional :parent, :string, 1
|
@@ -98,6 +100,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
98
100
|
optional :ip_address, :string, 3
|
99
101
|
optional :network_interface, :string, 2
|
100
102
|
end
|
103
|
+
add_enum "google.cloud.networkconnectivity.v1alpha1.State" do
|
104
|
+
value :STATE_UNSPECIFIED, 0
|
105
|
+
value :CREATING, 1
|
106
|
+
value :ACTIVE, 2
|
107
|
+
value :DELETING, 3
|
108
|
+
end
|
101
109
|
end
|
102
110
|
end
|
103
111
|
|
@@ -120,6 +128,7 @@ module Google
|
|
120
128
|
UpdateSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest").msgclass
|
121
129
|
DeleteSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest").msgclass
|
122
130
|
RouterApplianceInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance").msgclass
|
131
|
+
State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1alpha1.State").enummodule
|
123
132
|
end
|
124
133
|
end
|
125
134
|
end
|
@@ -24,9 +24,10 @@ module Google
|
|
24
24
|
module NetworkConnectivity
|
25
25
|
module V1alpha1
|
26
26
|
module HubService
|
27
|
-
# Connectivity
|
28
|
-
# management in Google Cloud.
|
29
|
-
# through a simple, centralized connectivity management
|
27
|
+
# Network Connectivity Center is a hub-and-spoke abstraction for
|
28
|
+
# network connectivity management in Google Cloud. It reduces
|
29
|
+
# operational complexity through a simple, centralized connectivity management
|
30
|
+
# model.
|
30
31
|
class Service
|
31
32
|
|
32
33
|
include GRPC::GenericService
|
@@ -54,6 +54,18 @@ module Google
|
|
54
54
|
# This indicates that the field may be set once in a request to create a
|
55
55
|
# resource, but may not be changed thereafter.
|
56
56
|
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
57
69
|
end
|
58
70
|
end
|
59
71
|
end
|
@@ -21,10 +21,10 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module NetworkConnectivity
|
23
23
|
module V1alpha1
|
24
|
-
#
|
25
|
-
# management in Google Cloud. It
|
26
|
-
# through a simple, centralized connectivity management
|
27
|
-
# resource message of a
|
24
|
+
# Network Connectivity Center is a hub-and-spoke abstraction for
|
25
|
+
# network connectivity management in Google Cloud. It reduces
|
26
|
+
# operational complexity through a simple, centralized connectivity management
|
27
|
+
# model. Following is the resource message of a hub.
|
28
28
|
# @!attribute [rw] name
|
29
29
|
# @return [::String]
|
30
30
|
# Immutable. The name of a Hub resource.
|
@@ -48,6 +48,9 @@ module Google
|
|
48
48
|
# Output only. Google-generated UUID for this resource. This is unique across all Hub
|
49
49
|
# resources. If a Hub resource is deleted and another with the same name is
|
50
50
|
# created, it gets a different unique_id.
|
51
|
+
# @!attribute [r] state
|
52
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1alpha1::State]
|
53
|
+
# Output only. The current lifecycle state of this Hub.
|
51
54
|
class Hub
|
52
55
|
include ::Google::Protobuf::MessageExts
|
53
56
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -97,6 +100,9 @@ module Google
|
|
97
100
|
# Output only. Google-generated UUID for this resource. This is unique across all Spoke
|
98
101
|
# resources. If a Spoke resource is deleted and another with the same name is
|
99
102
|
# created, it gets a different unique_id.
|
103
|
+
# @!attribute [r] state
|
104
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1alpha1::State]
|
105
|
+
# Output only. The current lifecycle state of this Hub.
|
100
106
|
class Spoke
|
101
107
|
include ::Google::Protobuf::MessageExts
|
102
108
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -387,6 +393,22 @@ module Google
|
|
387
393
|
include ::Google::Protobuf::MessageExts
|
388
394
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
389
395
|
end
|
396
|
+
|
397
|
+
# The State enum represents the lifecycle of a Network Connectivity Center
|
398
|
+
# resource.
|
399
|
+
module State
|
400
|
+
# No state information available
|
401
|
+
STATE_UNSPECIFIED = 0
|
402
|
+
|
403
|
+
# The resource's create operation is in progress
|
404
|
+
CREATING = 1
|
405
|
+
|
406
|
+
# The resource is active
|
407
|
+
ACTIVE = 2
|
408
|
+
|
409
|
+
# The resource's Delete operation is in progress
|
410
|
+
DELETING = 3
|
411
|
+
end
|
390
412
|
end
|
391
413
|
end
|
392
414
|
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @return [::String]
|
26
26
|
# The server-assigned name, which is only unique within the same service that
|
27
27
|
# originally returns it. If you use the default HTTP mapping, the
|
28
|
-
# `name` should
|
28
|
+
# `name` should be a resource name ending with `operations/{unique_id}`.
|
29
29
|
# @!attribute [rw] metadata
|
30
30
|
# @return [::Google::Protobuf::Any]
|
31
31
|
# Service-specific metadata associated with the operation. It typically
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# @!attribute [rw] done
|
36
36
|
# @return [::Boolean]
|
37
37
|
# If the value is `false`, it means the operation is still in progress.
|
38
|
-
# If true
|
38
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
39
39
|
# available.
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
@@ -67,7 +67,7 @@ module Google
|
|
67
67
|
# The request message for Operations.ListOperations.
|
68
68
|
# @!attribute [rw] name
|
69
69
|
# @return [::String]
|
70
|
-
# The name of the operation
|
70
|
+
# The name of the operation's parent resource.
|
71
71
|
# @!attribute [rw] filter
|
72
72
|
# @return [::String]
|
73
73
|
# The standard list filter.
|
@@ -112,6 +112,20 @@ module Google
|
|
112
112
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
113
|
end
|
114
114
|
|
115
|
+
# The request message for Operations.WaitOperation.
|
116
|
+
# @!attribute [rw] name
|
117
|
+
# @return [::String]
|
118
|
+
# The name of the operation resource to wait on.
|
119
|
+
# @!attribute [rw] timeout
|
120
|
+
# @return [::Google::Protobuf::Duration]
|
121
|
+
# The maximum duration to wait before timing out. If left blank, the wait
|
122
|
+
# will be at most the time permitted by the underlying HTTP/RPC protocol.
|
123
|
+
# If RPC context deadline is also specified, the shorter one will be used.
|
124
|
+
class WaitOperationRequest
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
|
115
129
|
# A message representing the message types used by a long-running operation.
|
116
130
|
#
|
117
131
|
# Example:
|