google-cloud-talent-v4beta1 0.2.0 → 0.2.5

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: 25f09b23d3d03ba35560787724d7b70244e3b12f8fcbefcee1ae2e873c75f564
4
- data.tar.gz: 2d6188e275afa7fe828406ed9037993a148543eb3dbbe239d13538bbc5c5ce0b
3
+ metadata.gz: 16fd7e73cd683a9cb25cd7125864d0bd532e59c3972b61615589b52d18fe0d20
4
+ data.tar.gz: 7e110d3dd8be88feabfe495af48eae52819bc46d9f896ec0d12533498143101d
5
5
  SHA512:
6
- metadata.gz: 9cf558c05ad059ca8e835a170a890a0400499d7b9809e250063226876a34673c4345093a969646e553c28da315d69a11941bdbf10d5c5a734de28ecc9a0776a3
7
- data.tar.gz: 21d6549cd757ee855413887b1cf405a74fba280ee05594a7c15a82d2edb44bf5d3d21c222a8664219eeaf27a1005eb7dc8eb316ada752cf7214b73bf98d2a725
6
+ metadata.gz: 460c2d9b18171411ca723a5d85b1462db2a2bbc0b35ce078c88d93ae564de9ecd4ff80e74c49ded13937af7ac1cbe1db96f952e0febe66d5e867419d389ba062
7
+ data.tar.gz: 83c40385b886315ccc347416137dd8c39a959d3ec9ddcaec655b24cc87611b3145af5a3a5c147a808fc9d802a1ce3c1df3175fea50fcd520e50bd2f0bb67eda9
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/jobs.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.create_application request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-talent-v4beta1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/solutions/talent-solution)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -73,7 +73,7 @@ module Google
73
73
  initial_delay: 0.1,
74
74
  max_delay: 60.0,
75
75
  multiplier: 1.3,
76
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
76
+ retry_codes: [4, 14]
77
77
  }
78
78
 
79
79
  default_config.rpcs.update_application.timeout = 30.0
@@ -83,7 +83,7 @@ module Google
83
83
  initial_delay: 0.1,
84
84
  max_delay: 60.0,
85
85
  multiplier: 1.3,
86
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
86
+ retry_codes: [4, 14]
87
87
  }
88
88
 
89
89
  default_config.rpcs.list_applications.timeout = 30.0
@@ -91,7 +91,7 @@ module Google
91
91
  initial_delay: 0.1,
92
92
  max_delay: 60.0,
93
93
  multiplier: 1.3,
94
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
94
+ retry_codes: [4, 14]
95
95
  }
96
96
 
97
97
  default_config
@@ -620,7 +620,7 @@ module Google
620
620
 
621
621
  config_attr :endpoint, "jobs.googleapis.com", ::String
622
622
  config_attr :credentials, nil do |value|
623
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
623
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
624
624
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
625
625
  allowed.any? { |klass| klass === value }
626
626
  end
@@ -648,7 +648,7 @@ module Google
648
648
  def rpcs
649
649
  @rpcs ||= begin
650
650
  parent_rpcs = nil
651
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
651
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
652
652
  Rpcs.new parent_rpcs
653
653
  end
654
654
  end
@@ -35,15 +35,15 @@ module Google
35
35
  self.service_name = 'google.cloud.talent.v4beta1.ApplicationService'
36
36
 
37
37
  # Creates a new application entity.
38
- rpc :CreateApplication, CreateApplicationRequest, Application
38
+ rpc :CreateApplication, Google::Cloud::Talent::V4beta1::CreateApplicationRequest, Google::Cloud::Talent::V4beta1::Application
39
39
  # Retrieves specified application.
40
- rpc :GetApplication, GetApplicationRequest, Application
40
+ rpc :GetApplication, Google::Cloud::Talent::V4beta1::GetApplicationRequest, Google::Cloud::Talent::V4beta1::Application
41
41
  # Updates specified application.
42
- rpc :UpdateApplication, UpdateApplicationRequest, Application
42
+ rpc :UpdateApplication, Google::Cloud::Talent::V4beta1::UpdateApplicationRequest, Google::Cloud::Talent::V4beta1::Application
43
43
  # Deletes specified application.
