Class: Google::Apis::AndroidmanagementV1::ChoosePrivateKeyRule
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::ChoosePrivateKeyRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb
Overview
A rule for automatically choosing a private key and certificate to authenticate the device to a server.
Instance Attribute Summary collapse
-
#package_names ⇒ Array<String>
The package names for which outgoing requests are subject to this rule.
-
#private_key_alias ⇒ String
The alias of the private key to be used.
-
#url_pattern ⇒ String
The URL pattern to match against the URL of the outgoing request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChoosePrivateKeyRule
constructor
A new instance of ChoosePrivateKeyRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ChoosePrivateKeyRule
Returns a new instance of ChoosePrivateKeyRule.
485 486 487 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 485 def initialize(**args) update!(**args) end |
Instance Attribute Details
#package_names ⇒ Array<String>
The package names for which outgoing requests are subject to this rule. If no
package names are specified, then the rule applies to all packages. For each
package name listed, the rule applies to that package and all other packages
that shared the same Android UID. The SHA256 hash of the signing key
signatures of each package_name will be verified against those provided by
Play
Corresponds to the JSON property packageNames
472 473 474 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 472 def package_names @package_names end |
#private_key_alias ⇒ String
The alias of the private key to be used.
Corresponds to the JSON property privateKeyAlias
477 478 479 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 477 def private_key_alias @private_key_alias end |
#url_pattern ⇒ String
The URL pattern to match against the URL of the outgoing request. The pattern
may contain asterisk (*) wildcards. Any URL is matched if unspecified.
Corresponds to the JSON property urlPattern
483 484 485 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 483 def url_pattern @url_pattern end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
490 491 492 493 494 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 490 def update!(**args) @package_names = args[:package_names] if args.key?(:package_names) @private_key_alias = args[:private_key_alias] if args.key?(:private_key_alias) @url_pattern = args[:url_pattern] if args.key?(:url_pattern) end |