google-cloud-dataform-v1beta1 0.1.0 → 0.3.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: 6ea017f4114c2e8c057a63f8bd7e7bdbb963844bb5ce9bebac9ee58d0f879a28
4
- data.tar.gz: 4f0f7bec243534e50ecbe438629a46b192011123b5217ebc3f5098a0cc5d7d92
3
+ metadata.gz: 679676b2839b6e273bffa65ec0abee8f1ad7d4ebc98d3faa5ede3889fa7b271c
4
+ data.tar.gz: a668691efeb3692e057cfa99297e5aaafe066f73d8bb08fed3a6abf1a4a3c5f8
5
5
  SHA512:
6
- metadata.gz: 216dde18b7db4d45d07e99d51d4e4fb78fee7e96383884bbe9f475ecb4f1c8c9a7ca870792fad73ea8be839c55ad0d10db8252ff7c9b821759fd29d781f4ac36
7
- data.tar.gz: 41a71eb6c45bf2d89e4a8241f55644ec9e729d8a404113806b50fa1c1fc86ba016c78bdb67bf6f8649e998847f952d045986371783f8690baef112a15dbd66e4
6
+ metadata.gz: 302b047fedd46b189306e26399d5f29b1324f9c195ab9a4b1d4269e4620d177213c0b6f33d5f32641813939ff29241a87b37fa83bf454e31c3a7de236ce7dff3
7
+ data.tar.gz: 046ac56c21b8665eea40a2bee057e7c37daca0f90d85968b2d1f7d4ff0c5881ce89659da4898f2fa9dc0584e1674557a4bd381790d1b291950ec97b94430092a
data/README.md CHANGED
@@ -46,8 +46,8 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -0,0 +1,102 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Dataform
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/dataform/v1beta1/rest"
28
+ # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
29
+ #
30
+ module V1beta1
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "Dataform"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1beta1/{name}",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
57
+
58
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
59
+ uri_method: :get,
60
+ uri_template: "/v1beta1/{name}/locations",
61
+ matches: [
62
+ ["name", %r{^projects/[^/]+/?$}, false]
63
+ ],
64
+ body: nil
65
+ )
66
+ ]
67
+ default_config
68
+ end
69
+ yield @configure if block_given?
70
+ @configure
71
+ end
72
+
73
+ ##
74
+ # @private
75
+ # Configuration class for the google.cloud.dataform.v1beta1 package.
76
+ #
77
+ # This class contains common configuration for all services
78
+ # of the google.cloud.dataform.v1beta1 package.
79
+ #
80
+ # This configuration is for internal use of the client library classes,
81
+ # and it is not intended that the end-users will read or change it.
82
+ #
83
+ class Configuration
84
+ extend ::Gapic::Config
85
+
86
+ # @private
87
+ # Overrides for http bindings for the RPC of the mixins for this package.
88
+ # Services in this package should use these when creating clients for the mixin services.
89
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
90
+ config_attr :bindings_override, {}, ::Hash, nil
91
+
92
+ # @private
93
+ def initialize parent_config = nil
94
+ @parent_config = parent_config unless parent_config.nil?
95
+
96
+ yield self if block_given?
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end
@@ -126,7 +126,7 @@ module Google
126
126
  credentials = @config.credentials
127
127
  # Use self-signed JWT if the endpoint is unchanged from default,
128
128
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
129
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
130
130
  !@config.endpoint.split(".").first.include?("-")
131
131
  credentials ||= Credentials.default scope: @config.scope,
132
132
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -231,13 +231,11 @@ module Google
231
231
  # # Call the list_repositories method.
232
232
  # result = client.list_repositories request
233
233
  #
234
- # # The returned object is of type Gapic::PagedEnumerable. You can
235
- # # iterate over all elements by calling #each, and the enumerable
236
- # # will lazily make API calls to fetch subsequent pages. Other
237
- # # methods are also available for managing paging directly.
238
- # result.each do |response|
234
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
235
+ # # over elements, and API calls will be issued to fetch pages as needed.
236
+ # result.each do |item|
239
237
  # # Each element is of type ::Google::Cloud::Dataform::V1beta1::Repository.
240
- # p response
238
+ # p item
241
239
  # end
242
240
  #
243
241
  def list_repositories request, options = nil
@@ -778,13 +776,11 @@ module Google
778
776
  # # Call the list_workspaces method.
779
777
  # result = client.list_workspaces request
780
778
  #
781
- # # The returned object is of type Gapic::PagedEnumerable. You can
782
- # # iterate over all elements by calling #each, and the enumerable
783
- # # will lazily make API calls to fetch subsequent pages. Other
784
- # # methods are also available for managing paging directly.
785
- # result.each do |response|
779
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
780
+ # # over elements, and API calls will be issued to fetch pages as needed.
781
+ # result.each do |item|
786
782
  # # Each element is of type ::Google::Cloud::Dataform::V1beta1::Workspace.
787
- # p response
783
+ # p item
788
784
  # end
