google-apis-networkconnectivity_v1 0.40.0 → 0.41.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98faf7dfb26c98c780fe27093be21e67fc3e854a844aa7a741a54b55856f6c46
4
- data.tar.gz: 3fda9bd8bd7d8178653570c98fa24d7acd62113949d54cf5a827e71505d097d3
3
+ metadata.gz: 809f3e47d3f3e706dfcc12e40b1e83dc243d359ccc13795d12535e59e88cd052
4
+ data.tar.gz: 1ce90de86fa54d412df0fda5b8b480c61f7ff712bff725459f9e13b8fdd64b00
5
5
  SHA512:
6
- metadata.gz: 8dcd43882b9584efc1b2c95b778c52cb1f9ccaeb35a2fcdb28c8f73f2705adbf111ac61ceaddb612b431509c4640ceb3f30a853dbca24ae8202b3a256067ba4f
7
- data.tar.gz: 11bb2cb1f6e17137eafcf16c3a68d4f7b1ba56bdcd4aefdac36d688d7d42ce4b07f3f5fc556769382e1ea45a50f24d87b512ccb6c679deef36a293c7f3ced355
6
+ metadata.gz: a279841db02caed6b78b102a112053781bc2a108b497b320404ca4b320a650e3b7ca6100110a8e6dc56151b0517c179608f7cb90bb81ec418c2c61eeabd0ce86
7
+ data.tar.gz: d0f60795efbc8b8db4cd76245dfab15976e52dff13e90b888ab9634b9e0ddb7512f44b1dbca9f7af85c91b1f64f318651a01b06305b58e3ed80d23ee555cd434
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-networkconnectivity_v1
2
2
 
3
+ ### v0.41.0 (2024-05-19)
4
+
5
+ * Regenerated from discovery document revision 20240506
6
+ * Regenerated using generator version 0.15.0
7
+
3
8
  ### v0.40.0 (2024-04-28)
4
9
 
5
10
  * Regenerated from discovery document revision 20240423
@@ -151,6 +151,32 @@ module Google
151
151
  end
152
152
  end
153
153
 
154
+ # The auto-accept setting for a group controls whether proposed spokes are
155
+ # automatically attached to the hub. If auto-accept is enabled, the spoke
156
+ # immediately is attached to the hub and becomes part of the group. In this case,
157
+ # the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke
158
+ # goes to the INACTIVE state, and it must be reviewed and accepted by a hub
159
+ # administrator.
160
+ class AutoAccept
161
+ include Google::Apis::Core::Hashable
162
+
163
+ # A list of project ids or project numbers for which you want to enable auto-
164
+ # accept. The auto-accept setting is applied to spokes being created or updated
165
+ # in these projects.
166
+ # Corresponds to the JSON property `autoAcceptProjects`
167
+ # @return [Array<String>]
168
+ attr_accessor :auto_accept_projects
169
+
170
+ def initialize(**args)
171
+ update!(**args)
172
+ end
173
+
174
+ # Update properties of this object
175
+ def update!(**args)
176
+ @auto_accept_projects = args[:auto_accept_projects] if args.key?(:auto_accept_projects)
177
+ end
178
+ end
179
+
154
180
  # Associates `members`, or principals, with a `role`.
155
181
  class Binding
156
182
  include Google::Apis::Core::Hashable
@@ -719,6 +745,16 @@ module Google
719
745
  class Group
720
746
  include Google::Apis::Core::Hashable
721
747
 
748
+ # The auto-accept setting for a group controls whether proposed spokes are
749
+ # automatically attached to the hub. If auto-accept is enabled, the spoke
750
+ # immediately is attached to the hub and becomes part of the group. In this case,
751
+ # the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke
752
+ # goes to the INACTIVE state, and it must be reviewed and accepted by a hub
753
+ # administrator.
754
+ # Corresponds to the JSON property `autoAccept`
755
+ # @return [Google::Apis::NetworkconnectivityV1::AutoAccept]
756
+ attr_accessor :auto_accept
757
+
722
758
  # Output only. The time the group was created.
723
759
  # Corresponds to the JSON property `createTime`
724
760
  # @return [String]
@@ -743,6 +779,13 @@ module Google
743
779
  # @return [String]
744
780
  attr_accessor :name
745
781
 
