google-apis-managedidentities_v1 0.13.0 → 0.14.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: 14c6fd964f78de0c4fb8e9ee4ac8be3442dc2dabc6386d575588742099596ab4
4
- data.tar.gz: 9dd0c1725734a15caee46999b5914aeac493ba6fa35cd88b4bcccc4ccc148aab
3
+ metadata.gz: 16f7cc5a49196e2e3ae933bc54a0e1f21614b37e1d107cd3fa614a8e5eecc172
4
+ data.tar.gz: 15d3885c89a8b55f6a3ea1739e49af5f207487210522e63dea742f1c4c17fd6f
5
5
  SHA512:
6
- metadata.gz: 62e45d89baf15dd47d2eaf0e6a0282bb6a780c829cb7e4bca2e69e11e4fa4a0e24dc5d423fc19c6f4acdd8e0ca915f12f839c0e0d36a6e257f382ae845020eb2
7
- data.tar.gz: a53fc48911a794488663155956f36f9bd62337064959c402ca32feb374c6f7f6eb0c1ac45cb5105e60fbfe6b38e2074181d38cfee8ac4d2aafe9104343552fd8
6
+ metadata.gz: bca7366460baf5688d21f76af8340dc76e81321b50c38286221b604b20b92918cf1b9d843a68f0099ae8b1db67e225b488c72952d79432f675c550f865ffbd19
7
+ data.tar.gz: ac8de207493b883930969ccadf330bbd652647a2ecae343fbbcff784a1a6d3c8d7403f5db982da9fc9876b1f5817cc34b3d1a02d4b5a0abb129439db29d2f6ec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-managedidentities_v1
2
2
 
3
+ ### v0.14.0 (2021-09-03)
4
+
5
+ * Regenerated from discovery document revision 20210824
6
+
3
7
  ### v0.13.0 (2021-08-28)
4
8
 
5
9
  * Regenerated from discovery document revision 20210819
@@ -1177,6 +1177,38 @@ module Google
1177
1177
  end
1178
1178
  end
1179
1179
 
1180
+ # ListPeeringsResponse is the response message for ListPeerings method.
1181
+ class ListPeeringsResponse
1182
+ include Google::Apis::Core::Hashable
1183
+
1184
+ # Token to retrieve the next page of results, or empty if there are no more
1185
+ # results in the list.
1186
+ # Corresponds to the JSON property `nextPageToken`
1187
+ # @return [String]
1188
+ attr_accessor :next_page_token
1189
+
1190
+ # A list of Managed Identities Service Peerings in the project.
1191
+ # Corresponds to the JSON property `peerings`
1192
+ # @return [Array<Google::Apis::ManagedidentitiesV1::Peering>]
1193
+ attr_accessor :peerings
1194
+
1195
+ # Locations that could not be reached.
1196
+ # Corresponds to the JSON property `unreachable`
1197
+ # @return [Array<String>]
1198
+ attr_accessor :unreachable
1199
+
1200
+ def initialize(**args)
1201
+ update!(**args)
1202
+ end
1203
+
1204
+ # Update properties of this object
1205
+ def update!(**args)
1206
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1207
+ @peerings = args[:peerings] if args.key?(:peerings)
1208
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1209
+ end
1210
+ end
1211
+
1180
1212
  # ListSqlIntegrationsResponse is the response message for ListSqlIntegrations
1181
1213
  # method.
1182
1214
  class ListSqlIntegrationsResponse
@@ -1465,6 +1497,75 @@ module Google
1465
1497
  end
1466
1498
  end
1467
1499
 