789
785
  #
790
786
  def list_workspaces request, options = nil
@@ -1852,13 +1848,11 @@ module Google
1852
1848
  # # Call the query_directory_contents method.
1853
1849
  # result = client.query_directory_contents request
1854
1850
  #
1855
- # # The returned object is of type Gapic::PagedEnumerable. You can
1856
- # # iterate over all elements by calling #each, and the enumerable
1857
- # # will lazily make API calls to fetch subsequent pages. Other
1858
- # # methods are also available for managing paging directly.
1859
- # result.each do |response|
1851
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1852
+ # # over elements, and API calls will be issued to fetch pages as needed.
1853
+ # result.each do |item|
1860
1854
  # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry.
1861
- # p response
1855
+ # p item
1862
1856
  # end
1863
1857
  #
1864
1858
  def query_directory_contents request, options = nil
@@ -2575,13 +2569,11 @@ module Google
2575
2569
  # # Call the list_compilation_results method.
2576
2570
  # result = client.list_compilation_results request
2577
2571
  #
2578
- # # The returned object is of type Gapic::PagedEnumerable. You can
2579
- # # iterate over all elements by calling #each, and the enumerable
2580
- # # will lazily make API calls to fetch subsequent pages. Other
2581
- # # methods are also available for managing paging directly.
2582
- # result.each do |response|
2572
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2573
+ # # over elements, and API calls will be issued to fetch pages as needed.
2574
+ # result.each do |item|
2583
2575
  # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResult.
2584
- # p response
2576
+ # p item
2585
2577
  # end
2586
2578
  #
2587
2579
  def list_compilation_results request, options = nil
@@ -2854,13 +2846,11 @@ module Google
2854
2846
  # # Call the query_compilation_result_actions method.
2855
2847
  # result = client.query_compilation_result_actions request
2856
2848
  #
2857
- # # The returned object is of type Gapic::PagedEnumerable. You can
2858
- # # iterate over all elements by calling #each, and the enumerable
2859
- # # will lazily make API calls to fetch subsequent pages. Other
2860
- # # methods are also available for managing paging directly.
2861
- # result.each do |response|
2849
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2850
+ # # over elements, and API calls will be issued to fetch pages as needed.
2851
+ # result.each do |item|
2862
2852
  # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResultAction.
2863
- # p response
2853
+ # p item
2864
2854
  # end
2865
2855
  #
2866
2856
  def query_compilation_result_actions request, options = nil
@@ -2957,13 +2947,11 @@ module Google
2957
2947
  # # Call the list_workflow_invocations method.
2958
2948
  # result = client.list_workflow_invocations request
2959
2949
  #
2960
- # # The returned object is of type Gapic::PagedEnumerable. You can
2961
- # # iterate over all elements by calling #each, and the enumerable
2962
- # # will lazily make API calls to fetch subsequent pages. Other
2963
- # # methods are also available for managing paging directly.
2964
- # result.each do |response|
2950
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2951
+ # # over elements, and API calls will be issued to fetch pages as needed.
2952
+ # result.each do |item|
2965
2953
  # # Each element is of type ::Google::Cloud::Dataform::V1beta1::WorkflowInvocation.
2966
- # p response
2954
+ # p item
2967
2955
  # end
2968
2956
  #
2969
2957
  def list_workflow_invocations request, options = nil
@@ -3403,13 +3391,11 @@ module Google
3403
3391
  # # Call the query_workflow_invocation_actions method.
3404
3392
  # result = client.query_workflow_invocation_actions request
3405
3393
  #
3406
- # # The returned object is of type Gapic::PagedEnumerable. You can
3407
- # # iterate over all elements by calling #each, and the enumerable
3408
- # # will lazily make API calls to fetch subsequent pages. Other
3409
- # # methods are also available for managing paging directly.
3410
- # result.each do |response|
3394
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3395
+ # # over elements, and API calls will be issued to fetch pages as needed.
3396
+ # result.each do |item|
3411
3397
  # # Each element is of type ::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction.
3412
- # p response
3398
+ # p item
3413
3399
  # end
3414
3400
  #
3415
3401
  def query_workflow_invocation_actions request, options = nil
@@ -3492,9 +3478,9 @@ module Google
3492
3478
  # * (`String`) The path to a service account key file in JSON format
3493
3479
  # * (`Hash`) A service account key as a Hash
3494
3480
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3495
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3481
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3496
3482
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3497
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3483
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3498
3484
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3499
3485
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3500
3486
  # * (`nil`) indicating no credentials
@@ -3536,7 +3522,9 @@ module Google
3536
3522
  class Configuration
3537
3523
  extend ::Gapic::Config
3538
3524
 
3539
- config_attr :endpoint, "dataform.googleapis.com", ::String
3525
+ DEFAULT_ENDPOINT = "dataform.googleapis.com"
3526
+
3527
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3540
3528
  config_attr :credentials, nil do |value|
3541
3529
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3542
3530
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC