google-cloud-talent-v4beta1 0.2.1 → 0.2.6

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: 172db5ca7d935dc2a23613262e8a3bbba6de0af4359756ce84f8891955c10d9a
4
- data.tar.gz: d47dab26cfcbb051e5ef8d6260b457fcf53646099ca1cde91f75394e9b88ab1b
3
+ metadata.gz: 3915f4d508e0fc11f29043cfa2a1e8848f42ea79d3ace4af227283c00cb41a93
4
+ data.tar.gz: 923a060f1f07f9a7e369a41e9ceb3994e88214e01c7e4207d0292ecc277d4e36
5
5
  SHA512:
6
- metadata.gz: caf6885ce4799c378383c8c9e97fbf5a2309d04b3bdfa06b3a2516977694fc0b5ffff8c4593cbaf3ee4fb747b162ac26580d66ab096eb7553f46a32ece7852fa
7
- data.tar.gz: 9807de0caa72ecf8f2bd0290845971b2967e52d1a9143f98f9a98dfe2efd50974600adbc662637ede1308b24dade400ccf5368d8b9e655e3042acf059e668e8b
6
+ metadata.gz: 37efc3e7ce6fb7232e3d3f655d2ff4aa0b1bce09faa234a5e0f716b27f264651c5b620ecf26b5ccc6c86b9cfb3cc342940b90c22a7867bb89aec67f4511be4e0
7
+ data.tar.gz: 612a6a8b02ec82953a0b0b4bfac3e85083414258ebaec3883f7d4bd9bf221ab42ee9931c154d2ad669e76fe957c9333ca16b0a25d727af9f6eef6951eb3b6413
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.
@@ -39,3 +39,6 @@ module Google
39
39
  end
40
40
  end
41
41
  end
42
+
43
+ helper_path = ::File.join __dir__, "v4beta1", "_helpers.rb"
44
+ require "google/cloud/talent/v4beta1/_helpers" if ::File.file? helper_path
@@ -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
@@ -660,7 +660,7 @@ module Google
660
660
  # Each configuration object is of type `Gapic::Config::Method` and includes
661
661
  # the following configuration fields:
662
662
  #
663
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
663
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
664
664
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
665
665
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
666
666
  # include the following keys:
@@ -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
@@ -675,7 +675,7 @@ module Google
675
675
  # Each configuration object is of type `Gapic::Config::Method` and includes
676
676
  # the following configuration fields:
677
677
  #
678
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
678
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
679
679
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
680
680
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
681
681
  # include the following keys:
@@ -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
@@ -378,7 +378,7 @@ module Google
378
378
  # Each configuration object is of type `Gapic::Config::Method` and includes
379
379
  # the following configuration fields:
380
380
  #
381
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
381
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
382
382
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
383
383
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
384
384
  # include the following keys:
@@ -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
@@ -350,7 +350,7 @@ module Google
350
350
  # Each configuration object is of type `Gapic::Config::Method` and includes
351
351
  # the following configuration fields:
352
352
  #
353
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
353
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
354
354
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
355
355
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
356
356
  # include the following keys:
@@ -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
@@ -1568,7 +1568,7 @@ module Google
1568
1568
  # Each configuration object is of type `Gapic::Config::Method` and includes
1569
1569
  # the following configuration fields:
1570
1570
  #
1571
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
1571
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1572
1572
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1573
1573
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1574
1574
  # include the following keys:
@@ -475,7 +475,7 @@ module Google
475
475
 
476
476
  config_attr :endpoint, "jobs.googleapis.com", ::String
477
477
  config_attr :credentials, nil do |value|
478
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
479
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
480
480
  allowed.any? { |klass| klass === value }
481
481
  end
@@ -503,7 +503,7 @@ module Google
503
503
  def rpcs
504
504
  @rpcs ||= begin
505
505
  parent_rpcs = nil
506
- 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)
507
507
  Rpcs.new parent_rpcs
508
508
  end
509
509
  end
@@ -515,7 +515,7 @@ module Google
515
515
  # Each configuration object is of type `Gapic::Config::Method` and includes
516
516
  # the following configuration fields:
517
517
  #
518
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
518
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
519
519
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
520
520
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
521
521
  # include the following keys:
@@ -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
@@ -928,7 +928,7 @@ module Google
928
928
  # Each configuration object is of type `Gapic::Config::Method` and includes
