google-apis-iam_v1 0.55.0 → 0.56.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.
@@ -383,8 +383,9 @@ module Google
383
383
  execute_or_queue_command(command, &block)
384
384
  end
385
385
 
386
- # Returns the caller's permissions on the WorkforcePool. If the pool does not
387
- # exist, this will return an empty set of permissions, not a `NOT_FOUND` error.
386
+ # Returns the caller's permissions on the WorkforcePool. If the pool doesn't
387
+ # exist, this call returns an empty set of permissions. It doesn't return a `
388
+ # NOT_FOUND` error.
388
389
  # @param [String] resource
389
390
  # REQUIRED: The resource for which the policy detail is being requested. See [
390
391
  # Resource names](https://cloud.google.com/apis/design/resource_names) for the
@@ -526,7 +527,7 @@ module Google
526
527
  end
527
528
 
528
529
  # Deletes a WorkforcePoolProvider. Deleting a provider does not revoke
529
- # credentials that have already been\ issued; they continue to grant access. You
530
+ # credentials that have already been issued; they continue to grant access. You
530
531
  # can undelete a provider for 30 days. After 30 days, deletion is permanent. You
531
532
  # cannot update deleted providers. However, you can view and list them.
532
533
  # @param [String] name
@@ -947,16 +948,20 @@ module Google
947
948
 
948
949
  # Deletes a WorkforcePoolSubject. Subject must not already be in a deleted state.
949
950
  # A WorkforcePoolSubject is automatically created the first time an external
950
- # credential is exchanged for a Google Cloud credential with a mapped `google.
951
- # subject` attribute. There is no path to manually create WorkforcePoolSubjects.
952
- # Once deleted, the WorkforcePoolSubject may not be used for 30 days. After 30
953
- # days, the WorkforcePoolSubject will be deleted forever and can be reused in
954
- # token exchanges with Google Cloud STS. This will automatically create a new
955
- # WorkforcePoolSubject that is independent of the previously deleted
956
- # WorkforcePoolSubject with the same google.subject value.
951
+ # credential is exchanged for a Google Cloud credential using a mapped `google.
952
+ # subject` attribute. There is no endpoint to manually create a
953
+ # WorkforcePoolSubject. For 30 days after a WorkforcePoolSubject is deleted,
954
+ # using the same `google.subject` attribute in token exchanges with Google Cloud
955
+ # STS fails. Call UndeleteWorkforcePoolSubject to undelete a
956
+ # WorkforcePoolSubject that has been deleted, within within 30 days of deleting
957
+ # it. After 30 days, the WorkforcePoolSubject is permanently deleted. At this
958
+ # point, a token exchange with Google Cloud STS that uses the same mapped `
959
+ # google.subject` attribute automatically creates a new WorkforcePoolSubject
960
+ # that is unrelated to the previously deleted WorkforcePoolSubject but has the
961
+ # same `google.subject` value.
957
962
  # @param [String] name
958
963
  # Required. The resource name of the WorkforcePoolSubject. Special characters,
959
- # like '/' and ':', must be escaped, because all URLs need to conform to the "
964
+ # like `/` and `:`, must be escaped, because all URLs need to conform to the "
960
965
  # When to Escape and Unescape" section of [RFC3986](https://www.ietf.org/rfc/
961
966
  # rfc2396.txt). Format: `locations/`location`/workforcePools/`workforce_pool_id`/
962
967
  # subjects/`subject_id``
@@ -991,7 +996,7 @@ module Google
991
996
  # ago.
992
997
  # @param [String] name
993
998
  # Required. The resource name of the WorkforcePoolSubject. Special characters,
994
- # like '/' and ':', must be escaped, because all URLs need to conform to the "
999
+ # like `/` and `:`, must be escaped, because all URLs need to conform to the "
995
1000
  # When to Escape and Unescape" section of [RFC3986](https://www.ietf.org/rfc/
996
1001
  # rfc2396.txt). Format: `locations/`location`/workforcePools/`workforce_pool_id`/
997
1002
  # subjects/`subject_id``
@@ -1408,6 +1413,403 @@ module Google
1408
1413
  execute_or_queue_command(command, &block)
1409
1414
  end
1410
1415
 
