google-apis-cloudresourcemanager_v3 0.42.0 → 0.44.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b5e59825689baead916f87a116b4a3b8b420191a484fc7371e7c8ff2178946d
4
- data.tar.gz: 22c7dc2c984eb0e1212c52dc3146b022a1203c221dae9d614551b57c70d7c93c
3
+ metadata.gz: e1be32da342456f5814d8f7821e4b1655c84c7b93e709dd597d4f3c015aeca4d
4
+ data.tar.gz: d70e18fb8228b7acd752738ff70feb7c024366b339007dd4ccecc36e7d9715da
5
5
  SHA512:
6
- metadata.gz: 2e39283fba00f05457414ca3a9b183245cf4b039325f0e3eadb73c0d6527190b0fc1c3c417570f1ed10393d5dbcea6c9bd940e8dae5d802a4074d57203e16f02
7
- data.tar.gz: 1ff369f46c3212b58c556f174e4f3a4b071b1f6ef4009a85519fa9a1716a37e58af0e1259790d4faeaa29deec5b703efc756e2c41eefaff05e6af215e7d7a1bf
6
+ metadata.gz: 5d6edb86ca966935aa4e6d33274a892020dbe671d636d0dce96f48c6c82b52837dbc47f4580af8ca93aa298cc308f67b09fa57f713702314f34485e74a8c50c9
7
+ data.tar.gz: 2cbde8567a9da8fc40e15c8b5058923cfa6365bdac64535f8d382fe3636b237d5ff52b6d82ab855476e2f48b052282091e588c12ad47c1ce94864c131e18459d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudresourcemanager_v3
2
2
 
3
+ ### v0.44.0 (2023-05-14)
4
+
5
+ * Regenerated from discovery document revision 20230507
6
+
7
+ ### v0.43.0 (2023-04-23)
8
+
9
+ * Regenerated from discovery document revision 20230416
10
+
3
11
  ### v0.42.0 (2023-02-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20230219
@@ -446,16 +446,17 @@ module Google
446
446
  attr_accessor :inherited
447
447
  alias_method :inherited?, :inherited
448
448
 
449
- # The namespaced_name of the TagKey. Now only supported in the format of ``
450
- # organization_id`/`tag_key_short_name``. Other formats will be supported when
451
- # we add non-org parented tags.
449
+ # The namespaced name of the TagKey. Can be in the form ``organization_id`/`
450
+ # tag_key_short_name`` or ``project_id`/`tag_key_short_name`` or ``
451
+ # project_number`/`tag_key_short_name``.
452
452
  # Corresponds to the JSON property `namespacedTagKey`
453
453
  # @return [String]
454
454
  attr_accessor :namespaced_tag_key
455
455
 
456
- # Namespaced name of the TagValue. Now only supported in the format ``
457
- # organization_id`/`tag_key_short_name`/`tag_value_short_name``. Other formats
458
- # will be supported when we add non-org parented tags.
456
+ # The namespaced name of the TagValue. Can be in the form ``organization_id`/`
457
+ # tag_key_short_name`/`tag_value_short_name`` or ``project_id`/`
458
+ # tag_key_short_name`/`tag_value_short_name`` or ``project_number`/`
459
+ # tag_key_short_name`/`tag_value_short_name``.
459
460
  # Corresponds to the JSON property `namespacedTagValue`
460
461
  # @return [String]
461
462
  attr_accessor :namespaced_tag_value
@@ -466,7 +467,7 @@ module Google
466
467
  attr_accessor :tag_key
467
468
 
468
469
  # The parent name of the tag key. Must be in the format `organizations/`
469
- # organization_id``.
470
+ # organization_id`` or `projects/`project_number``
470
471
  # Corresponds to the JSON property `tagKeyParentName`
471
472
  # @return [String]
472
473
  attr_accessor :tag_key_parent_name
@@ -1668,6 +1669,14 @@ module Google
1668
1669
  # @return [String]
1669
1670
  attr_accessor :tag_value
1670
1671
 
1672
+ # The namespaced name for the TagValue of the TagBinding. Must be in the format `
1673
+ # `parent_id`/`tag_key_short_name`/`short_name``. For methods that support
1674
+ # TagValue namespaced name, only one of tag_value_namespaced_name or tag_value
1675
+ # may be filled. Requests with both fields will be rejected.
1676
+ # Corresponds to the JSON property `tagValueNamespacedName`
1677
+ # @return [String]
1678
+ attr_accessor :tag_value_namespaced_name
1679
+
1671
1680
  def initialize(**args)
