google-cloud-apigee_connect-v1 0.1.0 → 0.1.4

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: 767ec3e5ddcf527513f6d68f47fba3bf74e3c9c2f6cc318926ca3851e9fc1e0b
4
- data.tar.gz: 285a21f64ec773ff5cc091d637660a0bc935bfd8113459c3913d446c84169b98
3
+ metadata.gz: 490f0cf09f23be4ddfd8ef979b39be84600f7f9e061703bfb2580ab1f907d9da
4
+ data.tar.gz: 1cf9030b9cec902fcb3505766eaaeae9f3908c5946162dac966ebf6aacd1f209
5
5
  SHA512:
6
- metadata.gz: f0604998b44baa442179f4f9699c4a3ad16759d0fec19052946cdfe23b320a29d1f80a3697b4f729a4971a602379f404eb02bfc263b3b86c3d9a32d5cb0b6f7d
7
- data.tar.gz: ad574611358d5c5a7e78b43de5b34318519e937a8931f1a36b6e93caa270b9623002094c5fe48db48f97a46e280b0f4c268b9f762fa086f721d3920df5616e4b
6
+ metadata.gz: cff38c8828d07bf3f51a8d84c0ca29b8d1fbee38853910089d1dbec207bccff2c16346bc8cfdbf09587f037dc7b294450b11679c2d2f9931cdf31504c1430743
7
+ data.tar.gz: f83f2bed9c30fc55daeb4169bbc4144af843a62b00cc787eecef64aa6371e4858d4bca6b688ecc2a4e50a0b868f6fb5c1bbfd1d256872b0ba7731ca9acf5ce9a
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Apigee Connect V1 API
2
+ --title="Apigee Connect V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-apigee_connect-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::ApigeeConnect::V1::ConnectionService::Credentials}):
68
68
 
69
- 1. `APIGEE_CONNECT_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `APIGEE_CONNECT_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `APIGEE_CONNECT_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `APIGEE_CONNECT_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/apigee_connect/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/apigee_connect/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new do |c
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/apigee_connect/v1"
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/apigee_connect/v1"
34
34
 
35
35
  client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::ApigeeConnect::V1::ListConnectionsRequest.new # (request fields as keyword arguments...)
37
37
  response = client.list_connections request