1416
+ # Creates a new OauthClient. You cannot reuse the name of a deleted oauth client
1417
+ # until 30 days after deletion.
1418
+ # @param [String] parent
1419
+ # Required. The parent resource to create the oauth client in. The only
1420
+ # supported location is `global`.
1421
+ # @param [Google::Apis::IamV1::OauthClient] oauth_client_object
1422
+ # @param [String] oauth_client_id
1423
+ # Required. The ID to use for the oauth client, which becomes the final
1424
+ # component of the resource name. This value should be a string of 6 to 63
1425
+ # lowercase letters, digits, or hyphens. It must start with a letter, and cannot
1426
+ # have a trailing hyphen. The prefix `gcp-` is reserved for use by Google, and
1427
+ # may not be specified.
1428
+ # @param [String] fields
1429
+ # Selector specifying which fields to include in a partial response.
1430
+ # @param [String] quota_user
1431
+ # Available to use for quota purposes for server-side applications. Can be any
1432
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1433
+ # @param [Google::Apis::RequestOptions] options
1434
+ # Request-specific options
1435
+ #
1436
+ # @yield [result, err] Result & error if block supplied
1437
+ # @yieldparam result [Google::Apis::IamV1::OauthClient] parsed result object
1438
+ # @yieldparam err [StandardError] error object if request failed
1439
+ #
1440
+ # @return [Google::Apis::IamV1::OauthClient]
1441
+ #
1442
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1443
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1444
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1445
+ def create_project_location_oauth_client(parent, oauth_client_object = nil, oauth_client_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1446
+ command = make_simple_command(:post, 'v1/{+parent}/oauthClients', options)
1447
+ command.request_representation = Google::Apis::IamV1::OauthClient::Representation
1448
+ command.request_object = oauth_client_object
1449
+ command.response_representation = Google::Apis::IamV1::OauthClient::Representation
1450
+ command.response_class = Google::Apis::IamV1::OauthClient
1451
+ command.params['parent'] = parent unless parent.nil?
1452
+ command.query['oauthClientId'] = oauth_client_id unless oauth_client_id.nil?
1453
+ command.query['fields'] = fields unless fields.nil?
1454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1455
+ execute_or_queue_command(command, &block)
1456
+ end
1457
+
1458
+ # Deletes a OauthClient. You cannot use a deleted oauth client. However,
1459
+ # deletion does not revoke access tokens that have already been issued; they
1460
+ # continue to grant access. Deletion does revoke refresh tokens that have
1461
+ # already been issued; They cannot be used to renew an access token. If the
1462
+ # oauth client is undeleted, and the refresh tokens are not expired, they are
1463
+ # valid for token exchange again. You can undelete an oauth client for 30 days.
1464
+ # After 30 days, deletion is permanent. You cannot update deleted oauth clients.
1465
+ # However, you can view and list them.
1466
+ # @param [String] name
1467
+ # Required. The name of the oauth client to delete. Format: `projects/`project`/
1468
+ # locations/`location`/oauthClients/`oauth_client``.
1469
+ # @param [String] fields
1470
+ # Selector specifying which fields to include in a partial response.
1471
+ # @param [String] quota_user
1472
+ # Available to use for quota purposes for server-side applications. Can be any
1473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1474
+ # @param [Google::Apis::RequestOptions] options
1475
+ # Request-specific options
1476
+ #
1477
+ # @yield [result, err] Result & error if block supplied
1478
+ # @yieldparam result [Google::Apis::IamV1::OauthClient] parsed result object
1479
+ # @yieldparam err [StandardError] error object if request failed
1480
+ #
1481
+ # @return [Google::Apis::IamV1::OauthClient]
1482
+ #
1483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1486
+ def delete_project_location_oauth_client(name, fields: nil, quota_user: nil, options: nil, &block)
1487
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1488
+ command.response_representation = Google::Apis::IamV1::OauthClient::Representation
1489
+ command.response_class = Google::Apis::IamV1::OauthClient
1490
+ command.params['name'] = name unless name.nil?
1491
+ command.query['fields'] = fields unless fields.nil?
1492
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1493
+ execute_or_queue_command(command, &block)
1494
+ end
1495
+
1496
+ # Gets an individual OauthClient.
1497
+ # @param [String] name
1498
+ # Required. The name of the oauth client to retrieve. Format: `projects/`project`
1499
+ # /locations/`location`/oauthClients/`oauth_client``.
1500
+ # @param [String] fields
1501
+ # Selector specifying which fields to include in a partial response.
1502
+ # @param [String] quota_user
1503
+ # Available to use for quota purposes for server-side applications. Can be any
1504
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1505
+ # @param [Google::Apis::RequestOptions] options
1506
+ # Request-specific options
1507
+ #
1508
+ # @yield [result, err] Result & error if block supplied
1509
+ # @yieldparam result [Google::Apis::IamV1::OauthClient] parsed result object
1510
+ # @yieldparam err [StandardError] error object if request failed
1511
+ #
1512
+ # @return [Google::Apis::IamV1::OauthClient]
1513
+ #
1514
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1515
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1516
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1517
+ def get_project_location_oauth_client(name, fields: nil, quota_user: nil, options: nil, &block)
1518
+ command = make_simple_command(:get, 'v1/{+name}', options)
1519
+ command.response_representation = Google::Apis::IamV1::OauthClient::Representation
1520
+ command.response_class = Google::Apis::IamV1::OauthClient
1521
+ command.params['name'] = name unless name.nil?
1522
+ command.query['fields'] = fields unless fields.nil?
1523
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1524
+ execute_or_queue_command(command, &block)
1525
+ end
1526
+
1527
+ # Lists all non-deleted OauthClientss in a project. If `show_deleted` is set to `
1528
+ # true`, then deleted oauth clients are also listed.
1529
+ # @param [String] parent
1530
+ # Required. The parent to list oauth clients for.
1531
+ # @param [Fixnum] page_size
1532
+ # Optional. The maximum number of oauth clients to return. If unspecified, at
1533
+ # most 50 oauth clients will be returned. The maximum value is 100; values above
1534
+ # 100 are truncated to 100.
1535
+ # @param [String] page_token
1536
+ # Optional. A page token, received from a previous `ListOauthClients` call.
1537
+ # Provide this to retrieve the subsequent page.
1538
+ # @param [Boolean] show_deleted
1539
+ # Optional. Whether to return soft-deleted oauth clients.
1540
+ # @param [String] fields
1541
+ # Selector specifying which fields to include in a partial response.
1542
+ # @param [String] quota_user
1543
+ # Available to use for quota purposes for server-side applications. Can be any
1544
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1545
+ # @param [Google::Apis::RequestOptions] options
1546
+ # Request-specific options
1547
+ #
1548
+ # @yield [result, err] Result & error if block supplied
1549
+ # @yieldparam result [Google::Apis::IamV1::ListOauthClientsResponse] parsed result object
1550
+ # @yieldparam err [StandardError] error object if request failed
1551
+ #
1552
+ # @return [Google::Apis::IamV1::ListOauthClientsResponse]
1553
+ #
1554
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1555
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1556
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1557
+ def list_project_location_oauth_clients(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
1558
+ command = make_simple_command(:get, 'v1/{+parent}/oauthClients', options)
1559
+ command.response_representation = Google::Apis::IamV1::ListOauthClientsResponse::Representation
1560
+ command.response_class = Google::Apis::IamV1::ListOauthClientsResponse
1561
+ command.params['parent'] = parent unless parent.nil?
1562
+ command.query['pageSize'] = page_size unless page_size.nil?
1563
+ command.query['pageToken'] = page_token unless page_token.nil?
1564
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
1565
+ command.query['fields'] = fields unless fields.nil?
1566
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1567
+ execute_or_queue_command(command, &block)
1568
+ end
1569
+
1570
+ # Updates an existing OauthClient.
1571
+ # @param [String] name
1572
+ # Immutable. The resource name of the oauth client. Format:`projects/`project`/
1573
+ # locations/`location`/oauthClients/`oauth_client``.
1574
+ # @param [Google::Apis::IamV1::OauthClient] oauth_client_object
1575
+ # @param [String] update_mask
1576
+ # Required. The list of fields to update.
1577
+ # @param [String] fields
1578
+ # Selector specifying which fields to include in a partial response.
1579
+ # @param [String] quota_user
1580
+ # Available to use for quota purposes for server-side applications. Can be any
1581
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1582
+ # @param [Google::Apis::RequestOptions] options
1583
+ # Request-specific options
1584
+ #
1585
+ # @yield [result, err] Result & error if block supplied
1586
+ # @yieldparam result [Google::Apis::IamV1::OauthClient] parsed result object
1587
+ # @yieldparam err [StandardError] error object if request failed
1588
+ #
1589
+ # @return [Google::Apis::IamV1::OauthClient]
1590
+ #
1591
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1592
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1593
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1594
+ def patch_project_location_oauth_client(name, oauth_client_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1595
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1596
+ command.request_representation = Google::Apis::IamV1::OauthClient::Representation
1597
+ command.request_object = oauth_client_object
1598
+ command.response_representation = Google::Apis::IamV1::OauthClient::Representation
1599
+ command.response_class = Google::Apis::IamV1::OauthClient
1600
+ command.params['name'] = name unless name.nil?
1601
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1602
+ command.query['fields'] = fields unless fields.nil?
1603
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1604
+ execute_or_queue_command(command, &block)
1605
+ end
1606
+
1607
+ # Undeletes a OauthClient, as long as it was deleted fewer than 30 days ago.
1608
+ # @param [String] name
1609
+ # Required. The name of the oauth client to undelete. Format: `projects/`project`
1610
+ # /locations/`location`/oauthClients/`oauth_client``.
1611
+ # @param [Google::Apis::IamV1::UndeleteOauthClientRequest] undelete_oauth_client_request_object
1612
+ # @param [String] fields
1613
+ # Selector specifying which fields to include in a partial response.
1614
+ # @param [String] quota_user
1615
+ # Available to use for quota purposes for server-side applications. Can be any
1616
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1617
+ # @param [Google::Apis::RequestOptions] options
1618
+ # Request-specific options
1619
+ #
1620
+ # @yield [result, err] Result & error if block supplied
1621
+ # @yieldparam result [Google::Apis::IamV1::OauthClient] parsed result object
1622
+ # @yieldparam err [StandardError] error object if request failed
1623
+ #
1624
+ # @return [Google::Apis::IamV1::OauthClient]
1625
+ #
1626
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1627
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1628
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1629
+ def undelete_oauth_client(name, undelete_oauth_client_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1630
+ command = make_simple_command(:post, 'v1/{+name}:undelete', options)
1631
+ command.request_representation = Google::Apis::IamV1::UndeleteOauthClientRequest::Representation
1632
+ command.request_object = undelete_oauth_client_request_object
1633
+ command.response_representation = Google::Apis::IamV1::OauthClient::Representation
1634
+ command.response_class = Google::Apis::IamV1::OauthClient
1635
+ command.params['name'] = name unless name.nil?
1636
+ command.query['fields'] = fields unless fields.nil?
1637
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1638
+ execute_or_queue_command(command, &block)
1639
+ end
1640
+
1641
+ # Creates a new OauthClientCredential.
1642
+ # @param [String] parent
1643
+ # Required. The parent resource to create the oauth client Credential in.
1644
+ # @param [Google::Apis::IamV1::OauthClientCredential] oauth_client_credential_object
1645
+ # @param [String] oauth_client_credential_id
1646
+ # Required. The ID to use for the oauth client credential, which becomes the
1647
+ # final component of the resource name. This value should be 4-32 characters,
1648
+ # and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for
1649
+ # use by Google, and may not be specified.
1650
+ # @param [String] fields
1651
+ # Selector specifying which fields to include in a partial response.
1652
+ # @param [String] quota_user
1653
+ # Available to use for quota purposes for server-side applications. Can be any
1654
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1655
+ # @param [Google::Apis::RequestOptions] options
1656
+ # Request-specific options
1657
+ #
1658
+ # @yield [result, err] Result & error if block supplied
1659
+ # @yieldparam result [Google::Apis::IamV1::OauthClientCredential] parsed result object
1660
+ # @yieldparam err [StandardError] error object if request failed
1661
+ #
1662
+ # @return [Google::Apis::IamV1::OauthClientCredential]
1663
+ #
1664
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1665
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1666
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1667
+ def create_project_location_oauth_client_credential(parent, oauth_client_credential_object = nil, oauth_client_credential_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1668
+ command = make_simple_command(:post, 'v1/{+parent}/credentials', options)
1669
+ command.request_representation = Google::Apis::IamV1::OauthClientCredential::Representation
1670
+ command.request_object = oauth_client_credential_object
1671
+ command.response_representation = Google::Apis::IamV1::OauthClientCredential::Representation
1672
+ command.response_class = Google::Apis::IamV1::OauthClientCredential
1673
+ command.params['parent'] = parent unless parent.nil?
1674
+ command.query['oauthClientCredentialId'] = oauth_client_credential_id unless oauth_client_credential_id.nil?
1675
+ command.query['fields'] = fields unless fields.nil?
1676
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1677
+ execute_or_queue_command(command, &block)
1678
+ end
1679
+
1680
+ # Deletes a OauthClientCredential. Before deleting an oauth client credential,
1681
+ # it should first be disabled.
1682
+ # @param [String] name
1683
+ # Required. The name of the oauth client credential to delete. Format: `projects/
1684
+ # `project`/locations/`location`/oauthClients/`oauth_client`/credentials/`
1685
+ # credential``.
1686
+ # @param [String] fields
1687
+ # Selector specifying which fields to include in a partial response.
1688
+ # @param [String] quota_user
1689
+ # Available to use for quota purposes for server-side applications. Can be any
1690
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1691
+ # @param [Google::Apis::RequestOptions] options
1692
+ # Request-specific options
1693
+ #
1694
+ # @yield [result, err] Result & error if block supplied
1695
+ # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
1696
+ # @yieldparam err [StandardError] error object if request failed
1697
+ #
1698
+ # @return [Google::Apis::IamV1::Empty]
1699
+ #
1700
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1701
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1702
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1703
+ def delete_project_location_oauth_client_credential(name, fields: nil, quota_user: nil, options: nil, &block)
1704
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1705
+ command.response_representation = Google::Apis::IamV1::Empty::Representation
1706
+ command.response_class = Google::Apis::IamV1::Empty
1707
+ command.params['name'] = name unless name.nil?
1708
+ command.query['fields'] = fields unless fields.nil?
1709
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1710
+ execute_or_queue_command(command, &block)
1711
+ end
1712
+
1713
+ # Gets an individual OauthClientCredential.
1714
+ # @param [String] name
1715
+ # Required. The name of the oauth client credential to retrieve. Format: `
1716
+ # projects/`project`/locations/`location`/oauthClients/`oauth_client`/
1717
+ # credentials/`credential``.
1718
+ # @param [String] fields
1719
+ # Selector specifying which fields to include in a partial response.
1720
+ # @param [String] quota_user
1721
+ # Available to use for quota purposes for server-side applications. Can be any
1722
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1723
+ # @param [Google::Apis::RequestOptions] options
1724
+ # Request-specific options
1725
+ #
1726
+ # @yield [result, err] Result & error if block supplied
1727
+ # @yieldparam result [Google::Apis::IamV1::OauthClientCredential] parsed result object
1728
+ # @yieldparam err [StandardError] error object if request failed
1729
+ #
1730
+ # @return [Google::Apis::IamV1::OauthClientCredential]
1731
+ #
1732
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1733
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1734
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1735
+ def get_project_location_oauth_client_credential(name, fields: nil, quota_user: nil, options: nil, &block)
1736
+ command = make_simple_command(:get, 'v1/{+name}', options)
1737
+ command.response_representation = Google::Apis::IamV1::OauthClientCredential::Representation
1738
+ command.response_class = Google::Apis::IamV1::OauthClientCredential
1739
+ command.params['name'] = name unless name.nil?
1740
+ command.query['fields'] = fields unless fields.nil?
1741
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1742
+ execute_or_queue_command(command, &block)
1743
+ end
1744
+
1745
+ # Lists all OauthClientCredentialss in a OauthClient.
1746
+ # @param [String] parent
1747
+ # Required. The parent to list oauth client credentials for.
1748
+ # @param [String] fields
1749
+ # Selector specifying which fields to include in a partial response.
1750
+ # @param [String] quota_user
1751
+ # Available to use for quota purposes for server-side applications. Can be any
1752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1753
+ # @param [Google::Apis::RequestOptions] options
1754
+ # Request-specific options
1755
+ #
1756
+ # @yield [result, err] Result & error if block supplied
1757
+ # @yieldparam result [Google::Apis::IamV1::ListOauthClientCredentialsResponse] parsed result object
1758
+ # @yieldparam err [StandardError] error object if request failed
1759
+ #
1760
+ # @return [Google::Apis::IamV1::ListOauthClientCredentialsResponse]
1761
+ #
1762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1765
+ def list_project_location_oauth_client_credentials(parent, fields: nil, quota_user: nil, options: nil, &block)
1766
+ command = make_simple_command(:get, 'v1/{+parent}/credentials', options)
1767
+ command.response_representation = Google::Apis::IamV1::ListOauthClientCredentialsResponse::Representation
1768
+ command.response_class = Google::Apis::IamV1::ListOauthClientCredentialsResponse
1769
+ command.params['parent'] = parent unless parent.nil?
1770
+ command.query['fields'] = fields unless fields.nil?
1771
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1772
+ execute_or_queue_command(command, &block)
1773
+ end
1774
+
1775
+ # Updates an existing OauthClientCredential.
1776
+ # @param [String] name
1777
+ # Immutable. The resource name of the oauth client credential. Format: `projects/
1778
+ # `project`/locations/`location`/oauthClients/`oauth_client`/credentials/`
1779
+ # credential``
1780
+ # @param [Google::Apis::IamV1::OauthClientCredential] oauth_client_credential_object
1781
+ # @param [String] update_mask
1782
+ # Required. The list of fields to update.
1783
+ # @param [String] fields
1784
+ # Selector specifying which fields to include in a partial response.
1785
+ # @param [String] quota_user
1786
+ # Available to use for quota purposes for server-side applications. Can be any
1787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1788
+ # @param [Google::Apis::RequestOptions] options
1789
+ # Request-specific options
1790
+ #
1791
+ # @yield [result, err] Result & error if block supplied
1792
+ # @yieldparam result [Google::Apis::IamV1::OauthClientCredential] parsed result object
1793
+ # @yieldparam err [StandardError] error object if request failed
1794
+ #
1795
+ # @return [Google::Apis::IamV1::OauthClientCredential]
1796
+ #
1797
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1798
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1799
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1800
+ def patch_project_location_oauth_client_credential(name, oauth_client_credential_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1801
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1802
+ command.request_representation = Google::Apis::IamV1::OauthClientCredential::Representation
1803
+ command.request_object = oauth_client_credential_object
1804
+ command.response_representation = Google::Apis::IamV1::OauthClientCredential::Representation
1805
+ command.response_class = Google::Apis::IamV1::OauthClientCredential
1806
+ command.params['name'] = name unless name.nil?
1807
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1808
+ command.query['fields'] = fields unless fields.nil?
1809
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1810
+ execute_or_queue_command(command, &block)
1811
+ end
1812
+
1411
1813
  # Creates a new WorkloadIdentityPool. You cannot reuse the name of a deleted
1412
1814
  # pool until 30 days after deletion.
1413
1815
  # @param [String] parent
@@ -3402,6 +3804,40 @@ module Google
3402
3804
  execute_or_queue_command(command, &block)
3403
3805
  end
3404
3806
 
3807
+ # Patches a ServiceAccountKey.
3808
+ # @param [String] name
3809
+ # The resource name of the service account key in the following format `projects/
3810
+ # `PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``.
3811
+ # @param [Google::Apis::IamV1::PatchServiceAccountKeyRequest] patch_service_account_key_request_object
3812
+ # @param [String] fields
3813
+ # Selector specifying which fields to include in a partial response.
3814
+ # @param [String] quota_user
3815
+ # Available to use for quota purposes for server-side applications. Can be any
3816
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3817
+ # @param [Google::Apis::RequestOptions] options
3818
+ # Request-specific options
3819
+ #
3820
+ # @yield [result, err] Result & error if block supplied
3821
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
3822
+ # @yieldparam err [StandardError] error object if request failed
3823
+ #
3824
+ # @return [Google::Apis::IamV1::ServiceAccountKey]
3825
+ #
3826
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3827
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3828
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3829
+ def patch_service_account_key(name, patch_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3830
+ command = make_simple_command(:post, 'v1/{+name}:patch', options)
3831
+ command.request_representation = Google::Apis::IamV1::PatchServiceAccountKeyRequest::Representation
3832
+ command.request_object = patch_service_account_key_request_object
3833
+ command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
3834
+ command.response_class = Google::Apis::IamV1::ServiceAccountKey
3835
+ command.params['name'] = name unless name.nil?
3836
+ command.query['fields'] = fields unless fields.nil?
3837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3838
+ execute_or_queue_command(command, &block)
3839
+ end
3840
+
3405
3841
  # Uploads the public key portion of a key pair that you manage, and associates
3406
3842
  # the public key with a ServiceAccount. After you upload the public key, you can
3407
3843
  # 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.55.0
4
+ version: 0.56.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-03-24 00:00:00.000000000 Z
11
+ date: 2024-04-21 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.55.0
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.56.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: []