Skip to content

Commit

Permalink
Updated Gaffer version to 2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 11, 2025
1 parent a142837 commit 4c5d30b
Show file tree
Hide file tree
Showing 12 changed files with 76 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = "GCHQ"

# The full version, including alpha/beta/rc tags
release = "2.3.1"
release = "2.3.2"

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.3.1"
__version__ = "2.3.2"

__title__ = "gafferpy"
__description__ = "Gaffer Python Shell"
Expand Down
2 changes: 1 addition & 1 deletion src/fishbowl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.3.1"
__version__ = "2.3.2"

__title__ = "fishbowl"
__description__ = "Gaffer Python Shell"
Expand Down
2 changes: 1 addition & 1 deletion src/gafferpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.3.1"
__version__ = "2.3.2"

__title__ = "gafferpy"
__description__ = "Gaffer Python Shell"
Expand Down
12 changes: 11 additions & 1 deletion src/gafferpy/generated_api/binaryoperators.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2022-2024 Crown Copyright
# Copyright 2022-2025 Crown Copyright
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -444,6 +444,16 @@ def to_json(self):
return super().to_json()


class IterableMerge(AbstractBinaryOperator):
CLASS = "uk.gov.gchq.koryphe.impl.binaryoperator.IterableMerge"

def __init__(self):
super().__init__(_class_name=self.CLASS)

def to_json(self):
return super().to_json()


class Last(AbstractBinaryOperator):
CLASS = "uk.gov.gchq.koryphe.impl.binaryoperator.Last"

Expand Down
2 changes: 1 addition & 1 deletion src/gafferpy/generated_api/functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2022-2024 Crown Copyright
# Copyright 2022-2025 Crown Copyright
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
Expand Down
57 changes: 55 additions & 2 deletions src/gafferpy/generated_api/operations.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2022-2024 Crown Copyright
# Copyright 2022-2025 Crown Copyright
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -367,6 +367,59 @@ def to_json(self):
return operation_json


class ChangeGraphAccess(Operation):
"""
Changes the access controls on a Graph
Args:
owner:
public:
is_public:
write_predicate:
graph_id:
read_predicate:
options: Additional map of options
Returns:
java.lang.Void
"""
CLASS = "uk.gov.gchq.gaffer.federated.simple.operation.ChangeGraphAccess"

def __init__(
self,
owner: typing.Optional[str] = None,
public: typing.Optional[typing.Any] = None,
is_public: typing.Optional[bool] = None,
write_predicate: typing.Optional[typing.Any] = None,
graph_id: typing.Optional[str] = None,
read_predicate: typing.Optional[typing.Any] = None,
options: typing.Optional[typing.Dict[str, str]] = None
):

super().__init__(_class_name=self.CLASS, options=options)
self.owner = owner
self.public = public
self.is_public = is_public
self.write_predicate = write_predicate
self.graph_id = graph_id
self.read_predicate = read_predicate

def to_json(self):
operation_json = super().to_json()
if self.owner is not None:
operation_json["owner"] = self.owner
if self.public is not None:
operation_json["public"] = self.public
if self.is_public is not None:
operation_json["isPublic"] = self.is_public
if self.write_predicate is not None:
operation_json["writePredicate"] = self.write_predicate
if self.graph_id is not None:
operation_json["graphId"] = self.graph_id
if self.read_predicate is not None:
operation_json["readPredicate"] = self.read_predicate
return operation_json


class ChangeGraphId(Operation):
"""
Changes Graph ID
Expand Down Expand Up @@ -2572,7 +2625,7 @@ class DeleteElements(Operation):
validate:
options: Additional map of options
Returns:
java.lang.Void
java.lang.Long
"""
CLASS = "uk.gov.gchq.gaffer.operation.impl.delete.DeleteElements"

Expand Down
2 changes: 1 addition & 1 deletion src/gafferpy/generated_api/predicates.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2022-2024 Crown Copyright
# Copyright 2022-2025 Crown Copyright
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/gafferpy_examples/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.3.1"
__version__ = "2.3.2"

__title__ = "gafferpy_examples"
__description__ = "Gaffer Python Shell"
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.3.1"
__version__ = "2.3.2"

__title__ = "gafferpy"
__description__ = "Gaffer Python Shell"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.3.1"
__version__ = "2.3.2"

__title__ = "gafferpy"
__description__ = "Gaffer Python Shell"
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.3.1"
__version__ = "2.3.2"

__title__ = "gafferpy"
__description__ = "Gaffer Python Shell"
Expand Down

0 comments on commit 4c5d30b

Please sign in to comment.