google-apis-marketingplatformadmin_v1alpha 0.2.0 → 0.3.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: 32eb8df4e3acb06194c6253816df194842aef1e1b1fbf2a5ba0410dd5284127f
4
- data.tar.gz: ff1a10b4533ebf353dd6ddb83c4852fc321569995fed67403e4c54fe5fdf81b6
3
+ metadata.gz: 25e91442f42825e182dc99dbad9cd8487ccf3add9a385d0eac36e9ae6c133777
4
+ data.tar.gz: 96fb5c5366f46c8a3aeef3799d4db07f121440eab71219632c408dfd30382acf
5
5
  SHA512:
6
- metadata.gz: 8075cbc12235c9eda3055a289fe131540e3a9c602a3ac21cbcc922d6a3129a0c335f6bd21dee46b80ed34994c2a253694508917021edc4c1adc2b7a8b728d606
7
- data.tar.gz: d48384f2e022c56f4b85a3ddd3cfc9c2263a483295cd4a1bb0ba26c188968a9b8a660839ae737dc7e0ea56bc8583f7eed9673b65544e790d1f2144177a19d990
6
+ metadata.gz: 32967435f1fe7ed11da5dee90a2d32f33b6ba0e619d1c96ed39ef7116a0d8b353f3d5d4f1643cf37a8c993cb63bb44f904bed7da66b023bc7c2c180a830ffbb1
7
+ data.tar.gz: ebd10f40a9ba9714d4481543e0fdbcc54f28e7f517f43953f13c9a405d42ba8ece19bb5f232bb2bbb4c01b7cd6a753e789b6f00e24f00a7bb617517133e61569
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-marketingplatformadmin_v1alpha
2
2
 
3
+ ### v0.3.0 (2024-04-14)
4
+
5
+ * Regenerated from discovery document revision 20240410
6
+
3
7
  ### v0.2.0 (2024-03-17)
4
8
 
5
9
  * Regenerated from discovery document revision 20240311
@@ -109,6 +109,32 @@ module Google
109
109
  end
110
110
  end
111
111
 
112
+ # A resource message representing a Google Marketing Platform organization.
113
+ class Organization
114
+ include Google::Apis::Core::Hashable
115
+
116
+ # The human-readable name for the organization.
117
+ # Corresponds to the JSON property `displayName`
118
+ # @return [String]
119
+ attr_accessor :display_name
120
+
121
+ # Identifier. The resource name of the GMP organization. Format: organizations/`
122
+ # org_id`
123
+ # Corresponds to the JSON property `name`
124
+ # @return [String]
125
+ attr_accessor :name
126
+
127
+ def initialize(**args)
128
+ update!(**args)
129
+ end
130
+
131
+ # Update properties of this object
132
+ def update!(**args)
133
+ @display_name = args[:display_name] if args.key?(:display_name)
134
+ @name = args[:name] if args.key?(:name)
135
+ end
136
+ end
137
+
112
138
  # Request message for SetPropertyServiceLevel RPC.
113
139
  class SetPropertyServiceLevelRequest
114
140
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MarketingplatformadminV1alpha
18
18
  # Version of the google-apis-marketingplatformadmin_v1alpha gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240311"
25
+ REVISION = "20240410"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class Organization
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class SetPropertyServiceLevelRequest
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -77,6 +83,14 @@ module Google
77
83
  end
78
84
  end
79
85
 
86
+ class Organization
87
+ # @private
88
+ class Representation < Google::Apis::Core::JsonRepresentation
89
+ property :display_name, as: 'displayName'
90
+ property :name, as: 'name'
91
+ end
92
+ end
93
+
80
94
  class SetPropertyServiceLevelRequest
81
95
  # @private
82
96
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -55,6 +55,37 @@ module Google
55
55
  @batch_path = 'batch'
56
56
  end
57
57
 
58
+ # Lookup for a single organization.
59
+ # @param [String] name
60
+ # Required. The name of the Organization to retrieve. Format: organizations/`
61
+ # org_id`
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::MarketingplatformadminV1alpha::Organization] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::MarketingplatformadminV1alpha::Organization]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
80
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
81
+ command.response_representation = Google::Apis::MarketingplatformadminV1alpha::Organization::Representation
82
+ command.response_class = Google::Apis::MarketingplatformadminV1alpha::Organization
83
+ command.params['name'] = name unless name.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
58
89
  # Creates the link between the Analytics account and the Google Marketing
59
90
  # Platform organization. User needs to be an org user, and admin on the
60
91
  # Analytics account to create the link. If the account is already linked to an
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-marketingplatformadmin_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.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-17 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
@@ -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-marketingplatformadmin_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-marketingplatformadmin_v1alpha/v0.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-marketingplatformadmin_v1alpha/v0.3.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-marketingplatformadmin_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []