google-apis-networkconnectivity_v1 0.25.0 → 0.26.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/CHANGELOG.md +4 -0
- data/lib/google/apis/networkconnectivity_v1/classes.rb +7 -0
- data/lib/google/apis/networkconnectivity_v1/gem_version.rb +2 -2
- data/lib/google/apis/networkconnectivity_v1/representations.rb +1 -0
- data/lib/google/apis/networkconnectivity_v1/service.rb +121 -50
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1877cfa615b89a0327236c29870c7ea2ceee417c441d81fc7bcd5a729fec920
|
4
|
+
data.tar.gz: e9dcce06b4e1b44abaa7a2c41752f5bd4904f7e7599e015c0cd380f6eaa0360f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: defe6a32f5e30e4a75bad39c54670babfb1c3466588df4d608cbba7e7b17cfcdaa0d3a1e865d488760c4cee35ca79b11cd200b2ee12a59a8193a48eafc148ec2
|
7
|
+
data.tar.gz: 64a40572747d61eeccff6d02babacfc1ad241e479a2e3a31106eb9431810edaee4aedb5e61547e35d037b3b178a81a6430a92a27f95e13d392b92e3b671fc074
|
data/CHANGELOG.md
CHANGED
@@ -193,6 +193,12 @@ module Google
|
|
193
193
|
# @return [String]
|
194
194
|
attr_accessor :project
|
195
195
|
|
196
|
+
# Output only. Overall state of PSC Connections management for this consumer psc
|
197
|
+
# config.
|
198
|
+
# Corresponds to the JSON property `state`
|
199
|
+
# @return [String]
|
200
|
+
attr_accessor :state
|
201
|
+
|
196
202
|
def initialize(**args)
|
197
203
|
update!(**args)
|
198
204
|
end
|
@@ -202,6 +208,7 @@ module Google
|
|
202
208
|
@disable_global_access = args[:disable_global_access] if args.key?(:disable_global_access)
|
203
209
|
@network = args[:network] if args.key?(:network)
|
204
210
|
@project = args[:project] if args.key?(:project)
|
211
|
+
@state = args[:state] if args.key?(:state)
|
205
212
|
end
|
206
213
|
end
|
207
214
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NetworkconnectivityV1
|
18
18
|
# Version of the google-apis-networkconnectivity_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.26.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230524"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -461,6 +461,127 @@ module Google
|
|
461
461
|
execute_or_queue_command(command, &block)
|
462
462
|
end
|
463
463
|
|
464
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
465
|
+
# resource exists and does not have a policy set.
|
466
|
+
# @param [String] resource
|
467
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
468
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
469
|
+
# appropriate value for this field.
|
470
|
+
# @param [Fixnum] options_requested_policy_version
|
471
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
472
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
473
|
+
# rejected. Requests for policies with any conditional role bindings must
|
474
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
475
|
+
# valid value or leave the field unset. The policy in the response might use the
|
476
|
+
# policy version that you specified, or it might use a lower policy version. For
|
477
|
+
# example, if you specify version 3, but the policy has no conditional role
|
478
|
+
# bindings, the response uses version 1. To learn which resources support
|
479
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
480
|
+
# google.com/iam/help/conditions/resource-policies).
|
481
|
+
# @param [String] fields
|
482
|
+
# Selector specifying which fields to include in a partial response.
|
483
|
+
# @param [String] quota_user
|
484
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
485
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
486
|
+
# @param [Google::Apis::RequestOptions] options
|
487
|
+
# Request-specific options
|
488
|
+
#
|
489
|
+
# @yield [result, err] Result & error if block supplied
|
490
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
|
491
|
+
# @yieldparam err [StandardError] error object if request failed
|
492
|
+
#
|
493
|
+
# @return [Google::Apis::NetworkconnectivityV1::Policy]
|
494
|
+
#
|
495
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
496
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
497
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
498
|
+
def get_project_location_global_hub_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
499
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
500
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
|
501
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::Policy
|
502
|
+
command.params['resource'] = resource unless resource.nil?
|
503
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
504
|
+
command.query['fields'] = fields unless fields.nil?
|
505
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
506
|
+
execute_or_queue_command(command, &block)
|
507
|
+
end
|
508
|
+
|
509
|
+
# Sets the access control policy on the specified resource. Replaces any
|
510
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
511
|
+
# PERMISSION_DENIED` errors.
|
512
|
+
# @param [String] resource
|
513
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
514
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
515
|
+
# appropriate value for this field.
|
516
|
+
# @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
|
517
|
+
# @param [String] fields
|
518
|
+
# Selector specifying which fields to include in a partial response.
|
519
|
+
# @param [String] quota_user
|
520
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
521
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
522
|
+
# @param [Google::Apis::RequestOptions] options
|
523
|
+
# Request-specific options
|
524
|
+
#
|
525
|
+
# @yield [result, err] Result & error if block supplied
|
526
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
|
527
|
+
# @yieldparam err [StandardError] error object if request failed
|
528
|
+
#
|
529
|
+
# @return [Google::Apis::NetworkconnectivityV1::Policy]
|
530
|
+
#
|
531
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
532
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
533
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
534
|
+
def set_group_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
535
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
536
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
|
537
|
+
command.request_object = set_iam_policy_request_object
|
538
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
|
539
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::Policy
|
540
|
+
command.params['resource'] = resource unless resource.nil?
|
541
|
+
command.query['fields'] = fields unless fields.nil?
|
542
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
543
|
+
execute_or_queue_command(command, &block)
|
544
|
+
end
|
545
|
+
|
546
|
+
# Returns permissions that a caller has on the specified resource. If the
|
547
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
548
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
549
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
550
|
+
# This operation may "fail open" without warning.
|
551
|
+
# @param [String] resource
|
552
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
553
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
554
|
+
# appropriate value for this field.
|
555
|
+
# @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
556
|
+
# @param [String] fields
|
557
|
+
# Selector specifying which fields to include in a partial response.
|
558
|
+
# @param [String] quota_user
|
559
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
560
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
561
|
+
# @param [Google::Apis::RequestOptions] options
|
562
|
+
# Request-specific options
|
563
|
+
#
|
564
|
+
# @yield [result, err] Result & error if block supplied
|
565
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
|
566
|
+
# @yieldparam err [StandardError] error object if request failed
|
567
|
+
#
|
568
|
+
# @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
|
569
|
+
#
|
570
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
571
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
572
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
573
|
+
def test_group_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
574
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
575
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
|
576
|
+
command.request_object = test_iam_permissions_request_object
|
577
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
|
578
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
|
579
|
+
command.params['resource'] = resource unless resource.nil?
|
580
|
+
command.query['fields'] = fields unless fields.nil?
|
581
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
582
|
+
execute_or_queue_command(command, &block)
|
583
|
+
end
|
584
|
+
|
464
585
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
465
586
|
# resource exists and does not have a policy set.
|
466
587
|
# @param [String] resource
|
@@ -944,56 +1065,6 @@ module Google
|
|
944
1065
|
execute_or_queue_command(command, &block)
|
945
1066
|
end
|
946
1067
|
|
947
|
-
# Creates a new ServiceClass in a given project and location.
|
948
|
-
# @param [String] parent
|
949
|
-
# Required. The parent resource's name of the ServiceClass.
|
950
|
-
# @param [Google::Apis::NetworkconnectivityV1::ServiceClass] service_class_object
|
951
|
-
# @param [String] request_id
|
952
|
-
# Optional. An optional request ID to identify requests. Specify a unique
|
953
|
-
# request ID so that if you must retry your request, the server will know to
|
954
|
-
# ignore the request if it has already been completed. The server will guarantee
|
955
|
-
# that for at least 60 minutes since the first request. For example, consider a
|
956
|
-
# situation where you make an initial request and the request times out. If you
|
957
|
-
# make the request again with the same request ID, the server can check if
|
958
|
-
# original operation with the same request ID was received, and if so, will
|
959
|
-
# ignore the second request. This prevents clients from accidentally creating
|
960
|
-
# duplicate commitments. The request ID must be a valid UUID with the exception
|
961
|
-
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
962
|
-
# @param [String] service_class_id
|
963
|
-
# Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
|
964
|
-
# serviceClasses/foo') See https://google.aip.dev/122#resource-id-segments
|
965
|
-
# Unique per location. If one is not provided, one will be generated.
|
966
|
-
# @param [String] fields
|
967
|
-
# Selector specifying which fields to include in a partial response.
|
968
|
-
# @param [String] quota_user
|
969
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
970
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
971
|
-
# @param [Google::Apis::RequestOptions] options
|
972
|
-
# Request-specific options
|
973
|
-
#
|
974
|
-
# @yield [result, err] Result & error if block supplied
|
975
|
-
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
|
976
|
-
# @yieldparam err [StandardError] error object if request failed
|
977
|
-
#
|
978
|
-
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
|
979
|
-
#
|
980
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
981
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
982
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
983
|
-
def create_project_location_service_class(parent, service_class_object = nil, request_id: nil, service_class_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
984
|
-
command = make_simple_command(:post, 'v1/{+parent}/serviceClasses', options)
|
985
|
-
command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceClass::Representation
|
986
|
-
command.request_object = service_class_object
|
987
|
-
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
988
|
-
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
989
|
-
command.params['parent'] = parent unless parent.nil?
|
990
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
991
|
-
command.query['serviceClassId'] = service_class_id unless service_class_id.nil?
|
992
|
-
command.query['fields'] = fields unless fields.nil?
|
993
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
994
|
-
execute_or_queue_command(command, &block)
|
995
|
-
end
|
996
|
-
|
997
1068
|
# Deletes a single ServiceClass.
|
998
1069
|
# @param [String] name
|
999
1070
|
# Required. The name of the ServiceClass to delete.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-networkconnectivity_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.26.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|