1500
+ # Represents a Managed Service for Microsoft Active Directory Peering.
1501
+ class Peering
1502
+ include Google::Apis::Core::Hashable
1503
+
1504
+ # Required. The full names of the Google Compute Engine [networks](/compute/docs/
1505
+ # networks-and-firewalls#networks) to which the instance is connected. Caller
1506
+ # needs to make sure that CIDR subnets do not overlap between networks, else
1507
+ # peering creation will fail.
1508
+ # Corresponds to the JSON property `authorizedNetwork`
1509
+ # @return [String]
1510
+ attr_accessor :authorized_network
1511
+
1512
+ # Output only. The time the instance was created.
1513
+ # Corresponds to the JSON property `createTime`
1514
+ # @return [String]
1515
+ attr_accessor :create_time
1516
+
1517
+ # Required. Full domain resource path for the Managed AD Domain involved in
1518
+ # peering. The resource path should be in the form: `projects/`project_id`/
1519
+ # locations/global/domains/`domain_name``
1520
+ # Corresponds to the JSON property `domainResource`
1521
+ # @return [String]
1522
+ attr_accessor :domain_resource
1523
+
1524
+ # Optional. Resource labels to represent user-provided metadata.
1525
+ # Corresponds to the JSON property `labels`
1526
+ # @return [Hash<String,String>]
1527
+ attr_accessor :labels
1528
+
1529
+ # Output only. Unique name of the peering in this scope including projects and
1530
+ # location using the form: `projects/`project_id`/locations/global/peerings/`
1531
+ # peering_id``.
1532
+ # Corresponds to the JSON property `name`
1533
+ # @return [String]
1534
+ attr_accessor :name
1535
+
1536
+ # Output only. The current state of this Peering.
1537
+ # Corresponds to the JSON property `state`
1538
+ # @return [String]
1539
+ attr_accessor :state
1540
+
1541
+ # Output only. Additional information about the current status of this peering,
1542
+ # if available.
1543
+ # Corresponds to the JSON property `statusMessage`
1544
+ # @return [String]
1545
+ attr_accessor :status_message
1546
+
1547
+ # Output only. Last update time.
1548
+ # Corresponds to the JSON property `updateTime`
1549
+ # @return [String]
1550
+ attr_accessor :update_time
1551
+
1552
+ def initialize(**args)
1553
+ update!(**args)
1554
+ end
1555
+
1556
+ # Update properties of this object
1557
+ def update!(**args)
1558
+ @authorized_network = args[:authorized_network] if args.key?(:authorized_network)
1559
+ @create_time = args[:create_time] if args.key?(:create_time)
1560
+ @domain_resource = args[:domain_resource] if args.key?(:domain_resource)
1561
+ @labels = args[:labels] if args.key?(:labels)
1562
+ @name = args[:name] if args.key?(:name)
1563
+ @state = args[:state] if args.key?(:state)
1564
+ @status_message = args[:status_message] if args.key?(:status_message)
1565
+ @update_time = args[:update_time] if args.key?(:update_time)
1566
+ end
1567
+ end
1568
+
1468
1569
  # An Identity and Access Management (IAM) policy, which specifies access
1469
1570
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1470
1571
  # A `binding` binds one or more `members` to a single `role`. Members can be
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ManagedidentitiesV1
18
18
  # Version of the google-apis-managedidentities_v1 gem
19
- GEM_VERSION = "0.13.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210819"
25
+ REVISION = "20210824"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,12 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class ListPeeringsResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class ListSqlIntegrationsResponse
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
@@ -214,6 +220,12 @@ module Google
214
220
  include Google::Apis::Core::JsonObjectSupport
215
221
  end
216
222
 
223
+ class Peering
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
217
229
  class Policy
218
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
231
 
@@ -582,6 +594,16 @@ module Google
582
594
  end
583
595
  end
584
596
 
597
+ class ListPeeringsResponse
598
+ # @private
599
+ class Representation < Google::Apis::Core::JsonRepresentation
600
+ property :next_page_token, as: 'nextPageToken'
601
+ collection :peerings, as: 'peerings', class: Google::Apis::ManagedidentitiesV1::Peering, decorator: Google::Apis::ManagedidentitiesV1::Peering::Representation
602
+
603
+ collection :unreachable, as: 'unreachable'
604
+ end
605
+ end
606
+
585
607
  class ListSqlIntegrationsResponse
586
608
  # @private
587
609
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -652,6 +674,20 @@ module Google
652
674
  end
653
675
  end
654
676
 
677
+ class Peering
678
+ # @private
679
+ class Representation < Google::Apis::Core::JsonRepresentation
680
+ property :authorized_network, as: 'authorizedNetwork'
681
+ property :create_time, as: 'createTime'
682
+ property :domain_resource, as: 'domainResource'
683
+ hash :labels, as: 'labels'
684
+ property :name, as: 'name'
685
+ property :state, as: 'state'
686
+ property :status_message, as: 'statusMessage'
687
+ property :update_time, as: 'updateTime'
688
+ end
689
+ end
690
+
655
691
  class Policy
656
692
  # @private
657
693
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -903,6 +903,105 @@ module Google
903
903
  execute_or_queue_command(command, &block)
904
904
  end
905
905
 
