google-cloud-monitoring-v3 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +2 -2
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +18 -18
- data/lib/google/cloud/monitoring/v3/alert_policy_service/paths.rb +4 -4
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +25 -25
- data/lib/google/cloud/monitoring/v3/group_service/paths.rb +2 -2
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +30 -30
- data/lib/google/cloud/monitoring/v3/metric_service/paths.rb +4 -4
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +35 -35
- data/lib/google/cloud/monitoring/v3/notification_channel_service/paths.rb +4 -4
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +32 -32
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb +4 -4
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +22 -22
- data/lib/google/cloud/monitoring/v3/uptime_check_service/paths.rb +2 -2
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- metadata +6 -6
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# @return [::String]
|
55
55
|
def alert_policy_path **args
|
56
56
|
resources = {
|
57
|
-
"alert_policy:project"
|
57
|
+
"alert_policy:project" => (proc do |project:, alert_policy:|
|
58
58
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
59
|
|
60
60
|
"projects/#{project}/alertPolicies/#{alert_policy}"
|
@@ -64,7 +64,7 @@ module Google
|
|
64
64
|
|
65
65
|
"organizations/#{organization}/alertPolicies/#{alert_policy}"
|
66
66
|
end),
|
67
|
-
"alert_policy:folder"
|
67
|
+
"alert_policy:folder" => (proc do |folder:, alert_policy:|
|
68
68
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
69
69
|
|
70
70
|
"folders/#{folder}/alertPolicies/#{alert_policy}"
|
@@ -109,7 +109,7 @@ module Google
|
|
109
109
|
# @return [::String]
|
110
110
|
def alert_policy_condition_path **args
|
111
111
|
resources = {
|
112
|
-
"alert_policy:condition:project"
|
112
|
+
"alert_policy:condition:project" => (proc do |project:, alert_policy:, condition:|
|
113
113
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
114
114
|
raise ::ArgumentError, "alert_policy cannot contain /" if alert_policy.to_s.include? "/"
|
115
115
|
|
@@ -121,7 +121,7 @@ module Google
|
|
121
121
|
|
122
122
|
"organizations/#{organization}/alertPolicies/#{alert_policy}/conditions/#{condition}"
|
123
123
|
end),
|
124
|
-
"alert_policy:condition:folder"
|
124
|
+
"alert_policy:condition:folder" => (proc do |folder:, alert_policy:, condition:|
|
125
125
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
126
126
|
raise ::ArgumentError, "alert_policy cannot contain /" if alert_policy.to_s.include? "/"
|
127
127
|
|
@@ -71,7 +71,7 @@ module Google
|
|
71
71
|
parent_config = while namespace.any?
|
72
72
|
parent_name = namespace.join "::"
|
73
73
|
parent_const = const_get parent_name
|
74
|
-
break parent_const.configure if parent_const
|
74
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
75
75
|
namespace.pop
|
76
76
|
end
|
77
77
|
default_config = Client::Configuration.new parent_config
|
@@ -79,17 +79,17 @@ module Google
|
|
79
79
|
default_config.rpcs.list_groups.timeout = 30.0
|
80
80
|
default_config.rpcs.list_groups.retry_policy = {
|
81
81
|
initial_delay: 0.1,
|
82
|
-
|
83
|
-
|
84
|
-
|
82
|
+
max_delay: 30.0,
|
83
|
+
multiplier: 1.3,
|
84
|
+
retry_codes: [4, 14]
|
85
85
|
}
|
86
86
|
|
87
87
|
default_config.rpcs.get_group.timeout = 30.0
|
88
88
|
default_config.rpcs.get_group.retry_policy = {
|
89
89
|
initial_delay: 0.1,
|
90
|
-
|
91
|
-
|
92
|
-
|
90
|
+
max_delay: 30.0,
|
91
|
+
multiplier: 1.3,
|
92
|
+
retry_codes: [4, 14]
|
93
93
|
}
|
94
94
|
|
95
95
|
default_config.rpcs.create_group.timeout = 30.0
|
@@ -97,25 +97,25 @@ module Google
|
|
97
97
|
default_config.rpcs.update_group.timeout = 30.0
|
98
98
|
default_config.rpcs.update_group.retry_policy = {
|
99
99
|
initial_delay: 0.1,
|
100
|
-
|
101
|
-
|
102
|
-
|
100
|
+
max_delay: 30.0,
|
101
|
+
multiplier: 1.3,
|
102
|
+
retry_codes: [4, 14]
|
103
103
|
}
|
104
104
|
|
105
105
|
default_config.rpcs.delete_group.timeout = 30.0
|
106
106
|
default_config.rpcs.delete_group.retry_policy = {
|
107
107
|
initial_delay: 0.1,
|
108
|
-
|
109
|
-
|
110
|
-
|
108
|
+
max_delay: 30.0,
|
109
|
+
multiplier: 1.3,
|
110
|
+
retry_codes: [4, 14]
|
111
111
|
}
|
112
112
|
|
113
113
|
default_config.rpcs.list_group_members.timeout = 30.0
|
114
114
|
default_config.rpcs.list_group_members.retry_policy = {
|
115
115
|
initial_delay: 0.1,
|
116
|
-
|
117
|
-
|
118
|
-
|
116
|
+
max_delay: 30.0,
|
117
|
+
multiplier: 1.3,
|
118
|
+
retry_codes: [4, 14]
|
119
119
|
}
|
120
120
|
|
121
121
|
default_config
|
@@ -184,7 +184,7 @@ module Google
|
|
184
184
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
185
185
|
@config.endpoint == Client.configure.endpoint &&
|
186
186
|
!@config.endpoint.split(".").first.include?("-")
|
187
|
-
credentials ||= Credentials.default scope:
|
187
|
+
credentials ||= Credentials.default scope: @config.scope,
|
188
188
|
enable_self_signed_jwt: enable_self_signed_jwt
|
189
189
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
190
190
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -766,7 +766,7 @@ module Google
|
|
766
766
|
config_attr :scope, nil, ::String, ::Array, nil
|
767
767
|
config_attr :lib_name, nil, ::String, nil
|
768
768
|
config_attr :lib_version, nil, ::String, nil
|
769
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
769
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
770
770
|
config_attr :interceptors, nil, ::Array, nil
|
771
771
|
config_attr :timeout, nil, ::Numeric, nil
|
772
772
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -787,7 +787,7 @@ module Google
|
|
787
787
|
def rpcs
|
788
788
|
@rpcs ||= begin
|
789
789
|
parent_rpcs = nil
|
790
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
790
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
791
791
|
Rpcs.new parent_rpcs
|
792
792
|
end
|
793
793
|
end
|
@@ -843,17 +843,17 @@ module Google
|
|
843
843
|
|
844
844
|
# @private
|
845
845
|
def initialize parent_rpcs = nil
|
846
|
-
list_groups_config = parent_rpcs
|
846
|
+
list_groups_config = parent_rpcs.list_groups if parent_rpcs.respond_to? :list_groups
|
847
847
|
@list_groups = ::Gapic::Config::Method.new list_groups_config
|
848
|
-
get_group_config = parent_rpcs
|
848
|
+
get_group_config = parent_rpcs.get_group if parent_rpcs.respond_to? :get_group
|
849
849
|
@get_group = ::Gapic::Config::Method.new get_group_config
|
850
|
-
create_group_config = parent_rpcs
|
850
|
+
create_group_config = parent_rpcs.create_group if parent_rpcs.respond_to? :create_group
|
851
851
|
@create_group = ::Gapic::Config::Method.new create_group_config
|
852
|
-
update_group_config = parent_rpcs
|
852
|
+
update_group_config = parent_rpcs.update_group if parent_rpcs.respond_to? :update_group
|
853
853
|
@update_group = ::Gapic::Config::Method.new update_group_config
|
854
|
-
delete_group_config = parent_rpcs
|
854
|
+
delete_group_config = parent_rpcs.delete_group if parent_rpcs.respond_to? :delete_group
|
855
855
|
@delete_group = ::Gapic::Config::Method.new delete_group_config
|
856
|
-
list_group_members_config = parent_rpcs
|
856
|
+
list_group_members_config = parent_rpcs.list_group_members if parent_rpcs.respond_to? :list_group_members
|
857
857
|
@list_group_members = ::Gapic::Config::Method.new list_group_members_config
|
858
858
|
|
859
859
|
yield self if block_given?
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
# @return [::String]
|
69
69
|
def group_path **args
|
70
70
|
resources = {
|
71
|
-
"group:project"
|
71
|
+
"group:project" => (proc do |project:, group:|
|
72
72
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
73
73
|
|
74
74
|
"projects/#{project}/groups/#{group}"
|
@@ -78,7 +78,7 @@ module Google
|
|
78
78
|
|
79
79
|
"organizations/#{organization}/groups/#{group}"
|
80
80
|
end),
|
81
|
-
"folder:group"
|
81
|
+
"folder:group" => (proc do |folder:, group:|
|
82
82
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
83
83
|
|
84
84
|
"folders/#{folder}/groups/#{group}"
|
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
parent_config = while namespace.any?
|
62
62
|
parent_name = namespace.join "::"
|
63
63
|
parent_const = const_get parent_name
|
64
|
-
break parent_const.configure if parent_const
|
64
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
65
65
|
namespace.pop
|
66
66
|
end
|
67
67
|
default_config = Client::Configuration.new parent_config
|
@@ -69,33 +69,33 @@ module Google
|
|
69
69
|
default_config.rpcs.list_monitored_resource_descriptors.timeout = 30.0
|
70
70
|
default_config.rpcs.list_monitored_resource_descriptors.retry_policy = {
|
71
71
|
initial_delay: 0.1,
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
max_delay: 30.0,
|
73
|
+
multiplier: 1.3,
|
74
|
+
retry_codes: [4, 14]
|
75
75
|
}
|
76
76
|
|
77
77
|
default_config.rpcs.get_monitored_resource_descriptor.timeout = 30.0
|
78
78
|
default_config.rpcs.get_monitored_resource_descriptor.retry_policy = {
|
79
79
|
initial_delay: 0.1,
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
max_delay: 30.0,
|
81
|
+
multiplier: 1.3,
|
82
|
+
retry_codes: [4, 14]
|
83
83
|
}
|
84
84
|
|
85
85
|
default_config.rpcs.list_metric_descriptors.timeout = 30.0
|
86
86
|
default_config.rpcs.list_metric_descriptors.retry_policy = {
|
87
87
|
initial_delay: 0.1,
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
max_delay: 30.0,
|
89
|
+
multiplier: 1.3,
|
90
|
+
retry_codes: [4, 14]
|
91
91
|
}
|
92
92
|
|
93
93
|
default_config.rpcs.get_metric_descriptor.timeout = 30.0
|
94
94
|
default_config.rpcs.get_metric_descriptor.retry_policy = {
|
95
95
|
initial_delay: 0.1,
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
max_delay: 30.0,
|
97
|
+
multiplier: 1.3,
|
98
|
+
retry_codes: [4, 14]
|
99
99
|
}
|
100
100
|
|
101
101
|
default_config.rpcs.create_metric_descriptor.timeout = 12.0
|
@@ -103,17 +103,17 @@ module Google
|
|
103
103
|
default_config.rpcs.delete_metric_descriptor.timeout = 30.0
|
104
104
|
default_config.rpcs.delete_metric_descriptor.retry_policy = {
|
105
105
|
initial_delay: 0.1,
|
106
|
-
|
107
|
-
|
108
|
-
|
106
|
+
max_delay: 30.0,
|
107
|
+
multiplier: 1.3,
|
108
|
+
retry_codes: [4, 14]
|
109
109
|
}
|
110
110
|
|
111
111
|
default_config.rpcs.list_time_series.timeout = 30.0
|
112
112
|
default_config.rpcs.list_time_series.retry_policy = {
|
113
113
|
initial_delay: 0.1,
|
114
|
-
|
115
|
-
|
116
|
-
|
114
|
+
max_delay: 30.0,
|
115
|
+
multiplier: 1.3,
|
116
|
+
retry_codes: [4, 14]
|
117
117
|
}
|
118
118
|
|
119
119
|
default_config.rpcs.create_time_series.timeout = 12.0
|
@@ -184,7 +184,7 @@ module Google
|
|
184
184
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
185
185
|
@config.endpoint == Client.configure.endpoint &&
|
186
186
|
!@config.endpoint.split(".").first.include?("-")
|
187
|
-
credentials ||= Credentials.default scope:
|
187
|
+
credentials ||= Credentials.default scope: @config.scope,
|
188
188
|
enable_self_signed_jwt: enable_self_signed_jwt
|
189
189
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
190
190
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -930,7 +930,7 @@ module Google
|
|
930
930
|
config_attr :scope, nil, ::String, ::Array, nil
|
931
931
|
config_attr :lib_name, nil, ::String, nil
|
932
932
|
config_attr :lib_version, nil, ::String, nil
|
933
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
933
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
934
934
|
config_attr :interceptors, nil, ::Array, nil
|
935
935
|
config_attr :timeout, nil, ::Numeric, nil
|
936
936
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -951,7 +951,7 @@ module Google
|
|
951
951
|
def rpcs
|
952
952
|
@rpcs ||= begin
|
953
953
|
parent_rpcs = nil
|
954
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
954
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
955
955
|
Rpcs.new parent_rpcs
|
956
956
|
end
|
957
957
|
end
|
@@ -1017,21 +1017,21 @@ module Google
|
|
1017
1017
|
|
1018
1018
|
# @private
|
1019
1019
|
def initialize parent_rpcs = nil
|
1020
|
-
list_monitored_resource_descriptors_config = parent_rpcs
|
1020
|
+
list_monitored_resource_descriptors_config = parent_rpcs.list_monitored_resource_descriptors if parent_rpcs.respond_to? :list_monitored_resource_descriptors
|
1021
1021
|
@list_monitored_resource_descriptors = ::Gapic::Config::Method.new list_monitored_resource_descriptors_config
|
1022
|
-
get_monitored_resource_descriptor_config = parent_rpcs
|
1022
|
+
get_monitored_resource_descriptor_config = parent_rpcs.get_monitored_resource_descriptor if parent_rpcs.respond_to? :get_monitored_resource_descriptor
|
1023
1023
|
@get_monitored_resource_descriptor = ::Gapic::Config::Method.new get_monitored_resource_descriptor_config
|
1024
|
-
list_metric_descriptors_config = parent_rpcs
|
1024
|
+
list_metric_descriptors_config = parent_rpcs.list_metric_descriptors if parent_rpcs.respond_to? :list_metric_descriptors
|
1025
1025
|
@list_metric_descriptors = ::Gapic::Config::Method.new list_metric_descriptors_config
|
1026
|
-
get_metric_descriptor_config = parent_rpcs
|
1026
|
+
get_metric_descriptor_config = parent_rpcs.get_metric_descriptor if parent_rpcs.respond_to? :get_metric_descriptor
|
1027
1027
|
@get_metric_descriptor = ::Gapic::Config::Method.new get_metric_descriptor_config
|
1028
|
-
create_metric_descriptor_config = parent_rpcs
|
1028
|
+
create_metric_descriptor_config = parent_rpcs.create_metric_descriptor if parent_rpcs.respond_to? :create_metric_descriptor
|
1029
1029
|
@create_metric_descriptor = ::Gapic::Config::Method.new create_metric_descriptor_config
|
1030
|
-
delete_metric_descriptor_config = parent_rpcs
|
1030
|
+
delete_metric_descriptor_config = parent_rpcs.delete_metric_descriptor if parent_rpcs.respond_to? :delete_metric_descriptor
|
1031
1031
|
@delete_metric_descriptor = ::Gapic::Config::Method.new delete_metric_descriptor_config
|
1032
|
-
list_time_series_config = parent_rpcs
|
1032
|
+
list_time_series_config = parent_rpcs.list_time_series if parent_rpcs.respond_to? :list_time_series
|
1033
1033
|
@list_time_series = ::Gapic::Config::Method.new list_time_series_config
|
1034
|
-
create_time_series_config = parent_rpcs
|
1034
|
+
create_time_series_config = parent_rpcs.create_time_series if parent_rpcs.respond_to? :create_time_series
|
1035
1035
|
@create_time_series = ::Gapic::Config::Method.new create_time_series_config
|
1036
1036
|
|
1037
1037
|
yield self if block_given?
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
# @return [::String]
|
69
69
|
def metric_descriptor_path **args
|
70
70
|
resources = {
|
71
|
-
"metric_descriptor:project"
|
71
|
+
"metric_descriptor:project" => (proc do |project:, metric_descriptor:|
|
72
72
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
73
73
|
|
74
74
|
"projects/#{project}/metricDescriptors/#{metric_descriptor}"
|
@@ -78,7 +78,7 @@ module Google
|
|
78
78
|
|
79
79
|
"organizations/#{organization}/metricDescriptors/#{metric_descriptor}"
|
80
80
|
end),
|
81
|
-
"folder:metric_descriptor"
|
81
|
+
"folder:metric_descriptor" => (proc do |folder:, metric_descriptor:|
|
82
82
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
83
83
|
|
84
84
|
"folders/#{folder}/metricDescriptors/#{metric_descriptor}"
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
# @return [::String]
|
121
121
|
def monitored_resource_descriptor_path **args
|
122
122
|
resources = {
|
123
|
-
"monitored_resource_descriptor:project"
|
123
|
+
"monitored_resource_descriptor:project" => (proc do |project:, monitored_resource_descriptor:|
|
124
124
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
125
125
|
|
126
126
|
"projects/#{project}/monitoredResourceDescriptors/#{monitored_resource_descriptor}"
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
|
131
131
|
"organizations/#{organization}/monitoredResourceDescriptors/#{monitored_resource_descriptor}"
|
132
132
|
end),
|
133
|
-
"folder:monitored_resource_descriptor"
|
133
|
+
"folder:monitored_resource_descriptor" => (proc do |folder:, monitored_resource_descriptor:|
|
134
134
|
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
135
135
|
|
136
136
|
"folders/#{folder}/monitoredResourceDescriptors/#{monitored_resource_descriptor}"
|
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
parent_config = while namespace.any?
|
62
62
|
parent_name = namespace.join "::"
|
63
63
|
parent_const = const_get parent_name
|
64
|
-
break parent_const.configure if parent_const
|
64
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
65
65
|
namespace.pop
|
66
66
|
end
|
67
67
|
default_config = Client::Configuration.new parent_config
|
@@ -69,33 +69,33 @@ module Google
|
|
69
69
|
default_config.rpcs.list_notification_channel_descriptors.timeout = 30.0
|
70
70
|
default_config.rpcs.list_notification_channel_descriptors.retry_policy = {
|
71
71
|
initial_delay: 0.1,
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
max_delay: 30.0,
|
73
|
+
multiplier: 1.3,
|
74
|
+
retry_codes: [4, 14]
|
75
75
|
}
|
76
76
|
|
77
77
|
default_config.rpcs.get_notification_channel_descriptor.timeout = 30.0
|
78
78
|
default_config.rpcs.get_notification_channel_descriptor.retry_policy = {
|
79
79
|
initial_delay: 0.1,
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
max_delay: 30.0,
|
81
|
+
multiplier: 1.3,
|
82
|
+
retry_codes: [4, 14]
|
83
83
|
}
|
84
84
|
|
85
85
|
default_config.rpcs.list_notification_channels.timeout = 30.0
|
86
86
|
default_config.rpcs.list_notification_channels.retry_policy = {
|
87
87
|
initial_delay: 0.1,
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
max_delay: 30.0,
|
89
|
+
multiplier: 1.3,
|
90
|
+
retry_codes: [4, 14]
|
91
91
|
}
|
92
92
|
|
93
93
|
default_config.rpcs.get_notification_channel.timeout = 30.0
|
94
94
|
default_config.rpcs.get_notification_channel.retry_policy = {
|
95
95
|
initial_delay: 0.1,
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
max_delay: 30.0,
|
97
|
+
multiplier: 1.3,
|
98
|
+
retry_codes: [4, 14]
|
99
99
|
}
|
100
100
|
|
101
101
|
default_config.rpcs.create_notification_channel.timeout = 30.0
|
@@ -105,9 +105,9 @@ module Google
|
|
105
105
|
default_config.rpcs.delete_notification_channel.timeout = 30.0
|
106
106
|
default_config.rpcs.delete_notification_channel.retry_policy = {
|
107
107
|
initial_delay: 0.1,
|
108
|
-
|
109
|
-
|
110
|
-
|
108
|
+
max_delay: 30.0,
|
109
|
+
multiplier: 1.3,
|
110
|
+
retry_codes: [4, 14]
|
111
111
|
}
|
112
112
|
|
113
113
|
default_config.rpcs.send_notification_channel_verification_code.timeout = 30.0
|
@@ -115,17 +115,17 @@ module Google
|
|
115
115
|
default_config.rpcs.get_notification_channel_verification_code.timeout = 30.0
|
116
116
|
default_config.rpcs.get_notification_channel_verification_code.retry_policy = {
|
117
117
|
initial_delay: 0.1,
|
118
|
-
|
119
|
-
|
120
|
-
|
118
|
+
max_delay: 30.0,
|
119
|
+
multiplier: 1.3,
|
120
|
+
retry_codes: [4, 14]
|
121
121
|
}
|
122
122
|
|
123
123
|
default_config.rpcs.verify_notification_channel.timeout = 30.0
|
124
124
|
default_config.rpcs.verify_notification_channel.retry_policy = {
|
125
125
|
initial_delay: 0.1,
|
126
|
-
|
127
|
-
|
128
|
-
|
126
|
+
max_delay: 30.0,
|
127
|
+
multiplier: 1.3,
|
128
|
+
retry_codes: [4, 14]
|
129
129
|
}
|
130
130
|
|
131
131
|
default_config
|
@@ -194,7 +194,7 @@ module Google
|
|
194
194
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
195
195
|
@config.endpoint == Client.configure.endpoint &&
|
196
196
|
!@config.endpoint.split(".").first.include?("-")
|
197
|
-
credentials ||= Credentials.default scope:
|
197
|
+
credentials ||= Credentials.default scope: @config.scope,
|
198
198
|
enable_self_signed_jwt: enable_self_signed_jwt
|
199
199
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
200
200
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -1089,7 +1089,7 @@ module Google
|
|
1089
1089
|
config_attr :scope, nil, ::String, ::Array, nil
|
1090
1090
|
config_attr :lib_name, nil, ::String, nil
|
1091
1091
|
config_attr :lib_version, nil, ::String, nil
|
1092
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1092
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
1093
1093
|
config_attr :interceptors, nil, ::Array, nil
|
1094
1094
|
config_attr :timeout, nil, ::Numeric, nil
|
1095
1095
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -1110,7 +1110,7 @@ module Google
|
|
1110
1110
|
def rpcs
|
1111
1111
|
@rpcs ||= begin
|
1112
1112
|
parent_rpcs = nil
|
1113
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
1113
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1114
1114
|
Rpcs.new parent_rpcs
|
1115
1115
|
end
|
1116
1116
|
end
|
@@ -1186,25 +1186,25 @@ module Google
|
|
1186
1186
|
|
1187
1187
|
# @private
|
1188
1188
|
def initialize parent_rpcs = nil
|
1189
|
-
list_notification_channel_descriptors_config = parent_rpcs
|
1189
|
+
list_notification_channel_descriptors_config = parent_rpcs.list_notification_channel_descriptors if parent_rpcs.respond_to? :list_notification_channel_descriptors
|
1190
1190
|
@list_notification_channel_descriptors = ::Gapic::Config::Method.new list_notification_channel_descriptors_config
|
1191
|
-
get_notification_channel_descriptor_config = parent_rpcs
|
1191
|
+
get_notification_channel_descriptor_config = parent_rpcs.get_notification_channel_descriptor if parent_rpcs.respond_to? :get_notification_channel_descriptor
|
1192
1192
|
@get_notification_channel_descriptor = ::Gapic::Config::Method.new get_notification_channel_descriptor_config
|
1193
|
-
list_notification_channels_config = parent_rpcs
|
1193
|
+
list_notification_channels_config = parent_rpcs.list_notification_channels if parent_rpcs.respond_to? :list_notification_channels
|
1194
1194
|
@list_notification_channels = ::Gapic::Config::Method.new list_notification_channels_config
|
1195
|
-
get_notification_channel_config = parent_rpcs
|
1195
|
+
get_notification_channel_config = parent_rpcs.get_notification_channel if parent_rpcs.respond_to? :get_notification_channel
|
1196
1196
|
@get_notification_channel = ::Gapic::Config::Method.new get_notification_channel_config
|
1197
|
-
create_notification_channel_config = parent_rpcs
|
1197
|
+
create_notification_channel_config = parent_rpcs.create_notification_channel if parent_rpcs.respond_to? :create_notification_channel
|
1198
1198
|
@create_notification_channel = ::Gapic::Config::Method.new create_notification_channel_config
|
1199
|
-
update_notification_channel_config = parent_rpcs
|
1199
|
+
update_notification_channel_config = parent_rpcs.update_notification_channel if parent_rpcs.respond_to? :update_notification_channel
|
1200
1200
|
@update_notification_channel = ::Gapic::Config::Method.new update_notification_channel_config
|
1201
|
-
delete_notification_channel_config = parent_rpcs
|
1201
|
+
delete_notification_channel_config = parent_rpcs.delete_notification_channel if parent_rpcs.respond_to? :delete_notification_channel
|
1202
1202
|
@delete_notification_channel = ::Gapic::Config::Method.new delete_notification_channel_config
|
1203
|
-
send_notification_channel_verification_code_config = parent_rpcs
|
1203
|
+
send_notification_channel_verification_code_config = parent_rpcs.send_notification_channel_verification_code if parent_rpcs.respond_to? :send_notification_channel_verification_code
|
1204
1204
|
@send_notification_channel_verification_code = ::Gapic::Config::Method.new send_notification_channel_verification_code_config
|
1205
|
-
get_notification_channel_verification_code_config = parent_rpcs
|
1205
|
+
get_notification_channel_verification_code_config = parent_rpcs.get_notification_channel_verification_code if parent_rpcs.respond_to? :get_notification_channel_verification_code
|
1206
1206
|
@get_notification_channel_verification_code = ::Gapic::Config::Method.new get_notification_channel_verification_code_config
|
1207
|
-
verify_notification_channel_config = parent_rpcs
|
1207
|
+
verify_notification_channel_config = parent_rpcs.verify_notification_channel if parent_rpcs.respond_to? :verify_notification_channel
|
1208
1208
|
@verify_notification_channel = ::Gapic::Config::Method.new verify_notification_channel_config
|
1209
1209
|
|
1210
1210
|
yield self if block_given?
|