google-apis-iam_v1 0.60.0 → 0.61.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/iam_v1/classes.rb +0 -60
- data/lib/google/apis/iam_v1/gem_version.rb +2 -2
- data/lib/google/apis/iam_v1/representations.rb +0 -18
- data/lib/google/apis/iam_v1/service.rb +12 -42
- 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: 2dbcdce3480fdc14486e83fcdfcba792325d245e797c8a9891669d8aa338d883
|
4
|
+
data.tar.gz: b98370bd02c9543651fc242bfb757666d751297e53b30437997a001bfabf2e2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81e10f281438044cbaa5a3011ca582a6e0ac0766fb7af019725a222175d9cf1f8a8500607436c24886d5b1694d6835188f92aeb6d289590037fd9d19debf2fb0
|
7
|
+
data.tar.gz: 3e1e5aabf0cb4997d9d8e32930d3b2c83963b3735e9935c8309342e1f62fa1f8c269b140c765f2936482e52477f8837161e8c9e13277c587c5fccabbe8b27b6e
|
data/CHANGELOG.md
CHANGED
@@ -1641,46 +1641,6 @@ module Google
|
|
1641
1641
|
end
|
1642
1642
|
end
|
1643
1643
|
|
1644
|
-
# The service account key patch request.
|
1645
|
-
class PatchServiceAccountKeyRequest
|
1646
|
-
include Google::Apis::Core::Hashable
|
1647
|
-
|
1648
|
-
# Represents a service account key. A service account has two sets of key-pairs:
|
1649
|
-
# user-managed, and system-managed. User-managed key-pairs can be created and
|
1650
|
-
# deleted by users. Users are responsible for rotating these keys periodically
|
1651
|
-
# to ensure security of their service accounts. Users retain the private key of
|
1652
|
-
# these key-pairs, and Google retains ONLY the public key. System-managed keys
|
1653
|
-
# are automatically rotated by Google, and are used for signing for a maximum of
|
1654
|
-
# two weeks. The rotation process is probabilistic, and usage of the new key
|
1655
|
-
# will gradually ramp up and down over the key's lifetime. If you cache the
|
1656
|
-
# public key set for a service account, we recommend that you update the cache
|
1657
|
-
# every 15 minutes. User-managed keys can be added and removed at any time, so
|
1658
|
-
# it is important to update the cache frequently. For Google-managed keys,
|
1659
|
-
# Google will publish a key at least 6 hours before it is first used for signing
|
1660
|
-
# and will keep publishing it for at least 6 hours after it was last used for
|
1661
|
-
# signing. Public keys for all service accounts are also published at the OAuth2
|
1662
|
-
# Service Account API.
|
1663
|
-
# Corresponds to the JSON property `serviceAccountKey`
|
1664
|
-
# @return [Google::Apis::IamV1::ServiceAccountKey]
|
1665
|
-
attr_accessor :service_account_key
|
1666
|
-
|
1667
|
-
# Required. The update mask to apply to the service account key. Only the
|
1668
|
-
# following fields are eligible for patching: - contact - description
|
1669
|
-
# Corresponds to the JSON property `updateMask`
|
1670
|
-
# @return [String]
|
1671
|
-
attr_accessor :update_mask
|
1672
|
-
|
1673
|
-
def initialize(**args)
|
1674
|
-
update!(**args)
|
1675
|
-
end
|
1676
|
-
|
1677
|
-
# Update properties of this object
|
1678
|
-
def update!(**args)
|
1679
|
-
@service_account_key = args[:service_account_key] if args.key?(:service_account_key)
|
1680
|
-
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
1681
|
-
end
|
1682
|
-
end
|
1683
|
-
|
1684
1644
|
# The service account patch request. You can patch only the `display_name` and `
|
1685
1645
|
# description` fields. You must use the `update_mask` field to specify which of
|
1686
1646
|
# these fields you want to patch. Only the fields specified in the request are
|
@@ -2321,23 +2281,6 @@ module Google
|
|
2321
2281
|
class ServiceAccountKey
|
2322
2282
|
include Google::Apis::Core::Hashable
|
2323
2283
|
|
2324
|
-
# Optional. A user provided email address as the point of contact for this
|
2325
|
-
# service account key. Must be an email address. Limit 64 characters.
|
2326
|
-
# Corresponds to the JSON property `contact`
|
2327
|
-
# @return [String]
|
2328
|
-
attr_accessor :contact
|
2329
|
-
|
2330
|
-
# Output only. The cloud identity that created this service account key.
|
2331
|
-
# Populated automatically when the key is created and not editable by the user.
|
2332
|
-
# Corresponds to the JSON property `creator`
|
2333
|
-
# @return [String]
|
2334
|
-
attr_accessor :creator
|
2335
|
-
|
2336
|
-
# Optional. A user provided description of this service account key.
|
2337
|
-
# Corresponds to the JSON property `description`
|
2338
|
-
# @return [String]
|
2339
|
-
attr_accessor :description
|
2340
|
-
|
2341
2284
|
# Output only. optional. If the key is disabled, it may have a DisableReason
|
2342
2285
|
# describing why it was disabled.
|
2343
2286
|
# Corresponds to the JSON property `disableReason`
|
@@ -2421,9 +2364,6 @@ module Google
|
|
2421
2364
|
|
2422
2365
|
# Update properties of this object
|
2423
2366
|
def update!(**args)
|
2424
|
-
@contact = args[:contact] if args.key?(:contact)
|
2425
|
-
@creator = args[:creator] if args.key?(:creator)
|
2426
|
-
@description = args[:description] if args.key?(:description)
|
2427
2367
|
@disable_reason = args[:disable_reason] if args.key?(:disable_reason)
|
2428
2368
|
@disabled = args[:disabled] if args.key?(:disabled)
|
2429
2369
|
@extended_status = args[:extended_status] if args.key?(:extended_status)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module IamV1
|
18
18
|
# Version of the google-apis-iam_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.61.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240722"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -310,12 +310,6 @@ module Google
|
|
310
310
|
include Google::Apis::Core::JsonObjectSupport
|
311
311
|
end
|
312
312
|
|
313
|
-
class PatchServiceAccountKeyRequest
|
314
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
-
|
316
|
-
include Google::Apis::Core::JsonObjectSupport
|
317
|
-
end
|
318
|
-
|
319
313
|
class PatchServiceAccountRequest
|
320
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
315
|
|
@@ -1011,15 +1005,6 @@ module Google
|
|
1011
1005
|
end
|
1012
1006
|
end
|
1013
1007
|
|
1014
|
-
class PatchServiceAccountKeyRequest
|
1015
|
-
# @private
|
1016
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1017
|
-
property :service_account_key, as: 'serviceAccountKey', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
|
1018
|
-
|
1019
|
-
property :update_mask, as: 'updateMask'
|
1020
|
-
end
|
1021
|
-
end
|
1022
|
-
|
1023
1008
|
class PatchServiceAccountRequest
|
1024
1009
|
# @private
|
1025
1010
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1169,9 +1154,6 @@ module Google
|
|
1169
1154
|
class ServiceAccountKey
|
1170
1155
|
# @private
|
1171
1156
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1172
|
-
property :contact, as: 'contact'
|
1173
|
-
property :creator, as: 'creator'
|
1174
|
-
property :description, as: 'description'
|
1175
1157
|
property :disable_reason, as: 'disableReason'
|
1176
1158
|
property :disabled, as: 'disabled'
|
1177
1159
|
collection :extended_status, as: 'extendedStatus', class: Google::Apis::IamV1::ExtendedStatus, decorator: Google::Apis::IamV1::ExtendedStatus::Representation
|
@@ -1112,10 +1112,12 @@ module Google
|
|
1112
1112
|
# occur immediately: * You cannot bind a principal to the custom role in an IAM
|
1113
1113
|
# Policy. * Existing bindings to the custom role are not changed, but they have
|
1114
1114
|
# no effect. * By default, the response from ListRoles does not include the
|
1115
|
-
# custom role.
|
1116
|
-
#
|
1117
|
-
#
|
1118
|
-
#
|
1115
|
+
# custom role. A deleted custom role still counts toward the [custom role limit](
|
1116
|
+
# /iam/quotas#limits) until it is permanently deleted. You have 7 days to
|
1117
|
+
# undelete the custom role. After 7 days, the following changes occur: * The
|
1118
|
+
# custom role is permanently deleted and cannot be recovered. * If an IAM policy
|
1119
|
+
# contains a binding to the custom role, the binding is permanently removed. *
|
1120
|
+
# The custom role no longer counts toward your custom role limit.
|
1119
1121
|
# @param [String] name
|
1120
1122
|
# The `name` parameter's value depends on the target resource for the request,
|
1121
1123
|
# namely [projects](https://cloud.google.com/iam/docs/reference/rest/v1/projects.
|
@@ -2658,10 +2660,12 @@ module Google
|
|
2658
2660
|
# occur immediately: * You cannot bind a principal to the custom role in an IAM
|
2659
2661
|
# Policy. * Existing bindings to the custom role are not changed, but they have
|
2660
2662
|
# no effect. * By default, the response from ListRoles does not include the
|
2661
|
-
# custom role.
|
2662
|
-
#
|
2663
|
-
#
|
2664
|
-
#
|
2663
|
+
# custom role. A deleted custom role still counts toward the [custom role limit](
|
2664
|
+
# /iam/quotas#limits) until it is permanently deleted. You have 7 days to
|
2665
|
+
# undelete the custom role. After 7 days, the following changes occur: * The
|
2666
|
+
# custom role is permanently deleted and cannot be recovered. * If an IAM policy
|
2667
|
+
# contains a binding to the custom role, the binding is permanently removed. *
|
2668
|
+
# The custom role no longer counts toward your custom role limit.
|
2665
2669
|
# @param [String] name
|
2666
2670
|
# The `name` parameter's value depends on the target resource for the request,
|
2667
2671
|
# namely [projects](https://cloud.google.com/iam/docs/reference/rest/v1/projects.
|
@@ -3806,40 +3810,6 @@ module Google
|
|
3806
3810
|
execute_or_queue_command(command, &block)
|
3807
3811
|
end
|
3808
3812
|
|
3809
|
-
# Patches a ServiceAccountKey.
|
3810
|
-
# @param [String] name
|
3811
|
-
# The resource name of the service account key in the following format `projects/
|
3812
|
-
# `PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``.
|
3813
|
-
# @param [Google::Apis::IamV1::PatchServiceAccountKeyRequest] patch_service_account_key_request_object
|
3814
|
-
# @param [String] fields
|
3815
|
-
# Selector specifying which fields to include in a partial response.
|
3816
|
-
# @param [String] quota_user
|
3817
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
3818
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3819
|
-
# @param [Google::Apis::RequestOptions] options
|
3820
|
-
# Request-specific options
|
3821
|
-
#
|
3822
|
-
# @yield [result, err] Result & error if block supplied
|
3823
|
-
# @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
|
3824
|
-
# @yieldparam err [StandardError] error object if request failed
|
3825
|
-
#
|
3826
|
-
# @return [Google::Apis::IamV1::ServiceAccountKey]
|
3827
|
-
#
|
3828
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3829
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3830
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3831
|
-
def patch_service_account_key(name, patch_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3832
|
-
command = make_simple_command(:post, 'v1/{+name}:patch', options)
|
3833
|
-
command.request_representation = Google::Apis::IamV1::PatchServiceAccountKeyRequest::Representation
|
3834
|
-
command.request_object = patch_service_account_key_request_object
|
3835
|
-
command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
|
3836
|
-
command.response_class = Google::Apis::IamV1::ServiceAccountKey
|
3837
|
-
command.params['name'] = name unless name.nil?
|
3838
|
-
command.query['fields'] = fields unless fields.nil?
|
3839
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3840
|
-
execute_or_queue_command(command, &block)
|
3841
|
-
end
|
3842
|
-
|
3843
3813
|
# Uploads the public key portion of a key pair that you manage, and associates
|
3844
3814
|
# the public key with a ServiceAccount. After you upload the public key, you can
|
3845
3815
|
# use the private key from the key pair as a service account key.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-iam_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.61.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-
|
11
|
+
date: 2024-07-25 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/main/generated/google-apis-iam_v1/CHANGELOG.md
|
62
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.
|
62
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.61.0
|
63
63
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-iam_v1
|
64
64
|
post_install_message:
|
65
65
|
rdoc_options: []
|