906
+ # Creates a Peering for Managed AD instance.
907
+ # @param [String] parent
908
+ # Required. Resource project name and location using the form: `projects/`
909
+ # project_id`/locations/global`
910
+ # @param [Google::Apis::ManagedidentitiesV1::Peering] peering_object
911
+ # @param [String] peering_id
912
+ # Required. Peering Id, unique name to identify peering.
913
+ # @param [String] fields
914
+ # Selector specifying which fields to include in a partial response.
915
+ # @param [String] quota_user
916
+ # Available to use for quota purposes for server-side applications. Can be any
917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
918
+ # @param [Google::Apis::RequestOptions] options
919
+ # Request-specific options
920
+ #
921
+ # @yield [result, err] Result & error if block supplied
922
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
923
+ # @yieldparam err [StandardError] error object if request failed
924
+ #
925
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
926
+ #
927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
930
+ def create_project_location_global_peering(parent, peering_object = nil, peering_id: nil, fields: nil, quota_user: nil, options: nil, &block)
931
+ command = make_simple_command(:post, 'v1/{+parent}/peerings', options)
932
+ command.request_representation = Google::Apis::ManagedidentitiesV1::Peering::Representation
933
+ command.request_object = peering_object
934
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
935
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
936
+ command.params['parent'] = parent unless parent.nil?
937
+ command.query['peeringId'] = peering_id unless peering_id.nil?
938
+ command.query['fields'] = fields unless fields.nil?
939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
940
+ execute_or_queue_command(command, &block)
941
+ end
942
+
943
+ # Deletes identified Peering.
944
+ # @param [String] name
945
+ # Required. Peering resource name using the form: `projects/`project_id`/
946
+ # locations/global/peerings/`peering_id``
947
+ # @param [String] fields
948
+ # Selector specifying which fields to include in a partial response.
949
+ # @param [String] quota_user
950
+ # Available to use for quota purposes for server-side applications. Can be any
951
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
952
+ # @param [Google::Apis::RequestOptions] options
953
+ # Request-specific options
954
+ #
955
+ # @yield [result, err] Result & error if block supplied
956
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
957
+ # @yieldparam err [StandardError] error object if request failed
958
+ #
959
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
960
+ #
961
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
962
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
963
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
964
+ def delete_project_location_global_peering(name, fields: nil, quota_user: nil, options: nil, &block)
965
+ command = make_simple_command(:delete, 'v1/{+name}', options)
966
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
967
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
968
+ command.params['name'] = name unless name.nil?
969
+ command.query['fields'] = fields unless fields.nil?
970
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
971
+ execute_or_queue_command(command, &block)
972
+ end
973
+
974
+ # Gets details of a single Peering.
975
+ # @param [String] name
976
+ # Required. Peering resource name using the form: `projects/`project_id`/
977
+ # locations/global/peerings/`peering_id``
978
+ # @param [String] fields
979
+ # Selector specifying which fields to include in a partial response.
980
+ # @param [String] quota_user
981
+ # Available to use for quota purposes for server-side applications. Can be any
982
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
983
+ # @param [Google::Apis::RequestOptions] options
984
+ # Request-specific options
985
+ #
986
+ # @yield [result, err] Result & error if block supplied
987
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Peering] parsed result object
988
+ # @yieldparam err [StandardError] error object if request failed
989
+ #
990
+ # @return [Google::Apis::ManagedidentitiesV1::Peering]
991
+ #
992
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
993
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
994
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
995
+ def get_project_location_global_peering(name, fields: nil, quota_user: nil, options: nil, &block)
996
+ command = make_simple_command(:get, 'v1/{+name}', options)
997
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Peering::Representation
998
+ command.response_class = Google::Apis::ManagedidentitiesV1::Peering
999
+ command.params['name'] = name unless name.nil?
1000
+ command.query['fields'] = fields unless fields.nil?
1001
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1002
+ execute_or_queue_command(command, &block)
1003
+ end
1004
+
906
1005
  # Gets the access control policy for a resource. Returns an empty policy if the
907
1006
  # resource exists and does not have a policy set.
908
1007
  # @param [String] resource
@@ -944,6 +1043,96 @@ module Google
944
1043
  execute_or_queue_command(command, &block)
945
1044
  end
946
1045
 