782
+ # Output only. The name of the route table that corresponds to this group. They
783
+ # use the following form: `projects/`project_number`/locations/global/hubs/`
784
+ # hub_id`/routeTables/`route_table_id``
785
+ # Corresponds to the JSON property `routeTable`
786
+ # @return [String]
787
+ attr_accessor :route_table
788
+
746
789
  # Output only. The current lifecycle state of this group.
747
790
  # Corresponds to the JSON property `state`
748
791
  # @return [String]
@@ -766,10 +809,12 @@ module Google
766
809
 
767
810
  # Update properties of this object
768
811
  def update!(**args)
812
+ @auto_accept = args[:auto_accept] if args.key?(:auto_accept)
769
813
  @create_time = args[:create_time] if args.key?(:create_time)
770
814
  @description = args[:description] if args.key?(:description)
771
815
  @labels = args[:labels] if args.key?(:labels)
772
816
  @name = args[:name] if args.key?(:name)
817
+ @route_table = args[:route_table] if args.key?(:route_table)
773
818
  @state = args[:state] if args.key?(:state)
774
819
  @uid = args[:uid] if args.key?(:uid)
775
820
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -795,6 +840,15 @@ module Google
795
840
  # @return [String]
796
841
  attr_accessor :description
797
842
 
843
+ # Optional. Whether Private Service Connect transitivity is enabled for the hub.
844
+ # If true, Private Service Connect endpoints in VPC spokes attached to the hub
845
+ # are made accessible to other VPC spokes attached to the hub. The default value
846
+ # is false.
847
+ # Corresponds to the JSON property `exportPsc`
848
+ # @return [Boolean]
849
+ attr_accessor :export_psc
850
+ alias_method :export_psc?, :export_psc
851
+
798
852
  # Optional labels in key-value pair format. For more information about labels,
799
853
  # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
800
854
  # creating-managing-labels#requirements).
@@ -808,6 +862,21 @@ module Google
808
862
  # @return [String]
809
863
  attr_accessor :name
810
864
 
865
+ # Optional. The policy mode of this hub. This field can be either PRESET or
866
+ # CUSTOM. If unspecified, the policy_mode defaults to PRESET.
867
+ # Corresponds to the JSON property `policyMode`
868
+ # @return [String]
869
+ attr_accessor :policy_mode
870
+
871
+ # Optional. The topology implemented in this hub. Currently, this field is only
872
+ # used when policy_mode = PRESET. The available preset topologies are MESH and
873
+ # STAR. If preset_topology is unspecified and policy_mode = PRESET, the
874
+ # preset_topology defaults to MESH. When policy_mode = CUSTOM, the
875
+ # preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
876
+ # Corresponds to the JSON property `presetTopology`
877
+ # @return [String]
878
+ attr_accessor :preset_topology
879
+
811
880
  # Output only. The route tables that belong to this hub. They use the following
812
881
  # form: `projects/`project_number`/locations/global/hubs/`hub_id`/routeTables/`
813
882
  # route_table_id`` This field is read-only. Network Connectivity Center
@@ -856,8 +925,11 @@ module Google
856
925
  def update!(**args)
857
926
  @create_time = args[:create_time] if args.key?(:create_time)
858
927
  @description = args[:description] if args.key?(:description)
928
+ @export_psc = args[:export_psc] if args.key?(:export_psc)
859
929
  @labels = args[:labels] if args.key?(:labels)
860
930
  @name = args[:name] if args.key?(:name)
931
+ @policy_mode = args[:policy_mode] if args.key?(:policy_mode)
932
+ @preset_topology = args[:preset_topology] if args.key?(:preset_topology)
861
933
  @route_tables = args[:route_tables] if args.key?(:route_tables)
862
934
  @routing_vpcs = args[:routing_vpcs] if args.key?(:routing_vpcs)
863
935
  @spoke_summary = args[:spoke_summary] if args.key?(:spoke_summary)
@@ -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.40.0"
19
+ GEM_VERSION = "0.41.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240423"
25
+ REVISION = "20240506"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class AutoAccept
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class Binding
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -463,6 +469,13 @@ module Google
463
469
  end
464
470
  end
465
471
 
472
+ class AutoAccept
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ collection :auto_accept_projects, as: 'autoAcceptProjects'
476
+ end
477
+ end
478
+
466
479
  class Binding
467
480
  # @private
468
481
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -579,10 +592,13 @@ module Google
579
592
  class Group