44
- rpc :DeleteApplication, DeleteApplicationRequest, Google::Protobuf::Empty
44
+ rpc :DeleteApplication, Google::Cloud::Talent::V4beta1::DeleteApplicationRequest, Google::Protobuf::Empty
45
45
  # Lists all applications associated with the profile.
46
- rpc :ListApplications, ListApplicationsRequest, ListApplicationsResponse
46
+ rpc :ListApplications, Google::Cloud::Talent::V4beta1::ListApplicationsRequest, Google::Cloud::Talent::V4beta1::ListApplicationsResponse
47
47
  end
48
48
 
49
49
  Stub = Service.rpc_stub_class
@@ -72,7 +72,7 @@ module Google
72
72
  initial_delay: 0.1,
73
73
  max_delay: 60.0,
74
74
  multiplier: 1.3,
75
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
75
+ retry_codes: [4, 14]
76
76
  }
77
77
 
78
78
  default_config.rpcs.update_company.timeout = 30.0
@@ -82,7 +82,7 @@ module Google
82
82
  initial_delay: 0.1,
83
83
  max_delay: 60.0,
84
84
  multiplier: 1.3,
85
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
85
+ retry_codes: [4, 14]
86
86
  }
87
87
 
88
88
  default_config.rpcs.list_companies.timeout = 30.0
@@ -90,7 +90,7 @@ module Google
90
90
  initial_delay: 0.1,
91
91
  max_delay: 60.0,
92
92
  multiplier: 1.3,
93
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
93
+ retry_codes: [4, 14]
94
94
  }
95
95
 
96
96
  default_config
@@ -635,7 +635,7 @@ module Google
635
635
 
636
636
  config_attr :endpoint, "jobs.googleapis.com", ::String
637
637
  config_attr :credentials, nil do |value|
638
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
638
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
639
639
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
640
640
  allowed.any? { |klass| klass === value }
641
641
  end
@@ -663,7 +663,7 @@ module Google
663
663
  def rpcs
664
664
  @rpcs ||= begin
665
665
  parent_rpcs = nil
666
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
666
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
667
667
  Rpcs.new parent_rpcs
668
668
  end
669
669
  end
@@ -34,16 +34,16 @@ module Google
34
34
  self.service_name = 'google.cloud.talent.v4beta1.CompanyService'
35
35
 
36
36
  # Creates a new company entity.
37
- rpc :CreateCompany, CreateCompanyRequest, Company
37
+ rpc :CreateCompany, Google::Cloud::Talent::V4beta1::CreateCompanyRequest, Google::Cloud::Talent::V4beta1::Company
38
38
  # Retrieves specified company.
39
- rpc :GetCompany, GetCompanyRequest, Company
39
+ rpc :GetCompany, Google::Cloud::Talent::V4beta1::GetCompanyRequest, Google::Cloud::Talent::V4beta1::Company
40
40
  # Updates specified company.
41
- rpc :UpdateCompany, UpdateCompanyRequest, Company
41
+ rpc :UpdateCompany, Google::Cloud::Talent::V4beta1::UpdateCompanyRequest, Google::Cloud::Talent::V4beta1::Company
42
42
  # Deletes specified company.
43
43
  # Prerequisite: The company has no jobs associated with it.
44
- rpc :DeleteCompany, DeleteCompanyRequest, Google::Protobuf::Empty
44
+ rpc :DeleteCompany, Google::Cloud::Talent::V4beta1::DeleteCompanyRequest, Google::Protobuf::Empty
45
45
  # Lists all companies associated with the project.
46
- rpc :ListCompanies, ListCompaniesRequest, ListCompaniesResponse
46
+ rpc :ListCompanies, Google::Cloud::Talent::V4beta1::ListCompaniesRequest, Google::Cloud::Talent::V4beta1::ListCompaniesResponse
47
47
  end
48
48
 
49
49
  Stub = Service.rpc_stub_class
@@ -70,7 +70,7 @@ module Google
70
70
  initial_delay: 0.1,
71
71
  max_delay: 60.0,
72
72
  multiplier: 1.3,
73
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
73
+ retry_codes: [4, 14]
74
74
  }
75
75
 
76
76
  default_config