1046
+ # Lists Peerings in a given project.
1047
+ # @param [String] parent
1048
+ # Required. The resource name of the peering location using the form: `projects/`
1049
+ # project_id`/locations/global`
1050
+ # @param [String] filter
1051
+ # Optional. Filter specifying constraints of a list operation. For example, `
1052
+ # peering.authorized_network="projects/myprojectid/global/networks/mynetwork"`.
1053
+ # @param [String] order_by
1054
+ # Optional. Specifies the ordering of results following syntax at https://cloud.
1055
+ # google.com/apis/design/design_patterns#sorting_order.
1056
+ # @param [Fixnum] page_size
1057
+ # Optional. The maximum number of items to return. If not specified, a default
1058
+ # value of 1000 will be used by the service. Regardless of the page_size value,
1059
+ # the response may include a partial list and a caller should only rely on
1060
+ # response's next_page_token to determine if there are more instances left to be
1061
+ # queried.
1062
+ # @param [String] page_token
1063
+ # Optional. The next_page_token value returned from a previous List request, if
1064
+ # any.
1065
+ # @param [String] fields
1066
+ # Selector specifying which fields to include in a partial response.
1067
+ # @param [String] quota_user
1068
+ # Available to use for quota purposes for server-side applications. Can be any
1069
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1070
+ # @param [Google::Apis::RequestOptions] options
1071
+ # Request-specific options
1072
+ #
1073
+ # @yield [result, err] Result & error if block supplied
1074
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::ListPeeringsResponse] parsed result object
1075
+ # @yieldparam err [StandardError] error object if request failed
1076
+ #
1077
+ # @return [Google::Apis::ManagedidentitiesV1::ListPeeringsResponse]
1078
+ #
1079
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1080
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1081
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1082
+ def list_project_location_global_peerings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1083
+ command = make_simple_command(:get, 'v1/{+parent}/peerings', options)
1084
+ command.response_representation = Google::Apis::ManagedidentitiesV1::ListPeeringsResponse::Representation
1085
+ command.response_class = Google::Apis::ManagedidentitiesV1::ListPeeringsResponse
1086
+ command.params['parent'] = parent unless parent.nil?
1087
+ command.query['filter'] = filter unless filter.nil?
1088
+ command.query['orderBy'] = order_by unless order_by.nil?
1089
+ command.query['pageSize'] = page_size unless page_size.nil?
1090
+ command.query['pageToken'] = page_token unless page_token.nil?
1091
+ command.query['fields'] = fields unless fields.nil?
1092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1093
+ execute_or_queue_command(command, &block)
1094
+ end
1095
+
1096
+ # Updates the labels for specified Peering.
1097
+ # @param [String] name
1098
+ # Output only. Unique name of the peering in this scope including projects and
1099
+ # location using the form: `projects/`project_id`/locations/global/peerings/`
1100
+ # peering_id``.
1101
+ # @param [Google::Apis::ManagedidentitiesV1::Peering] peering_object
1102
+ # @param [String] update_mask
1103
+ # Required. Mask of fields to update. At least one path must be supplied in this
1104
+ # field. The elements of the repeated paths field may only include these fields
1105
+ # from Peering: * `labels`
1106
+ # @param [String] fields
1107
+ # Selector specifying which fields to include in a partial response.
1108
+ # @param [String] quota_user
1109
+ # Available to use for quota purposes for server-side applications. Can be any
1110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1111
+ # @param [Google::Apis::RequestOptions] options
1112
+ # Request-specific options
1113
+ #
1114
+ # @yield [result, err] Result & error if block supplied
1115
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
1116
+ # @yieldparam err [StandardError] error object if request failed
1117
+ #
1118
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
1119
+ #
1120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1123
+ def patch_project_location_global_peering(name, peering_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1124
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1125
+ command.request_representation = Google::Apis::ManagedidentitiesV1::Peering::Representation
1126
+ command.request_object = peering_object
1127
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
1128
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
1129
+ command.params['name'] = name unless name.nil?
1130
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1131
+ command.query['fields'] = fields unless fields.nil?
1132
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1133
+ execute_or_queue_command(command, &block)
1134
+ end
1135
+
947
1136
  # Sets the access control policy on the specified resource. Replaces any
948
1137
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
949
1138
  # PERMISSION_DENIED` errors.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-managedidentities_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.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: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -59,7 +59,7 @@ licenses:
59
59
  metadata:
60
60
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
61
61
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1/CHANGELOG.md
62
- documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1/v0.13.0
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1/v0.14.0
63
63
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1
64
64
  post_install_message:
65
65
  rdoc_options: []