38
38
  ```
39
39
 
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all ConnectionService clients:
47
- #
48
- # ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all ConnectionService clients
47
+ # ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -67,10 +66,7 @@ module Google
67
66
 
68
67
  default_config.rpcs.list_connections.timeout = 60.0
69
68
  default_config.rpcs.list_connections.retry_policy = {
70
- initial_delay: 1.0,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14, 2]
69
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
74
70
  }
75
71
 
76
72
  default_config
@@ -102,19 +98,15 @@ module Google
102
98
  ##
103
99
  # Create a new ConnectionService client object.
104
100
  #
105
- # ## Examples
106
- #
107
- # To create a new ConnectionService client with the default
108
- # configuration:
101
+ # @example
109
102
  #
110
- # client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new
111
105
  #
112
- # To create a new ConnectionService client with a custom
113
- # configuration:
114
- #
115
- # client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new do |config|
116
- # config.timeout = 10.0
117
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
118
110
  #
119
111
  # @yield [config] Configure the ConnectionService client.
120
112
  # @yieldparam config [Client::Configuration]
@@ -134,14 +126,13 @@ module Google
134
126
 
135
127
  # Create credentials
136
128
  credentials = @config.credentials
137
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
138
130
  # but only if the default endpoint does not have a region prefix.
139
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
140
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
141
132
  !@config.endpoint.split(".").first.include?("-")
142
133
  credentials ||= Credentials.default scope: @config.scope,
143
134
  enable_self_signed_jwt: enable_self_signed_jwt
144
- if credentials.is_a?(String) || credentials.is_a?(Hash)
135
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
136
  credentials = Credentials.new credentials, scope: @config.scope
146
137
  end
147
138
  @quota_project_id = @config.quota_project
@@ -199,6 +190,27 @@ module Google
199
190
  #
200
191
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
201
192
  #
193
+ # @example Basic example
194
+ # require "google/cloud/apigee_connect/v1"
195
+ #
196
+ # # Create a client object. The client can be reused for multiple calls.
197
+ # client = Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new
198
+ #
199
+ # # Create a request. To set request fields, pass in keyword arguments.
200
+ # request = Google::Cloud::ApigeeConnect::V1::ListConnectionsRequest.new
201
+ #
202
+ # # Call the list_connections method.
203
+ # result = client.list_connections request
204
+ #
205
+ # # The returned object is of type Gapic::PagedEnumerable. You can
206
+ # # iterate over all elements by calling #each, and the enumerable
207
+ # # will lazily make API calls to fetch subsequent pages. Other
208
+ # # methods are also available for managing paging directly.
209
+ # result.each do |response|
210
+ # # Each element is of type ::Google::Cloud::ApigeeConnect::V1::Connection.
211
+ # p response
212
+ # end
213
+ #
202
214
  def list_connections request, options = nil
203
215
  raise ::ArgumentError, "request must be provided" if request.nil?
204
216
 
@@ -216,16 +228,20 @@ module Google
216
228
  gapic_version: ::Google::Cloud::ApigeeConnect::V1::VERSION
217
229
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
218
230
 
219
- header_params = {
220
- "parent" => request.parent
221
- }
231
+ header_params = {}
232
+ if request.parent
233
+ header_params["parent"] = request.parent
234
+ end
235
+
222
236
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
223
237
  metadata[:"x-goog-request-params"] ||= request_params_header
224
238
 
225
239
  options.apply_defaults timeout: @config.rpcs.list_connections.timeout,
226
240
  metadata: metadata,
227
241
  retry_policy: @config.rpcs.list_connections.retry_policy
228
- options.apply_defaults metadata: @config.metadata,
242
+
243
+ options.apply_defaults timeout: @config.timeout,
244
+ metadata: @config.metadata,
229
245
  retry_policy: @config.retry_policy
230
246
 
231
247
  @connection_service_stub.call_rpc :list_connections, request, options: options do |response, operation|
@@ -250,22 +266,21 @@ module Google
250
266
  # Configuration can be applied globally to all clients, or to a single client
251
267
  # on construction.
252
268
  #
253
- # # Examples
254
- #
255
- # To modify the global config, setting the timeout for list_connections
256
- # to 20 seconds, and all remaining timeouts to 10 seconds:
257
- #
258
- # ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.configure do |config|
259
- # config.timeout = 10.0
260
- # config.rpcs.list_connections.timeout = 20.0
261
- # end
262
- #
263
- # To apply the above configuration only to a new client:
264
- #
265
- # client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new do |config|
266
- # config.timeout = 10.0
267
- # config.rpcs.list_connections.timeout = 20.0
268
- # end
269
+ # @example
270
+ #
271
+ # # Modify the global config, setting the timeout for
272
+ # # list_connections to 20 seconds,
273
+ # # and all remaining timeouts to 10 seconds.
274
+ # ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.configure do |config|
275
+ # config.timeout = 10.0
276
+ # config.rpcs.list_connections.timeout = 20.0
277
+ # end
278
+ #
279
+ # # Apply the above configuration only to a new client.
280
+ # client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new do |config|
281
+ # config.timeout = 10.0
282
+ # config.rpcs.list_connections.timeout = 20.0
283
+ # end
269
284
  #
270
285
  # @!attribute [rw] endpoint
271
286
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::ApigeeConnect::V1::Tether::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all Tether clients:
47
- #
48
- # ::Google::Cloud::ApigeeConnect::V1::Tether::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Tether clients
47
+ # ::Google::Cloud::ApigeeConnect::V1::Tether::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -94,19 +93,15 @@ module Google
94
93
  ##
95
94
  # Create a new Tether client object.
96
95
  #
97
- # ## Examples
98
- #
99
- # To create a new Tether client with the default
100
- # configuration:
96
+ # @example
101
97
  #
102
- # client = ::Google::Cloud::ApigeeConnect::V1::Tether::Client.new
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::ApigeeConnect::V1::Tether::Client.new
103
100
  #
104
- # To create a new Tether client with a custom
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::ApigeeConnect::V1::Tether::Client.new do |config|
108
- # config.timeout = 10.0
109
- # end
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::ApigeeConnect::V1::Tether::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
110
105
  #
111
106
  # @yield [config] Configure the Tether client.
112
107
  # @yieldparam config [Client::Configuration]
@@ -126,14 +121,13 @@ module Google
126
121
 
127
122
  # Create credentials
128
123
  credentials = @config.credentials
129
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
124
+ # Use self-signed JWT if the endpoint is unchanged from default,
130
125
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
132
- @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
127
  !@config.endpoint.split(".").first.include?("-")
134
128
  credentials ||= Credentials.default scope: @config.scope,
135
129
  enable_self_signed_jwt: enable_self_signed_jwt
136
- if credentials.is_a?(String) || credentials.is_a?(Hash)
130
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
137
131
  credentials = Credentials.new credentials, scope: @config.scope
138
132
  end
139
133
  @quota_project_id = @config.quota_project
@@ -172,6 +166,30 @@ module Google
172
166
  #
173
167
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
174
168
  #
169
+ # @example Basic example
170
+ # require "google/cloud/apigee_connect/v1"
171
+ #
172
+ # # Create a client object. The client can be reused for multiple calls.
173
+ # client = Google::Cloud::ApigeeConnect::V1::Tether::Client.new
174
+ #
175
+ # # Create an input stream
176
+ # input = Gapic::StreamInput.new
177
+ #
178
+ # # Call the egress method to start streaming.
179
+ # output = client.egress input
180
+ #
181
+ # # Send requests on the stream. For each request, pass in keyword
182
+ # # arguments to set fields. Be sure to close the stream when done.
183
+ # input << Google::Cloud::ApigeeConnect::V1::EgressResponse.new
184
+ # input << Google::Cloud::ApigeeConnect::V1::EgressResponse.new
185
+ # input.close
186
+ #
187
+ # # Handle streamed responses. These may be interleaved with inputs.
188
+ # # Each response is of type ::Google::Cloud::ApigeeConnect::V1::EgressRequest.
189
+ # output.each do |response|
190
+ # p response
191
+ # end
192
+ #
175
193
  def egress request, options = nil
176
194
  unless request.is_a? ::Enumerable
177
195
  raise ::ArgumentError, "request must be an Enumerable" unless request.respond_to? :to_enum
@@ -197,7 +215,9 @@ module Google
197
215
  options.apply_defaults timeout: @config.rpcs.egress.timeout,
198
216
  metadata: metadata,
199
217
  retry_policy: @config.rpcs.egress.retry_policy
200
- options.apply_defaults metadata: @config.metadata,
218
+
219
+ options.apply_defaults timeout: @config.timeout,
220
+ metadata: @config.metadata,
201
221
  retry_policy: @config.retry_policy
202
222
 
203
223
  @tether_stub.call_rpc :egress, request, options: options do |response, operation|
@@ -221,22 +241,21 @@ module Google
221
241
  # Configuration can be applied globally to all clients, or to a single client
222
242
  # on construction.
223
243
  #
224
- # # Examples
225
- #
226
- # To modify the global config, setting the timeout for egress
227
- # to 20 seconds, and all remaining timeouts to 10 seconds:
228
- #
229
- # ::Google::Cloud::ApigeeConnect::V1::Tether::Client.configure do |config|
230
- # config.timeout = 10.0
231
- # config.rpcs.egress.timeout = 20.0
232
- # end
233
- #
234
- # To apply the above configuration only to a new client:
235
- #
236
- # client = ::Google::Cloud::ApigeeConnect::V1::Tether::Client.new do |config|
237
- # config.timeout = 10.0
238
- # config.rpcs.egress.timeout = 20.0
239
- # end
244
+ # @example
245
+ #
246
+ # # Modify the global config, setting the timeout for
247
+ # # egress to 20 seconds,
248
+ # # and all remaining timeouts to 10 seconds.
249
+ # ::Google::Cloud::ApigeeConnect::V1::Tether::Client.configure do |config|
250
+ # config.timeout = 10.0
251
+ # config.rpcs.egress.timeout = 20.0
252
+ # end
253
+ #
254
+ # # Apply the above configuration only to a new client.
255
+ # client = ::Google::Cloud::ApigeeConnect::V1::Tether::Client.new do |config|
256
+ # config.timeout = 10.0
257
+ # config.rpcs.egress.timeout = 20.0
258
+ # end
240
259
  #
241
260
  # @!attribute [rw] endpoint
242
261
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApigeeConnect
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.1.4"
25
25
  end
26
26
  end
27
27
  end
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/apigeeconnect/v1/connection.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
9
7
  require 'google/api/resource_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/cloud/apigeeconnect/v1/connection.proto", :syntax => :proto3) do
12
12
  add_message "google.cloud.apigeeconnect.v1.ListConnectionsRequest" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Service Interface for the Apigee Connect connection management APIs.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/apigeeconnect/v1/tether.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/duration_pb'
7
5
  require 'google/rpc/status_pb'
8
6
  require 'google/api/client_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/apigeeconnect/v1/tether.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.apigeeconnect.v1.EgressRequest" do
@@ -29,7 +29,7 @@ module Google
29
29
  # requiring customers to open firewalls on their runtime plane.
30
30
  class Service
31
31
 
32
- include GRPC::GenericService
32
+ include ::GRPC::GenericService
33
33
 
34
34
  self.marshal_class_method = :encode
35
35
  self.unmarshal_class_method = :decode
@@ -60,6 +60,12 @@ module Google
60
60
  # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-apigee_connect-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.4
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-06-21 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
215
  requirements: []
216
- rubygems_version: 3.2.17
216
+ rubygems_version: 3.3.4
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: API Client library for the Apigee Connect V1 API