@@ -338,7 +338,7 @@ module Google
338
338
 
339
339
  config_attr :endpoint, "jobs.googleapis.com", ::String
340
340
  config_attr :credentials, nil do |value|
341
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
341
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
342
342
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
343
343
  allowed.any? { |klass| klass === value }
344
344
  end
@@ -366,7 +366,7 @@ module Google
366
366
  def rpcs
367
367
  @rpcs ||= begin
368
368
  parent_rpcs = nil
369
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
369
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
370
370
  Rpcs.new parent_rpcs
371
371
  end
372
372
  end
@@ -35,7 +35,7 @@ module Google
35
35
 
36
36
  # Completes the specified prefix with keyword suggestions.
37
37
  # Intended for use by a job search auto-complete search box.
38
- rpc :CompleteQuery, CompleteQueryRequest, CompleteQueryResponse
38
+ rpc :CompleteQuery, Google::Cloud::Talent::V4beta1::CompleteQueryRequest, Google::Cloud::Talent::V4beta1::CompleteQueryResponse
39
39
  end
40
40
 
41
41
  Stub = Service.rpc_stub_class
@@ -310,7 +310,7 @@ module Google
310
310
 
311
311
  config_attr :endpoint, "jobs.googleapis.com", ::String
312
312
  config_attr :credentials, nil do |value|
313
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
313
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
314
314
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
315
315
  allowed.any? { |klass| klass === value }
316
316
  end
@@ -338,7 +338,7 @@ module Google
338
338
  def rpcs
339
339
  @rpcs ||= begin
340
340
  parent_rpcs = nil
341
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
341
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
342
342
  Rpcs.new parent_rpcs
343
343
  end
344
344
  end
@@ -40,7 +40,7 @@ module Google
40
40
  # [Learn
41
41
  # more](https://cloud.google.com/talent-solution/docs/management-tools)
42
42
  # about self service tools.
43
- rpc :CreateClientEvent, CreateClientEventRequest, ClientEvent
43
+ rpc :CreateClientEvent, Google::Cloud::Talent::V4beta1::CreateClientEventRequest, Google::Cloud::Talent::V4beta1::ClientEvent
44
44
  end
45
45
 
46
46
  Stub = Service.rpc_stub_class
@@ -74,7 +74,7 @@ module Google
74
74
  initial_delay: 0.1,
75
75
  max_delay: 60.0,
76
76
  multiplier: 1.3,
77
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
77
+ retry_codes: [4, 14]
78
78
  }
79
79
 
80
80
  default_config.rpcs.update_job.timeout = 30.0
@@ -86,7 +86,7 @@ module Google
86
86
  initial_delay: 0.1,
87
87
  max_delay: 60.0,
88
88
  multiplier: 1.3,
89
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
89
+ retry_codes: [4, 14]
90
90
  }
91
91
 
92
92
  default_config.rpcs.batch_delete_jobs.timeout = 30.0
@@ -96,7 +96,7 @@ module Google
96
96
  initial_delay: 0.1,
97
97
  max_delay: 60.0,
98
98
  multiplier: 1.3,
99
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
99
+ retry_codes: [4, 14]
100
100
  }
101
101
 
102
102
  default_config.rpcs.search_jobs.timeout = 30.0
@@ -1528,7 +1528,7 @@ module Google
1528
1528
 
1529
1529
  config_attr :endpoint, "jobs.googleapis.com", ::String
1530
1530
  config_attr :credentials, nil do |value|
1531
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1531
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1532
1532
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1533
1533
  allowed.any? { |klass| klass === value }
1534
1534
  end
@@ -1556,7 +1556,7 @@ module Google
1556
1556
  def rpcs
1557
1557
  @rpcs ||= begin
1558
1558
  parent_rpcs = nil
1559
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
1559
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1560
1560
  Rpcs.new parent_rpcs
1561
1561
  end
1562
1562
  end