1672
1681
  update!(**args)
1673
1682
  end
@@ -1677,6 +1686,7 @@ module Google
1677
1686
  @name = args[:name] if args.key?(:name)
1678
1687
  @parent = args[:parent] if args.key?(:parent)
1679
1688
  @tag_value = args[:tag_value] if args.key?(:tag_value)
1689
+ @tag_value_namespaced_name = args[:tag_value_namespaced_name] if args.key?(:tag_value_namespaced_name)
1680
1690
  end
1681
1691
  end
1682
1692
 
@@ -1765,8 +1775,11 @@ module Google
1765
1775
  # @return [String]
1766
1776
  attr_accessor :namespaced_name
1767
1777
 
1768
- # Immutable. The resource name of the new TagKey's parent. Must be of the form `
1769
- # organizations/`org_id``.
1778
+ # Immutable. The resource name of the TagKey's parent. A TagKey can be parented
1779
+ # by an Organization or a Project. For a TagKey parented by an Organization, its
1780
+ # parent must be in the form `organizations/`org_id``. For a TagKey parented by
1781
+ # a Project, its parent can be in the form `projects/`project_id`` or `projects/`
1782
+ # project_number``.
1770
1783
  # Corresponds to the JSON property `parent`
1771
1784
  # @return [String]
1772
1785
  attr_accessor :parent
@@ -1847,9 +1860,10 @@ module Google
1847
1860
  # @return [String]
1848
1861
  attr_accessor :name
1849
1862
 
1850
- # Output only. Namespaced name of the TagValue. Now only supported in the format
1851
- # ``organization_id`/`tag_key_short_name`/`short_name``. Other formats will be
1852
- # supported when we add non-org parented tags.
1863
+ # Output only. The namespaced name of the TagValue. Can be in the form ``
1864
+ # organization_id`/`tag_key_short_name`/`tag_value_short_name`` or ``project_id`/
1865
+ # `tag_key_short_name`/`tag_value_short_name`` or ``project_number`/`
1866
+ # tag_key_short_name`/`tag_value_short_name``.
1853
1867
  # Corresponds to the JSON property `namespacedName`
1854
1868
  # @return [String]
1855
1869
  attr_accessor :namespaced_name
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudresourcemanagerV3
18
18
  # Version of the google-apis-cloudresourcemanager_v3 gem
19
- GEM_VERSION = "0.42.0"
19
+ GEM_VERSION = "0.44.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 = "20230219"
25
+ REVISION = "20230507"
26
26
  end
27
27
  end
28
28
  end
@@ -813,6 +813,7 @@ module Google
813
813
  property :name, as: 'name'
814
814
  property :parent, as: 'parent'
815
815
  property :tag_value, as: 'tagValue'
816
+ property :tag_value_namespaced_name, as: 'tagValueNamespacedName'
816
817
  end
817
818
  end
818
819
 
@@ -1663,6 +1663,40 @@ module Google
1663
1663
  execute_or_queue_command(command, &block)
1664
1664
  end
1665
1665
 
1666
+ # Retrieves a TagKey by its namespaced name. This method will return `
1667
+ # PERMISSION_DENIED` if the key does not exist or the user does not have
1668
+ # permission to view it.
1669
+ # @param [String] name
1670
+ # Required. A namespaced tag key name in the format ``parentId`/`tagKeyShort``,
1671
+ # such as `42/foo` for a key with short name "foo" under the organization with
1672
+ # ID 42 or `r2-d2/bar` for a key with short name "bar" under the project `r2-d2`.
1673
+ # @param [String] fields
1674
+ # Selector specifying which fields to include in a partial response.
1675
+ # @param [String] quota_user
1676
+ # Available to use for quota purposes for server-side applications. Can be any
1677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1678
+ # @param [Google::Apis::RequestOptions] options
1679
+ # Request-specific options
1680
+ #
1681
+ # @yield [result, err] Result & error if block supplied
1682
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV3::TagKey] parsed result object
1683
+ # @yieldparam err [StandardError] error object if request failed
1684
+ #
1685
+ # @return [Google::Apis::CloudresourcemanagerV3::TagKey]
1686
+ #
1687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1690
+ def get_tag_key_namespaced(name: nil, fields: nil, quota_user: nil, options: nil, &block)
1691
+ command = make_simple_command(:get, 'v3/tagKeys/namespaced', options)
1692
+ command.response_representation = Google::Apis::CloudresourcemanagerV3::TagKey::Representation
1693
+ command.response_class = Google::Apis::CloudresourcemanagerV3::TagKey
1694
+ command.query['name'] = name unless name.nil?
1695
+ command.query['fields'] = fields unless fields.nil?
1696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1697
+ execute_or_queue_command(command, &block)
1698
+ end
1699
+
1666
1700
  # Lists all TagKeys for a parent resource.