580
593
  # @private
581
594
  class Representation < Google::Apis::Core::JsonRepresentation
595
+ property :auto_accept, as: 'autoAccept', class: Google::Apis::NetworkconnectivityV1::AutoAccept, decorator: Google::Apis::NetworkconnectivityV1::AutoAccept::Representation
596
+
582
597
  property :create_time, as: 'createTime'
583
598
  property :description, as: 'description'
584
599
  hash :labels, as: 'labels'
585
600
  property :name, as: 'name'
601
+ property :route_table, as: 'routeTable'
586
602
  property :state, as: 'state'
587
603
  property :uid, as: 'uid'
588
604
  property :update_time, as: 'updateTime'
@@ -594,8 +610,11 @@ module Google
594
610
  class Representation < Google::Apis::Core::JsonRepresentation
595
611
  property :create_time, as: 'createTime'
596
612
  property :description, as: 'description'
613
+ property :export_psc, as: 'exportPsc'
597
614
  hash :labels, as: 'labels'
598
615
  property :name, as: 'name'
616
+ property :policy_mode, as: 'policyMode'
617
+ property :preset_topology, as: 'presetTopology'
599
618
  collection :route_tables, as: 'routeTables'
600
619
  collection :routing_vpcs, as: 'routingVpcs', class: Google::Apis::NetworkconnectivityV1::RoutingVpc, decorator: Google::Apis::NetworkconnectivityV1::RoutingVpc::Representation
601
620
 
@@ -705,6 +705,61 @@ module Google
705
705
  execute_or_queue_command(command, &block)
706
706
  end
707
707
 
708
+ # Updates the parameters of a Network Connectivity Center group.
709
+ # @param [String] name
710
+ # Immutable. The name of the group. Group names must be unique. They use the
711
+ # following form: `projects/`project_number`/locations/global/hubs/`hub`/groups/`
712
+ # group_id``
713
+ # @param [Google::Apis::NetworkconnectivityV1::Group] group_object
714
+ # @param [String] request_id
715
+ # Optional. A request ID to identify requests. Specify a unique request ID so
716
+ # that if you must retry your request, the server knows to ignore the request if
717
+ # it has already been completed. The server guarantees that a request doesn't
718
+ # result in creation of duplicate commitments for at least 60 minutes. For
719
+ # example, consider a situation where you make an initial request and the
720
+ # request times out. If you make the request again with the same request ID, the
721
+ # server can check to see whether the original operation was received. If it was,
722
+ # the server ignores the second request. This behavior prevents clients from
723
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
724
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
725
+ # 000000000000).
726
+ # @param [String] update_mask
727
+ # Optional. In the case of an update to an existing group, field mask is used to
728
+ # specify the fields to be overwritten. The fields specified in the update_mask
729
+ # are relative to the resource, not the full request. A field is overwritten if
730
+ # it is in the mask. If the user does not provide a mask, then all fields are
731
+ # overwritten.
732
+ # @param [String] fields
733
+ # Selector specifying which fields to include in a partial response.
734
+ # @param [String] quota_user
735
+ # Available to use for quota purposes for server-side applications. Can be any
736
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
737
+ # @param [Google::Apis::RequestOptions] options
738
+ # Request-specific options
739
+ #
740
+ # @yield [result, err] Result & error if block supplied
741
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
742
+ # @yieldparam err [StandardError] error object if request failed
743
+ #
744
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
745
+ #
746
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
749
+ def patch_project_location_global_hub_group(name, group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
750
+ command = make_simple_command(:patch, 'v1/{+name}', options)
751
+ command.request_representation = Google::Apis::NetworkconnectivityV1::Group::Representation
752
+ command.request_object = group_object
753
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
754
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
755
+ command.params['name'] = name unless name.nil?
756
+ command.query['requestId'] = request_id unless request_id.nil?
757
+ command.query['updateMask'] = update_mask unless update_mask.nil?
758
+ command.query['fields'] = fields unless fields.nil?
759
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
760
+ execute_or_queue_command(command, &block)
761
+ end
762
+
708
763
  # Sets the access control policy on the specified resource. Replaces any
709
764
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
710
765
  # PERMISSION_DENIED` errors.
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.40.0
4
+ version: 0.41.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: 2024-04-28 00:00:00.000000000 Z
11
+ date: 2024-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.40.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.41.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: []