@@ -85,6 +85,8 @@ module Google
85
85
  if credentials.is_a?(String) || credentials.is_a?(Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
+ @quota_project_id = @config.quota_project
89
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
88
90
 
89
91
  @operations_stub = ::Gapic::ServiceStub.new(
90
92
  ::Google::Longrunning::Operations::Stub,
@@ -473,7 +475,7 @@ module Google
473
475
 
474
476
  config_attr :endpoint, "jobs.googleapis.com", ::String
475
477
  config_attr :credentials, nil do |value|
476
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
477
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
478
480
  allowed.any? { |klass| klass === value }
479
481
  end
@@ -501,7 +503,7 @@ module Google
501
503
  def rpcs
502
504
  @rpcs ||= begin
503
505
  parent_rpcs = nil
504
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
506
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
505
507
  Rpcs.new parent_rpcs
506
508
  end
507
509
  end
@@ -37,34 +37,34 @@ module Google
37
37
  #
38
38
  # Typically, the job becomes searchable within 10 seconds, but it may take
39
39
  # up to 5 minutes.
40
- rpc :CreateJob, CreateJobRequest, Job
40
+ rpc :CreateJob, Google::Cloud::Talent::V4beta1::CreateJobRequest, Google::Cloud::Talent::V4beta1::Job
41
41
  # Begins executing a batch create jobs operation.
42
- rpc :BatchCreateJobs, BatchCreateJobsRequest, Google::Longrunning::Operation
42
+ rpc :BatchCreateJobs, Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest, Google::Longrunning::Operation
43
43
  # Retrieves the specified job, whose status is OPEN or recently EXPIRED
44
44
  # within the last 90 days.
45
- rpc :GetJob, GetJobRequest, Job
45
+ rpc :GetJob, Google::Cloud::Talent::V4beta1::GetJobRequest, Google::Cloud::Talent::V4beta1::Job
46
46
  # Updates specified job.
47
47
  #
48
48
  # Typically, updated contents become visible in search results within 10
49
49
  # seconds, but it may take up to 5 minutes.
50
- rpc :UpdateJob, UpdateJobRequest, Job
50
+ rpc :UpdateJob, Google::Cloud::Talent::V4beta1::UpdateJobRequest, Google::Cloud::Talent::V4beta1::Job
51
51
  # Begins executing a batch update jobs operation.
52
- rpc :BatchUpdateJobs, BatchUpdateJobsRequest, Google::Longrunning::Operation
52
+ rpc :BatchUpdateJobs, Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest, Google::Longrunning::Operation
53
53
  # Deletes the specified job.
54
54
  #
55
55
  # Typically, the job becomes unsearchable within 10 seconds, but it may take
56
56
  # up to 5 minutes.
57
- rpc :DeleteJob, DeleteJobRequest, Google::Protobuf::Empty
57
+ rpc :DeleteJob, Google::Cloud::Talent::V4beta1::DeleteJobRequest, Google::Protobuf::Empty
58
58
  # Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
59
- rpc :BatchDeleteJobs, BatchDeleteJobsRequest, Google::Protobuf::Empty
59
+ rpc :BatchDeleteJobs, Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest, Google::Protobuf::Empty
60
60
  # Lists jobs by filter.
61
- rpc :ListJobs, ListJobsRequest, ListJobsResponse
61
+ rpc :ListJobs, Google::Cloud::Talent::V4beta1::ListJobsRequest, Google::Cloud::Talent::V4beta1::ListJobsResponse
62
62
  # Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
63
63
  #
64
64
  # This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs
65
65
  # present in the database, and only returns jobs that the caller has
66
66
  # permission to search against.
67
- rpc :SearchJobs, SearchJobsRequest, SearchJobsResponse
67
+ rpc :SearchJobs, Google::Cloud::Talent::V4beta1::SearchJobsRequest, Google::Cloud::Talent::V4beta1::SearchJobsResponse
68
68
  # Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
69
69
  #
70
70
  # This API call is intended for the use case of targeting passive job
@@ -75,7 +75,7 @@ module Google
75
75
  # This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs
76
76
  # present in the database, and only returns jobs the caller has
77
77
  # permission to search against.
78
- rpc :SearchJobsForAlert, SearchJobsRequest, SearchJobsResponse
78
+ rpc :SearchJobsForAlert, Google::Cloud::Talent::V4beta1::SearchJobsRequest, Google::Cloud::Talent::V4beta1::SearchJobsResponse
79
79
  end
80
80
 
81
81
  Stub = Service.rpc_stub_class
@@ -71,7 +71,7 @@ module Google
71
71
  initial_delay: 0.1,
72
72
  max_delay: 60.0,
73
73
  multiplier: 1.3,
74
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
74
+ retry_codes: [4, 14]
75
75
  }
76
76
 
77
77
  default_config.rpcs.create_profile.timeout = 30.0
@@ -81,7 +81,7 @@ module Google
81
81
  initial_delay: 0.1,
82
82
  max_delay: 60.0,
83
83
  multiplier: 1.3,
84
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
84
+ retry_codes: [4, 14]
85
85
  }