929
929
  # the following configuration fields:
930
930
  #
931
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
931
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
932
932
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
933
933
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
934
934
  # include the following keys:
@@ -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
@@ -655,7 +655,7 @@ module Google
655
655
  # Each configuration object is of type `Gapic::Config::Method` and includes
656
656
  # the following configuration fields:
657
657
  #
658
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
658
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
659
659
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
660
660
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
661
661
  # include the following keys:
@@ -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.1"
24
+ VERSION = "0.2.6"
25
25
  end
26
26
  end
27
27
  end
@@ -43,12 +43,12 @@ module Google
43
43
  #
44
44
  # The ResourceDescriptor Yaml config will look like:
45
45
  #
46
- # resources:
47
- # - 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}"
46
+ # resources:
47
+ # - 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}"
52
52
  #
53
53
  # Sometimes, resources have multiple patterns, typically because they can
54
54
  # live under multiple parents.
@@ -183,15 +183,24 @@ module Google
183
183
  # }
184
184
  # @!attribute [rw] plural
185
185
  # @return [::String]
186
- # The plural name used in the resource name, such as 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
186
+ # The plural name used in the resource name and permission names, such as
187
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
188
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189
+ # concept of the `plural` field in k8s CRD spec
189
190
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191
+ #
192
+ # Note: The plural form is required even for singleton resources. See
193
+ # https://aip.dev/156
190
194
  # @!attribute [rw] singular
191
195
  # @return [::String]
192
196
  # The same concept of the `singular` field in k8s CRD spec
193
197
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
198
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
199
+ # @!attribute [rw] style
200
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
201
+ # Style flag(s) for this resource.
202
+ # These indicate that a resource is expected to conform to a given
203
+ # style. See the specific style flags for additional information.
195
204
  class ResourceDescriptor
196
205
  include ::Google::Protobuf::MessageExts
197
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -211,6 +220,22 @@ module Google
211
220
  # that from being necessary once there are multiple patterns.)
212
221
  FUTURE_MULTI_PATTERN = 2
213
222
  end
223
+
224
+ # A flag representing a specific style that a resource claims to conform to.
225
+ module Style
226
+ # The unspecified value. Do not use.
227
+ STYLE_UNSPECIFIED = 0
228
+
229
+ # This resource is intended to be "declarative-friendly".
230
+ #
231
+ # Declarative-friendly resources must be more strictly consistent, and
232
+ # setting this to true communicates to tools that this resource should
233
+ # adhere to declarative-friendly expectations.
234
+ #
235
+ # Note: This is used by the API linter (linter.aip.dev) to enable
236
+ # additional checks.
237
+ DECLARATIVE_FRIENDLY = 1
238
+ end
214
239
  end
215
240
 
216
241
  # Defines a proto annotation that describes a string field that refers to
@@ -226,6 +251,17 @@ module Google
226
251
  # type: "pubsub.googleapis.com/Topic"
227
252
  # }];
228
253
  # }
254
+ #
255
+ # Occasionally, a field may reference an arbitrary resource. In this case,
256
+ # APIs use the special value * in their resource reference.
257
+ #
258
+ # Example:
259
+ #
260
+ # message GetIamPolicyRequest {
261
+ # string resource = 2 [(google.api.resource_reference) = {
262
+ # type: "*"
263
+ # }];
264
+ # }
229
265
  # @!attribute [rw] child_type
230
266
  # @return [::String]
231
267
  # The resource type of a child collection that the annotated field
@@ -234,11 +270,11 @@ module Google
234
270
  #
235
271
  # Example:
236
272
  #
237
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
240
- # };
241
- # }
273
+ # message ListLogEntriesRequest {
274
+ # string parent = 1 [(google.api.resource_reference) = {
275
+ # child_type: "logging.googleapis.com/LogEntry"
276
+ # };
277
+ # }
242
278
  class ResourceReference
243
279
  include ::Google::Protobuf::MessageExts
244
280
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -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.1
4
+ version: 0.2.6
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-26 00:00:00.000000000 Z
11
+ date: 2021-01-20 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
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
271
  - !ruby/object:Gem::Version
272
272
  version: '0'
273
273
  requirements: []
274
- rubygems_version: 3.0.6
274
+ rubygems_version: 3.2.6
275
275
  signing_key:
276
276
  specification_version: 4
277
277
  summary: API Client library for the Cloud Talent Solution V4beta1 API