1667
1701
  # @param [Fixnum] page_size
1668
1702
  # Optional. The maximum number of TagKeys to return in the response. The server
@@ -1672,8 +1706,9 @@ module Google
1672
1706
  # Optional. A pagination token returned from a previous call to `ListTagKey`
1673
1707
  # that indicates where this listing should continue from.
1674
1708
  # @param [String] parent
1675
- # Required. The resource name of the new TagKey's parent. Must be of the form `
1676
- # folders/`folder_id`` or `organizations/`org_id``.
1709
+ # Required. The resource name of the TagKey's parent. Must be of the form `
1710
+ # organizations/`org_id`` or `projects/`project_id`` or `projects/`
1711
+ # project_number``
1677
1712
  # @param [String] fields
1678
1713
  # Selector specifying which fields to include in a partial response.
1679
1714
  # @param [String] quota_user
@@ -1966,6 +2001,42 @@ module Google
1966
2001
  execute_or_queue_command(command, &block)
1967
2002
  end
1968
2003
 
2004
+ # Retrieves a TagValue by its namespaced name. This method will return `
2005
+ # PERMISSION_DENIED` if the value does not exist or the user does not have
2006
+ # permission to view it.
2007
+ # @param [String] name
2008
+ # Required. A namespaced tag value name in the following format: ``parentId`/`
2009
+ # tagKeyShort`/`tagValueShort`` Examples: - `42/foo/abc` for a value with short
2010
+ # name "abc" under the key with short name "foo" under the organization with ID
2011
+ # 42 - `r2-d2/bar/xyz` for a value with short name "xyz" under the key with
2012
+ # short name "bar" under the project with ID "r2-d2"
2013
+ # @param [String] fields
2014
+ # Selector specifying which fields to include in a partial response.
2015
+ # @param [String] quota_user
2016
+ # Available to use for quota purposes for server-side applications. Can be any
2017
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2018
+ # @param [Google::Apis::RequestOptions] options
2019
+ # Request-specific options
2020
+ #
2021
+ # @yield [result, err] Result & error if block supplied
2022
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV3::TagValue] parsed result object
2023
+ # @yieldparam err [StandardError] error object if request failed
2024
+ #
2025
+ # @return [Google::Apis::CloudresourcemanagerV3::TagValue]
2026
+ #
2027
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2028
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2029
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2030
+ def get_tag_value_namespaced(name: nil, fields: nil, quota_user: nil, options: nil, &block)
2031
+ command = make_simple_command(:get, 'v3/tagValues/namespaced', options)
2032
+ command.response_representation = Google::Apis::CloudresourcemanagerV3::TagValue::Representation
2033
+ command.response_class = Google::Apis::CloudresourcemanagerV3::TagValue
2034
+ command.query['name'] = name unless name.nil?
2035
+ command.query['fields'] = fields unless fields.nil?
2036
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2037
+ execute_or_queue_command(command, &block)
2038
+ end
2039
+
1969
2040
  # Lists all TagValues for a specific TagKey.
1970
2041
  # @param [Fixnum] page_size
1971
2042
  # Optional. The maximum number of TagValues to return in the response. The
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudresourcemanager_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.42.0
4
+ version: 0.44.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-02-26 00:00:00.000000000 Z
11
+ date: 2023-05-14 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-cloudresourcemanager_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudresourcemanager_v3/v0.42.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudresourcemanager_v3/v0.44.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudresourcemanager_v3
63
63
  post_install_message:
64
64
  rdoc_options: []