86
86
 
87
87
  default_config.rpcs.update_profile.timeout = 30.0
@@ -91,7 +91,7 @@ module Google
91
91
  initial_delay: 0.1,
92
92
  max_delay: 60.0,
93
93
  multiplier: 1.3,
94
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
94
+ retry_codes: [4, 14]
95
95
  }
96
96
 
97
97
  default_config.rpcs.search_profiles.timeout = 30.0
@@ -888,7 +888,7 @@ module Google
888
888
 
889
889
  config_attr :endpoint, "jobs.googleapis.com", ::String
890
890
  config_attr :credentials, nil do |value|
891
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
891
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
892
892
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
893
893
  allowed.any? { |klass| klass === value }
894
894
  end
@@ -916,7 +916,7 @@ module Google
916
916
  def rpcs
917
917
  @rpcs ||= begin
918
918
  parent_rpcs = nil
919
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
919
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
920
920
  Rpcs.new parent_rpcs
921
921
  end
922
922
  end
@@ -35,24 +35,24 @@ module Google
35
35
  self.service_name = 'google.cloud.talent.v4beta1.ProfileService'
36
36
 
37
37
  # Lists profiles by filter. The order is unspecified.
38
- rpc :ListProfiles, ListProfilesRequest, ListProfilesResponse
38
+ rpc :ListProfiles, Google::Cloud::Talent::V4beta1::ListProfilesRequest, Google::Cloud::Talent::V4beta1::ListProfilesResponse
39
39
  # Creates and returns a new profile.
40
- rpc :CreateProfile, CreateProfileRequest, Profile
40
+ rpc :CreateProfile, Google::Cloud::Talent::V4beta1::CreateProfileRequest, Google::Cloud::Talent::V4beta1::Profile
41
41
  # Gets the specified profile.
42
- rpc :GetProfile, GetProfileRequest, Profile
42
+ rpc :GetProfile, Google::Cloud::Talent::V4beta1::GetProfileRequest, Google::Cloud::Talent::V4beta1::Profile
43
43
  # Updates the specified profile and returns the updated result.
44
- rpc :UpdateProfile, UpdateProfileRequest, Profile
44
+ rpc :UpdateProfile, Google::Cloud::Talent::V4beta1::UpdateProfileRequest, Google::Cloud::Talent::V4beta1::Profile
45
45
  # Deletes the specified profile.
46
46
  # Prerequisite: The profile has no associated applications or assignments
47
47
  # associated.
48
- rpc :DeleteProfile, DeleteProfileRequest, Google::Protobuf::Empty
48
+ rpc :DeleteProfile, Google::Cloud::Talent::V4beta1::DeleteProfileRequest, Google::Protobuf::Empty
49
49
  # Searches for profiles within a tenant.
50
50
  #
51
51
  # For example, search by raw queries "software engineer in Mountain View" or
52
52
  # search by structured filters (location filter, education filter, etc.).
53
53
  #
54
54
  # See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information.
55
- rpc :SearchProfiles, SearchProfilesRequest, SearchProfilesResponse
55
+ rpc :SearchProfiles, Google::Cloud::Talent::V4beta1::SearchProfilesRequest, Google::Cloud::Talent::V4beta1::SearchProfilesResponse
56
56
  end
57
57
 
58
58
  Stub = Service.rpc_stub_class
@@ -72,7 +72,7 @@ module Google
72
72
  initial_delay: 0.1,
73
73
  max_delay: 60.0,
74
74
  multiplier: 1.3,
75
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
75
+ retry_codes: [4, 14]
76
76
  }
77
77
 
78
78
  default_config.rpcs.update_tenant.timeout = 30.0
@@ -82,7 +82,7 @@ module Google
82
82
  initial_delay: 0.1,
83
83
  max_delay: 60.0,
84
84
  multiplier: 1.3,
85
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
85
+ retry_codes: [4, 14]
86
86
  }
87
87
 
88
88
  default_config.rpcs.list_tenants.timeout = 30.0
@@ -90,7 +90,7 @@ module Google
90
90
  initial_delay: 0.1,
91
91
  max_delay: 60.0,
92
92
  multiplier: 1.3,
93
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
93
+ retry_codes: [4, 14]
94
94
  }
95
95
 
96
96
  default_config
@@ -615,7 +615,7 @@ module Google
615
615
 
616
616
  config_attr :endpoint, "jobs.googleapis.com", ::String
617
617
  config_attr :credentials, nil do |value|
618
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
618
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
619
619
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
620
620
  allowed.any? { |klass| klass === value }
621
621
  end
@@ -643,7 +643,7 @@ module Google
643
643
  def rpcs
644
644
  @rpcs ||= begin
645
645
  parent_rpcs = nil
646
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
646
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
647
647
  Rpcs.new parent_rpcs
648
648
  end
649
649
  end
@@ -34,15 +34,15 @@ module Google
34
34
  self.service_name = 'google.cloud.talent.v4beta1.TenantService'
35
35
 
36
36
  # Creates a new tenant entity.
37
- rpc :CreateTenant, CreateTenantRequest, Tenant
37
+ rpc :CreateTenant, Google::Cloud::Talent::V4beta1::CreateTenantRequest, Google::Cloud::Talent::V4beta1::Tenant
38
38
  # Retrieves specified tenant.
39
- rpc :GetTenant, GetTenantRequest, Tenant
39
+ rpc :GetTenant, Google::Cloud::Talent::V4beta1::GetTenantRequest, Google::Cloud::Talent::V4beta1::Tenant
40
40
  # Updates specified tenant.
41
- rpc :UpdateTenant, UpdateTenantRequest, Tenant
41
+ rpc :UpdateTenant, Google::Cloud::Talent::V4beta1::UpdateTenantRequest, Google::Cloud::Talent::V4beta1::Tenant
42
42
  # Deletes specified tenant.
43
- rpc :DeleteTenant, DeleteTenantRequest, Google::Protobuf::Empty
43
+ rpc :DeleteTenant, Google::Cloud::Talent::V4beta1::DeleteTenantRequest, Google::Protobuf::Empty
44
44
  # Lists all tenants associated with the project.
45
- rpc :ListTenants, ListTenantsRequest, ListTenantsResponse
45
+ rpc :ListTenants, Google::Cloud::Talent::V4beta1::ListTenantsRequest, Google::Cloud::Talent::V4beta1::ListTenantsResponse
46
46
  end
47
47
 
48
48
  Stub = Service.rpc_stub_class
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Talent
23
23
  module V4beta1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.5"
25
25
  end
26
26
  end
27
27
  end
@@ -429,7 +429,7 @@ module Google
429
429
  # or territory. If this field is not set, application behavior is biased
430
430
  # toward the United States by default.
431
431
  #
432
- # See https://cldr.unicode.org/ and
432
+ # See
433
433
  # https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
434
434
  # for details. Example: "CH" for Switzerland.
435
435
  # Note that this filter is not applicable for Profile Search related queries.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-talent-v4beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-20 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +165,6 @@ files:
165
165
  - LICENSE.md
166
166
  - README.md
167
167
  - lib/google-cloud-talent-v4beta1.rb
168
- - lib/google/cloud/common_resources_pb.rb
169
168
  - lib/google/cloud/talent/v4beta1.rb
170
169
  - lib/google/cloud/talent/v4beta1/application_pb.rb
171
170
  - lib/google/cloud/talent/v4beta1/application_service.rb
@@ -272,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
271
  - !ruby/object:Gem::Version
273
272
  version: '0'
274
273
  requirements: []
275
- rubygems_version: 3.0.6
274
+ rubygems_version: 3.1.3
276
275
  signing_key:
277
276
  specification_version: 4
278
277
  summary: API Client library for the Cloud Talent Solution V4beta1 API
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end